Function at 0x431470
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, eax
mov eax, dword [esi + 0x10a2c]
xor ebx, ebx
cmp dword [eax + 0xe120], ebx
je 0x431617
cmp dword [eax + 0xe14c], ebx
je 0x4314f3
cmp dword [esi + 0x10a24], ebx
je 0x4314f3
cmp byte [eax + 0xe180], bl
je 0x4314f3
push str.schook
push 0x10
push 0x544754
call fcn.004a9480
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [edi], ebx
jne 0x4314da
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x4172f0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x10a24]
push ecx
push eax
push esi
call fcn.00417370
test al, al
jne 0x4317fd
mov eax, dword [esi + 0x10a2c]
cmp dword [eax + 0xe164], ebx
je 0x431617
cmp dword [esi + 0x10a24], ebx
je 0x431617
cmp byte [eax + 0xe180], bl
je 0x431617
cmp dword [eax + 0xe12c], ebx
je 0x431574
cmp dword [eax + 0xe130], ebx
jne 0x431574
mov edx, dword [esi + 0x10a24]
mov eax, dword [edx + 4]
add esi, 0x60
push eax
call fcn.0040c760
call fcn.0040c7f0
mov esi, dword [esi + 0x109c8]
cmp esi, ebx
je 0x431571
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10a2c]
mov dword [ecx + 0xe130], 1
mov edx, dword [eax + 0x10a2c]
mov dword [edx + 0xe0b8], esi
mov esi, eax
jmp 0x431574
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10a2c]
cmp dword [eax + 0xe12c], ebx
jne 0x4315b5
cmp dword [eax + 0xe130], ebx
je 0x4315b5
add esi, 0x60
call fcn.0040c870
mov eax, dword [ebp + 8]
mov dword [esi + 0x109c8], ebx
mov ecx, dword [eax + 0x10a2c]
mov dword [ecx + 0xe130], ebx
mov edx, dword [eax + 0x10a2c]
mov dword [edx + 0xe0b8], ebx
mov esi, eax
push str.w8hook
push 0x10
push 0x544754
call fcn.004a9480
mov eax, dword [esi + 0x10a2c]
mov ecx, dword [eax + 0xe16c]
add esp, 0xc
call ecx
mov dword [ebp + 0x14], ebx
cmp dword [edi], ebx
jne 0x4315f7
cmp eax, ebx
je 0x4315f7
lea edx, [ebp + 0x14]
push edx
push ebx
push esi
push 0x4172f0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x10a24]
push ecx
push eax
push esi
mov byte [esi + 0x10abc], bl
call fcn.00417370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esi + 0x10a2c]
mov ecx, dword [edx + 0xdc00]
mov edi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x278]
call edx
mov ecx, dword [esi + 0x10a2c]
neg eax
sbb eax, eax
and eax, 4
add eax, 4
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], ebx
cmp byte [ebp + 0x14], bl
je 0x431662
mov eax, dword [esi + 0x10a2c]
mov dword [eax + 0xe2d0], ebx
mov dword [esi + 0x10a74], edi
mov ecx, dword [esi + 0x10a2c]
mov ecx, dword [ecx + 0xdc00]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test eax, eax
jne 0x431697
mov ecx, dword [esi + 0x10a2c]
cmp byte [ecx + 0xe180], bl
jne 0x431757
cmp byte [ebp + 0x14], bl
jne 0x431757
sub edi, dword [esi + 0x10a74]
cmp edi, 0x32
jle 0x431757
mov eax, dword [ebp + 0x10]
inc dword [eax]
mov eax, dword [esi + 0x10a2c]
lea edi, [ebp - 0x10]
call fcn.0042f4a0
call fcn.0045e0e0
cmp eax, 2
je 0x4316e2
mov edx, dword [ebp + 0xc]
mov ebx, dword [esi + 0x10a2c]
push edx
mov ecx, edi
call fcn.00429090
xor ebx, ebx
test al, al
je 0x4316e8
mov byte [esi + 0x10abc], bl
jmp 0x4316e8
mov byte [esi + 0x10abc], bl
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0xc8
jle 0x431757
mov edi, dword [esi + 0x10a2c]
push 0x4ce44c
call fcn.004aa83c
mov ecx, dword [edi + 0xc4]
mov edx, dword [edi + 0xc0]
add esp, 4
push ecx
mov ecx, dword [edi + 0xb8]
mov ebx, eax
mov eax, dword [edi + 0xbc]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edx, dword [ebp + 0xc]
push 2
mov edi, eax
mov eax, dword [edx]
push edi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call fcn.004aa14e
mov eax, dword [ebp + 0x10]
add esp, 4
mov dword [eax], 0
xor ebx, ebx
mov ecx, dword [esi + 0x10a2c]
mov ecx, dword [ecx + 0xdc00]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
call eax
test eax, eax
jne 0x43177f
mov ecx, dword [esi + 0x10a2c]
cmp byte [ecx + 0xe180], al
jne 0x431798
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
test ebx, ebx
je 0x431798
mov edx, dword [ebp + 0xc]
push edx
mov edx, ebx
mov ecx, esi
call fcn.00430340
mov eax, dword [esi + 0x10a2c]
mov ecx, dword [eax + 0xdc00]
mov edx, dword [ecx]
mov eax, dword [edx + 0xb8]
call eax
test eax, eax
jne 0x4317c0
mov ecx, dword [esi + 0x10a2c]
cmp byte [ecx + 0xe180], al
jne 0x4317fd
lea edx, [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x4317fd
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov edi, eax
test edi, edi
je 0x4317fd
cmp edi, ebx
je 0x4317fd
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x4317fd
mov edx, dword [ebp + 0xc]
push edx
mov edx, edi
mov ecx, esi
call fcn.00430340
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10