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

Disassembly:
push 0xffffffffffffffff
push 0x4980f8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4b7480]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7480]
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 + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], 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 + 0x24], edi
je 0x4185ff
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
je 0x4185ff
cmp eax, ebp
jne 0x4185d5
xor ecx, ecx
jmp 0x4185dd
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
mov edx, eax
cmp edx, ebp
jne 0x4185e7
xor eax, eax
jmp 0x4185ef
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 0x418650
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418650
mov ecx, dword [esi + 0x5c]
push ecx
mov ecx, esi
call fcn.004146d0
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x418650
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x18]
call fcn.00405210
test al, al
je 0x418650
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], 0x10
mov eax, dword [esi + 0x60]
cmp eax, ebp
mov ecx, 0xc8
mov edi, 0x14
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edi
je 0x4187b3
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4187af
mov eax, dword [esi + 0x60]
add eax, 4
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], pe_nt_image_headers32
mov dword [esp + 0x60], edi
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov dword [esp + 0x74], 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 0x4186e7
mov ecx, dword [esi + 0x28]
jmp 0x4186ea
lea ecx, [esi + 0x28]
mov ebp, dword [sym.imp.USER32.dll_DrawTextA]
push 0x420
lea edx, [esp + 0x68]
push edx
push eax
push ecx
push edi
call ebp
push 0x4a02a0
lea eax, [esi + 0x40]
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.0040b170
mov eax, dword [esp + 0x8c]
add esp, 0xc
cmp dword [esp + 0x94], 0x10
jae 0x418730
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 0x418762
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x14]
push edx
push edi
call ebx
cmp dword [esp + 0x94], 0x10
jb 0x418784
mov eax, dword [esp + 0x80]
push eax
call fcn.0046e29f
add esp, 4
test edi, edi
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], 0
mov byte [esp + 0x80], 0
je 0x4187ad
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor ebp, ebp
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
add eax, edx
mov edx, dword [esp + 0x28]
cmp edx, eax
jbe 0x4187d1
mov eax, edx
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x34]
add edx, dword [esp + 0x44]
lea ebx, [eax + edx + 0x28]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp eax, edx
ja 0x4187f3
mov eax, edx
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x38]
sub ecx, dword [esp + 0x64]
sub edx, dword [esp + 0x50]
add edx, dword [esp + 0x48]
lea edx, [edx + eax + 0x38]
lea eax, [ecx + 0x38]
cmp ebx, eax
jae 0x418814
mov ebx, eax
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_MoveWindow]
push 1
push edx
push ebx
push ebp
push ebp
push eax
call edi
mov eax, dword [esi + 0x64]
cmp eax, ebp
je 0x418864
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418864
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jb 0x41884a
xor eax, eax
jmp 0x41884e
sub eax, ecx
shr eax, 1
mov edx, dword [esp + 0x2c]
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 edi
mov eax, dword [esi + 0x60]
cmp eax, ebp
je 0x4188aa
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4188aa
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x41888b
sub eax, ecx
shr eax, 1
jmp 0x41888d
xor eax, eax
mov edx, dword [esp + 0x14]
push 1
push ecx
mov ecx, dword [esp + 0x28]
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 edi
mov esi, dword [esp + 0x4c]
sub esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
sub esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
sub esi, dword [esp + 0x28]
add esi, dword [esp + 0x34]
add esi, ebx
shr esi, 1
cmp eax, ecx
ja 0x4188d0
mov eax, ecx
mov ebx, dword [esp + 0x24]
mov edi, dword [ebx + 4]
add eax, 0x1a
cmp edi, dword [ebx + 8]
mov dword [esp + 0x14], eax
jbe 0x4188f0
call fcn.0046f0f0
jmp 0x4188f0
mov ebp, dword [ebx + 8]
mov ebx, dword [esp + 0x24]
cmp dword [ebx + 4], ebp
jbe 0x418901
call fcn.0046f0f0
cmp ebx, ebx
je 0x41890a
call fcn.0046f0f0
cmp edi, ebp
je 0x418974
cmp edi, dword [ebx + 8]
jb 0x418918
call fcn.0046f0f0
cmp dword [edi + 4], 0
je 0x418962
cmp edi, dword [ebx + 8]
jb 0x418928
call fcn.0046f0f0
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 0x418962
cmp edi, dword [ebx + 8]
jb 0x418946
call fcn.0046f0f0
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
push 1
push 0x17
push 0x3c
push eax
push esi
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
add esi, 0x46
cmp edi, dword [ebx + 8]
jb 0x41896c
call fcn.0046f0f0
add edi, 8
jmp 0x4188f0
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.0046f564
add esp, 0x94
ret