Function at 0x40c100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55fdf0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5bbd60]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x5bbd60]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
call fcn.00433f2d
xor edi, edi
mov dword [esp + 0x90], edi
mov eax, dword [esi + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.0043463c
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x70]
push ecx
push edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebx + 0xf8]
lea edx, [ecx + eax]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x20]
add ecx, eax
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 8]
push 1
mov dword [esp + 0x50], edx
mov dword [esp + 0x60], edx
push ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
mov dword [esp + 0x64], eax
call fcn.00429b0a
mov byte [esp + 0x90], 1
mov eax, dword [esi + 0xc]
or eax, 2
je 0x40c256
test byte [esi + 0x10], 1
je 0x40c256
mov ecx, 0x593c90
lea edx, [esp + 0x14]
call fcn.0040c620
test al, al
je 0x40c23c
push 0xf5ede6
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x28]
call fcn.00436ba0
push 0xffad02
jmp 0x40c2c7
push 0xffffff
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x28]
call fcn.00436ba0
push 0xffad02
jmp 0x40c2c7
mov ecx, 0x593c98
lea edx, [esp + 0x14]
call fcn.0040c620
test al, al
je 0x40c287
push 0xf5ede6
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x28]
call fcn.00436ba0
push 0xf5ede6
lea edx, [esp + 0x54]
push edx
jmp 0x40c2cc
mov ecx, 0x593ca0
lea edx, [esp + 0x14]
call fcn.0040c620
push 0xffffff
lea ecx, [esp + 0x24]
test al, al
je 0x40c2b8
lea eax, [esp + 0x44]
push eax
call fcn.00436ba0
push 0xffffff
lea ecx, [esp + 0x54]
push ecx
jmp 0x40c2cc
lea edx, [esp + 0x44]
push edx
call fcn.00436ba0
push 0xffffff
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x28]
call fcn.00436ba0
call fcn.00427b27
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40c2ef
push 0x80004005
call fcn.00405090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x90], 2
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
call fcn.0043719c
mov ecx, dword [eax + 0x20]
push edi
push edi
push 0x1200
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x34], eax
test eax, eax
jle 0x40c426
lea ecx, [ecx]
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x1c]
push edi
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00429b0a
mov byte [esp + 0x90], 3
mov ecx, dword [eax]
lea edx, [ebx - 0x10]
lea eax, [ecx - 0x10]
mov dword [esp + 0x3c], edx
cmp eax, edx
je 0x40c3c2
cmp dword [edx + 0xc], 0
lea ebx, [edx + 0xc]
mov dword [esp + 0x38], ebx
jl 0x40c3b0
mov ebx, dword [eax]
cmp ebx, dword [edx]
jne 0x40c3b0
push eax
call fcn.00404ce0
mov ecx, dword [esp + 0x3c]
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3a7
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x40c3c2
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404f50
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x90], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi + 8]
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x20]
push 2
push edi
push edx
call fcn.00429494
add dword [esp + 0x60], 5
mov eax, dword [ebx - 0xc]
mov edx, dword [esp + 0x24]
push 0x24
lea ecx, [esp + 0x64]
push ecx
push eax
push ebx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
inc edi
cmp edi, dword [esp + 0x34]
jl 0x40c340
lea ecx, [esp + 0x20]
call fcn.00434674
add ebx, 0xfffffff0
mov byte [esp + 0x90], 1
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c453
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c47b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x90], 0xffffffff
call fcn.004346bd
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00527d0f
mov esp, ebp
pop ebp
ret 4