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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x557042
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.00509316
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 0x401312
push 0xffffffffffffffff
mov ecx, ebp
call fcn.00508fd5
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 0x401384
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.0050a2ff
push 0
mov ecx, ebp
call fcn.00505998
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 0x4014ee
mov esi, dword [eax + 8]
test esi, esi
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
je 0x4014de
push 0x4fc
call fcn.00503623
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov dword [esp + 0x58], 0
je 0x4013cb
push 0
push esi
push eax
call fcn.00448de0
mov edi, eax
jmp 0x4013cd
xor edi, edi
test edi, edi
mov dword [esp + 0x58], 0xffffffff
je 0x4014de
push edi
lea ecx, [ebp + 0x9c]
call fcn.0050bb0d
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.0041a740
test eax, eax
je 0x4014de
push 3
push 0
push 0
push 0
push 0
push ebp
mov ecx, edi
call fcn.0050a2ff
call fcn.00449ba0
test eax, eax
je 0x4014de
push 5
mov ecx, edi
call fcn.0050a0f0
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.00464a70
mov dword [esp + 0x58], 1
mov eax, dword [eax]
test eax, eax
je 0x40148e
lea esi, [edi + 0x88]
push eax
mov ecx, esi
call fcn.0050a056
push 5
mov ecx, esi
call fcn.0050a0f0
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 0x4014b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0044a220
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 0x401380
jmp 0x401319
jmp fcn.0050c9ad