Function at 0x4171a0
Capabilities:
Create thread
Print debug messages

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x477540
push eax
mov al, byte [0x49d5f8]
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
xor ebx, ebx
cmp al, bl
push edi
mov edi, ecx
je 0x4172f1
mov eax, dword [0x49d640]
cmp dword [eax - 0xc], ebx
je 0x4172f1
mov ecx, dword [0x49d630]
xor esi, esi
mov dword [esp + 0x10], ebx
or ebp, 0xffffffff
lea ebx, [ebx]
cmp ecx, ebx
jne 0x4171f8
xor eax, eax
jmp 0x417202
mov eax, dword [0x49d634]
sub eax, ecx
sar eax, 6
cmp dword [esp + 0x10], eax
jge 0x417291
cmp dword [esi + ecx + 4], 1
jne 0x417285
cmp byte [esi + ecx + 0x39], bl
je 0x417285
push 0x47e1c1
lea ecx, [esp + 0x2c]
call fcn.004025d0
mov ecx, dword [0x49d630]
mov edx, dword [esi + ecx]
push edx
lea eax, [esp + 0x2c]
push 0x47da10
push eax
mov dword [esp + 0x2c], ebx
call fcn.00402460
mov eax, dword [edi + 0x2cc0]
add esp, 0xc
lea ecx, [edi + 0x2cb8]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.0045f68e
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41727f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [0x49d630]
inc dword [esp + 0x10]
add esi, 0x40
jmp 0x4171f0
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push 0x416f90
push ebx
push ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4172d5
push 0x47fbe4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push 5
lea ecx, [edi + 0x100]
call fcn.004621b1
push 0xffffff
lea ecx, [edi + 0x70]
lea esi, [edi + 0x2ce4]
push ecx
mov ecx, esi
call fcn.0046c7df
mov edx, dword [esi]
lea eax, [edi + 0x88]
push eax
mov ecx, esi
call dword [edx + 0x28]
push 0x47eb94
lea ecx, [esp + 0x14]
call fcn.004025d0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push ecx
push eax
push 0x50
push 0x96
mov ecx, esi
mov dword [esp + 0x30], 1
call dword [edx + 0x5c]
mov eax, dword [esp + 0x10]
or ebp, 0xffffffff
add eax, 0xfffffff0
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x417371
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi + 0x1c]
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea esi, [edi + 0x1d4]
mov ebp, 5
push ebx
mov ecx, esi
call fcn.004621b1
add esi, 0x14c
dec ebp
jne 0x417388
lea esi, [edi + 0x850]
mov ebp, 0xa
push ebx
mov ecx, esi
call fcn.004621b1
add esi, 0x14c
dec ebp
jne 0x4173a4
cmp byte [esp + 0x28], bl
je 0x4173f4
push 1
push 0x47e408
push 0x47eb70
mov ecx, edi
call fcn.00463723
cmp eax, 1
jne 0x4173f4
mov ecx, dword [edi + 0x1c]
push ebx
push ebx
push 0x478
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0046423a
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4