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

Disassembly:
push 0xffffffffffffffff
push 0x49ffa8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4c36a0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c36a0]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
xor ebp, ebp
mov esi, ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 4]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x6c]
cmp eax, ebp
lea edi, [esi + 0x68]
mov dword [esp + 0x30], edi
je 0x41875f
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
je 0x41875f
cmp eax, ebp
jne 0x418735
xor ecx, ecx
jmp 0x41873d
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
mov edx, eax
cmp edx, ebp
jne 0x418747
xor eax, eax
jmp 0x41874f
mov eax, dword [edi + 8]
sub eax, edx
sar eax, 3
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*2 - 1]
lea eax, [eax + eax*4]
add eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x64]
cmp eax, ebp
je 0x4187b0
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4187b0
mov ecx, dword [esi + 0x5c]
push ecx
mov ecx, esi
call fcn.00414980
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x4187b0
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x18]
call fcn.004052f0
test al, al
je 0x4187b0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0x10
mov eax, dword [esi + 0x60]
cmp eax, ebp
mov ecx, 0xc8
mov edi, 0x14
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edi
je 0x418913
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41890f
mov eax, dword [esi + 0x60]
add eax, 4
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], 0xf0
mov dword [esp + 0x60], edi
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov dword [esp + 0x64], edi
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 4]
push ebp
push ebp
add eax, 4
push 0x31
push ecx
mov dword [esp + 0xb4], ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call ebx
cmp dword [esi + 0x3c], 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x38]
jb 0x418847
mov ecx, dword [esi + 0x28]
jmp 0x41884a
lea ecx, [esi + 0x28]
mov ebp, dword [sym.imp.USER32.dll_DrawTextA]
push 0x420
lea edx, [esp + 0x70]
push edx
push eax
push ecx
push edi
call ebp
push 0x4a92d4
lea eax, [esi + 0x40]
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.0040b3a0
mov eax, dword [esp + 0x8c]
add esp, 0xc
cmp dword [esp + 0x94], 0x10
jae 0x418890
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x90]
push 0x410
lea edx, [esp + 0x58]
push edx
push ecx
push eax
push edi
call ebp
test eax, eax
je 0x4188c2
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x14]
push edx
push edi
call ebx
cmp dword [esp + 0x94], 0x10
jb 0x4188e4
mov eax, dword [esp + 0x80]
push eax
call fcn.0047528f
add esp, 4
test edi, edi
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], 0
mov byte [esp + 0x80], 0
je 0x41890d
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor ebp, ebp
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add eax, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
add eax, edx
mov edx, dword [esp + 0x28]
cmp edx, eax
jbe 0x418931
mov eax, edx
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x34]
add edx, dword [esp + 0x44]
lea edi, [eax + edx + 0x28]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
cmp eax, edx
ja 0x418953
mov eax, edx
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x38]
sub ecx, dword [esp + 0x6c]
sub edx, dword [esp + 0x50]
add edx, dword [esp + 0x48]
lea edx, [edx + eax + 0x3d]
lea eax, [ecx + 0x38]
cmp edi, eax
jae 0x418974
mov edi, eax
cmp edi, 0xfa
jae 0x418981
mov edi, 0xfa
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
push 1
push edx
push edi
push ebp
push ebp
push eax
call ebx
mov eax, dword [esi + 0x64]
cmp eax, ebp
je 0x4189d1
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4189d1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp ecx, eax
jb 0x4189b7
xor eax, eax
jmp 0x4189bb
sub eax, ecx
shr eax, 1
mov edx, dword [esp + 0x24]
push 1
push ecx
push edx
add eax, 0xa
push eax
mov eax, dword [esi + 0x64]
mov ecx, dword [eax]
push 0x14
push ecx
call ebx
mov eax, dword [esi + 0x60]
cmp eax, ebp
je 0x418a17
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418a17
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jbe 0x4189f8
sub eax, ecx
shr eax, 1
jmp 0x4189fa
xor eax, eax
mov edx, dword [esp + 0x14]
push 1
push ecx
mov ecx, dword [esp + 0x34]
push ecx
add eax, 0xa
push eax
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 4]
add edx, 0x14
push edx
push ecx
call ebx
mov esi, dword [esp + 0x4c]
sub esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
sub esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
sub esi, dword [esp + 0x28]
mov dword [esp + 0x18], eax
add esi, dword [esp + 0x34]
add esi, edi
shr esi, 1
cmp eax, ecx
ja 0x418a43
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x30]
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
jbe 0x418a54
call fcn.004760e0
mov ebp, dword [ebx + 8]
mov ebx, dword [esp + 0x30]
cmp dword [ebx + 4], ebp
jbe 0x418a65
call fcn.004760e0
cmp ebx, ebx
je 0x418a6e
call fcn.004760e0
cmp edi, ebp
je 0x418adb
cmp edi, dword [ebx + 8]
jb 0x418a7c
call fcn.004760e0
cmp dword [edi + 4], 0
je 0x418ac9
cmp edi, dword [ebx + 8]
jb 0x418a8c
call fcn.004760e0
mov eax, dword [edi + 4]
mov edx, dword [eax + 4]
add eax, 4
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418ac9
cmp edi, dword [ebx + 8]
jb 0x418aaa
call fcn.004760e0
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
push 1
push 0x1c
push 0x3c
add eax, 0x16
push eax
push esi
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
add esi, 0x46
cmp edi, dword [ebx + 8]
jb 0x418ad3
call fcn.004760e0
add edi, 8
jmp 0x418a54
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00476554
add esp, 0x94
ret