Created
January 21, 2019 14:59
-
-
Save purpl3F0x/cdf9eb10955a5f760e073fdfadfcb7a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void** SetLEDInputColor(void** a1, void** a2, signed char a3, signed char a4, signed char a5, signed char a6, signed char a7) { | |
void* ebp8; | |
void** eax9; | |
uint32_t v10; | |
void** ecx11; | |
void** edi12; | |
void** ebx13; | |
void** v14; | |
void** v15; | |
void** v16; | |
void** v17; | |
void** v18; | |
void** ecx19; | |
void** eax20; | |
void** eax21; | |
void** esi22; | |
void** v23; | |
void** v24; | |
void** v25; | |
void** v26; | |
void** v27; | |
void** ecx28; | |
void** eax29; | |
ebp8 = reinterpret_cast<void*>(reinterpret_cast<int32_t>(__zero_stack_offset()) - 4); | |
eax9 = g1000d050; | |
v10 = reinterpret_cast<unsigned char>(eax9) ^ reinterpret_cast<uint32_t>(ebp8); | |
ecx11 = reinterpret_cast<void**>(reinterpret_cast<uint32_t>(ebp8) + 0xffffffec); | |
fun_10001cd3(ecx11, ecx11, 5, "%04X", a1, edi12, ebx13, v14, v15, v16, v17); | |
v18 = reinterpret_cast<void**>(reinterpret_cast<uint32_t>(ebp8) + 0xfffffff4); | |
fun_10001cd3(ecx11, v18, 5, "%04X", a2, ecx11, 5, "%04X", a1, edi12, ebx13); | |
ecx19 = reinterpret_cast<void**>(reinterpret_cast<uint32_t>(ebp8) + 0xfffffff4); | |
eax20 = fun_10001140(ecx19, reinterpret_cast<uint32_t>(ebp8) + 0xffffffec, v18, 5, "%04X", a2, ecx11, 5, "%04X", a1, edi12, ebx13); | |
if (eax20 == 0xffffffff || !eax20) { | |
CloseHandle(ecx19); | |
eax21 = fun_10001cc4(v10 ^ reinterpret_cast<uint32_t>(ebp8), ebx13); | |
return eax21; | |
} else { | |
fun_10005bc0(ecx19, reinterpret_cast<uint32_t>(ebp8) + 0xffffffa8, 0, 67, esi22, edi12, ebx13, v23, v24, v25, v26, v27); | |
fun_10001070(); | |
CloseHandle(); | |
ecx28 = reinterpret_cast<void**>(v10 ^ reinterpret_cast<uint32_t>(ebp8)); | |
eax29 = fun_10001cc4(ecx28, ebx13, ecx28, ebx13); | |
return eax29; | |
} | |
void** SetLEDInputBrightness(void** a1, void** a2, signed char a3, signed char a4) { | |
void* ebp5; | |
void** eax6; | |
uint32_t v7; | |
void** ecx8; | |
void** ebx9; | |
void** v10; | |
void** v11; | |
void** v12; | |
void** v13; | |
void** v14; | |
void** v15; | |
void** v16; | |
void** ecx17; | |
void** v18; | |
void** eax19; | |
void** eax20; | |
void** esi21; | |
void** v22; | |
void** v23; | |
void** v24; | |
void** v25; | |
void** v26; | |
void** v27; | |
void** ecx28; | |
void** eax29; | |
ebp5 = reinterpret_cast<void*>(reinterpret_cast<int32_t>(__zero_stack_offset()) - 4); | |
eax6 = g1000d050; | |
v7 = reinterpret_cast<unsigned char>(eax6) ^ reinterpret_cast<uint32_t>(ebp5); | |
ecx8 = reinterpret_cast<void**>(reinterpret_cast<uint32_t>(ebp5) + 0xffffffec); | |
fun_10001cd3(ecx8, ecx8, 5, "%04X", a1, ebx9, v10, v11, v12, v13, v14); | |
v15 = reinterpret_cast<void**>(reinterpret_cast<uint32_t>(ebp5) + 0xfffffff4); | |
fun_10001cd3(ecx8, v15, 5, "%04X", a2, ecx8, 5, "%04X", a1, ebx9, v16); | |
ecx17 = reinterpret_cast<void**>(reinterpret_cast<uint32_t>(ebp5) + 0xfffffff4); | |
eax19 = fun_10001140(ecx17, reinterpret_cast<uint32_t>(ebp5) + 0xffffffec, v15, 5, "%04X", a2, ecx8, 5, "%04X", a1, ebx9, v18); | |
if (eax19 == 0xffffffff || !eax19) { | |
CloseHandle(ecx17); | |
eax20 = fun_10001cc4(v7 ^ reinterpret_cast<uint32_t>(ebp5), ebx9); | |
return eax20; | |
} else { | |
fun_10005bc0(ecx17, reinterpret_cast<uint32_t>(ebp5) + 0xffffffa8, 0, 67, esi21, ebx9, v22, v23, v24, v25, v26, v27); | |
fun_10001070(); | |
CloseHandle(); | |
ecx28 = reinterpret_cast<void**>(v7 ^ reinterpret_cast<uint32_t>(ebp5)); | |
eax29 = fun_10001cc4(ecx28, ebx9, ecx28, ebx9); | |
return eax29; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment