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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x547832
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ab720]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.00500b6d
mov eax, dword [ebp + 0x98]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [ebp + 0x20]
push 1
push 0x80
push eax
mov dword [esp + 0x28], 0xa
call esi
mov eax, dword [ebp + 0x98]
mov ecx, dword [ebp + 0x20]
push eax
push 0
push 0x80
push ecx
call esi
cmp dword [ebp + 0x84], 0
jg 0x4012f2
push 0xffffffffffffffff
mov ecx, ebp
call fcn.005008b2
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x7c]
test eax, eax
jne 0x401364
mov ecx, dword [ebp + 0x20]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x34]
sub esi, dword [esp + 0x2c]
push 6
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, dword [esp + 0x1c]
mov ecx, ebp
push eax
push esi
push 0
push 0
push 0
call fcn.00501b56
push 0
mov ecx, ebp
call fcn.004fd27a
mov edx, dword [ebp + 0x74]
mov eax, dword [edx]
add ebp, 0x74
push 0
push ebp
call eax
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4014d0
mov esi, dword [eax + 8]
test esi, esi
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
je 0x4014c0
push 0x504
call fcn.004fae94
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov dword [esp + 0x58], 0
je 0x4013ab
push 0
push esi
push eax
call fcn.00474dd0
mov edi, eax
jmp 0x4013ad
xor edi, edi
test edi, edi
mov dword [esp + 0x58], 0xffffffff
je 0x4014c0
push edi
lea ecx, [ebp + 0x9c]
call fcn.00503381
mov eax, dword [esp + 0x18]
push 0
push 0
push eax
push 0xa
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea ebx, [esp + 0x3c]
mov eax, ebp
mov esi, edi
call fcn.00421940
test eax, eax
je 0x4014c0
push 3
push 0
push 0
push 0
push 0
push ebp
mov ecx, edi
call fcn.00501b56
call fcn.00475c40
test eax, eax
je 0x4014c0
push 5
mov ecx, edi
call fcn.00501947
mov edx, dword [edi + 0x78]
lea eax, [edi + 0x78]
push 1
push eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x24]
call fcn.004a4b80
mov dword [esp + 0x58], 1
mov eax, dword [eax]
test eax, eax
je 0x40146e
lea esi, [edi + 0x88]
push eax
mov ecx, esi
call fcn.005018ad
push 5
mov ecx, esi
call fcn.00501947
mov ecx, dword [edi + 0x20]
push 0x105
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401496
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, edi
call fcn.004762c0
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax + 0xa]
mov dword [esp + 0x18], edx
cmp dword [esp + 0x1c], 0
jne 0x401360
jmp 0x4012f9
jmp fcn.00504221