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

Disassembly:
push 0xffffffffffffffff
push 0x594501
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov al, byte [esi + 0xbc]
lea ebp, [esi + 0xbc]
push ebx
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x40], al
call fcn.0040bcd0
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x74]
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x48], ebx
call fcn.0040bba0
mov edx, dword [eax]
lea eax, [esp + 0x6c]
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.0040baf0
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x44]
call fcn.0040bc10
mov dl, byte [esi + 0xd0]
lea edi, [esi + 0xd0]
push ebx
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0xc4], ebx
mov byte [esp + 0x24], dl
call fcn.0040bdd0
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
push eax
lea eax, [esp + 0x70]
push eax
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.0040bd00
mov ecx, dword [eax]
lea edx, [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.0040bb50
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push eax
call fcn.0040bd10
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0xc4], 1
call fcn.0040baf0
mov edx, dword [eax]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebp
call fcn.0040bc80
mov eax, dword [edi + 4]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.0040bb50
mov edx, dword [eax]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, edi
call fcn.0040bd80
mov eax, dword [esi + 0x3c]
lea ecx, [eax + 0x80]
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 8]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx + 8]
cmp eax, ecx
je 0x40a9a0
mov ebx, 0xc8
mov dword [esp + 0x34], ebx
jmp 0x40a770
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edi, dword [ecx]
cmp edi, ecx
je 0x40a78b
mov eax, dword [eax + 8]
mov edx, dword [edi + 8]
cmp dword [edx + 0x4c], eax
je 0x40a78b
mov edi, dword [edi]
cmp edi, ecx
jne 0x40a77d
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x18], eax
je 0x40a7b8
mov ecx, dword [edi + 8]
jmp 0x40a7a2
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 8]
cmp dword [edx + 0x44], ecx
je 0x40a7b8
mov eax, dword [eax]
mov edx, dword [esp + 0x20]
cmp eax, edx
mov dword [esp + 0x18], eax
jne 0x40a79e
mov ecx, dword [edi + 8]
add edi, 8
lea eax, [ebx + 0x32]
mov dword [ecx + 0x5c], eax
push eax
mov eax, dword [edi]
push 0xfffffffffffffff4
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [ebp + 4]
push edi
lea edx, [esp + 0x58]
push eax
push edx
mov ecx, ebp
call fcn.0040bbb0
mov eax, dword [esp + 0x18]
mov edx, dword [0x6131b0]
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x30]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov byte [esp + 0xc8], 2
call fcn.00472e50
mov eax, dword [esp + 0x10]
mov dword [eax + 0x50], ebx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.0047eb50
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
lea ecx, [eax + 0x40]
call fcn.00575d0e
mov ecx, dword [esp + 0x10]
push ebx
push 0xfffffffffffffff4
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [esp + 0x84]
mov edx, dword [0x5fd524]
mov ebx, dword [esi + 0xe4]
sub edi, edx
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 8]
call fcn.0047ec50
mov ecx, dword [esp + 0x84]
mov edx, dword [esi + 0xe0]
add eax, ebx
sub ecx, edx
mov edx, dword [0x5fd524]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0xd4]
sub ecx, edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], edi
mov edi, dword [eax]
xor ebx, ebx
cmp edi, eax
je 0x40a8cb
mov ecx, dword [edi + 8]
call fcn.0047ec50
mov edi, dword [edi]
add ebx, eax
cmp edi, dword [esi + 0xd4]
jne 0x40a8b7
push 0
lea eax, [esp + 0x48]
push ebx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub ecx, eax
push 4
push ecx
mov ecx, dword [esp + 0x4c]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x24]
push 0
call fcn.00574637
mov eax, dword [esp + 0x10]
push 1
push 0
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x10]
mov edi, dword [esi + 0xdc]
call fcn.0047ecf0
cmp edi, eax
jle 0x40a927
mov eax, edi
jmp 0x40a930
mov ecx, dword [esp + 0x10]
call fcn.0047ecf0
lea ebx, [esi + 0xd0]
mov dword [esi + 0xdc], eax
mov ecx, ebx
mov edi, dword [ebx + 4]
mov edx, dword [edi + 4]
push edx
push edi
call fcn.0040bdd0
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x10]
add eax, 8
push ecx
push eax
call fcn.0040be20
mov eax, dword [ebx + 8]
add esp, 8
inc eax
lea ecx, [esp + 0x30]
mov dword [ebx + 8], eax
mov byte [esp + 0xbc], 1
call fcn.00575bd5
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
mov eax, dword [edx]
inc edi
mov dword [esp + 0x2c], eax
mov edx, dword [ecx + 8]
cmp eax, edx
mov dword [esp + 0x34], edi
jne 0x40a76c
xor ebx, ebx
lea edx, [esp + 0x88]
mov ecx, esi
push edx
xor edi, edi
call fcn.00571bf4
mov eax, dword [esp + 0x90]
cmp eax, 3
jne 0x40a9c4
mov edi, 2
jmp 0x40a9ce
cmp eax, 2
jne 0x40a9ce
mov edi, 1
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x58]
sub edx, ecx
sub eax, ebp
push edx
push eax
push edi
mov ecx, esi
call fcn.0040ad00
mov ecx, esi
call fcn.00436810
mov edi, dword [esp + 0x20]
mov byte [esp + 0xbc], 0
mov esi, dword [edi]
cmp esi, edi
je 0x40aa2b
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0040bb60
cmp esi, edi
jne 0x40aa14
mov edx, dword [esp + 0x20]
push edx
call fcn.00570be5
mov edi, dword [esp + 0x40]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
add esp, 4
mov esi, dword [edi]
cmp esi, edi
je 0x40aa73
mov eax, esi
mov esi, dword [esi]
push eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
call fcn.00570be5
mov ecx, dword [esp + 0x44]
add esp, 4
dec ecx
cmp esi, edi
mov dword [esp + 0x40], ecx
jne 0x40aa4a
mov eax, dword [esp + 0x3c]
push eax
call fcn.00570be5
mov ecx, dword [esp + 0xb8]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret