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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54fb22
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3720]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.0050463a
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.005042e7
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.00505623
push 0
mov ecx, ebp
call fcn.00500cc1
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 0x4014ce
mov esi, dword [eax + 8]
test esi, esi
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
je 0x4014be
push 0x508
call fcn.004fe8de
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.0046b120
mov edi, eax
jmp 0x4013ad
xor edi, edi
test edi, edi
mov dword [esp + 0x58], 0xffffffff
je 0x4014be
push edi
lea ecx, [ebp + 0x9c]
call fcn.00506e4a
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.00421d50
test eax, eax
je 0x4014be
push 3
push 0
push 0
push 0
push 0
push ebp
mov ecx, edi
call fcn.00505623
call fcn.0046c2a0
test eax, eax
je 0x4014be
push 5
mov ecx, edi
call fcn.00505414
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.004a97d0
mov dword [esp + 0x58], 1
mov eax, dword [eax]
test eax, eax
je 0x40146e
lea esi, [edi + 0x8c]
push eax
mov ecx, esi
call fcn.0050537a
push 5
mov ecx, esi
call fcn.00505414
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
call fcn.0046cbe0
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.00507caf