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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a4298
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
mov esi, ecx
test esi, esi
je 0x458b18
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x458b18
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x458b18
push ebx
push ebp
push edi
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x4c]
push 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [esp + 0x28]
or ecx, 0xffffffff
sub ecx, eax
add edx, ecx
push 0xfffffffffffffffb
mov dword [esp + 0x2c], edx
push 0xfffffffffffffffc
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esi + 0x84]
mov edi, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x54]
sub ebp, ebx
call fcn.0047ce9f
mov eax, dword [esi + 0x54]
test eax, eax
mov dword [esp + 0x6c], 0
je 0x458a58
jmp 0x4589b1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
mov edx, dword [ebx]
push 1
lea eax, [esi + 0x70]
push eax
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call dword [edx + 0x18]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
lea edx, [ecx + edi]
cmp edx, dword [esp + 0x28]
jle 0x4589f5
mov edx, dword [esp + 0x20]
cmp edi, edx
jne 0x4589ef
mov ecx, dword [esp + 0x28]
sub ecx, edx
jmp 0x4589f5
mov edi, edx
lea ebp, [eax + ebp + 5]
mov eax, dword [esi + 0x74]
add eax, ebp
add ecx, edi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edi
push eax
lea edi, [ebx + 0x30]
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x458a45
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [edi], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edi + 4], edx
mov edx, dword [ebx]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov ecx, ebx
call dword [edx + 0x2c]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edi, 4
test eax, eax
jne 0x4589ad
mov eax, dword [esi + 0x58]
mov edi, dword [eax + 8]
mov eax, dword [esi + 0x74]
mov edx, dword [esp + 0x24]
lea ecx, [eax + 5]
mov eax, dword [esp + 0x2c]
sub eax, edx
cdq
idiv ecx
mov ebx, eax
mov eax, dword [edi + 0x3c]
cdq
idiv ecx
sub eax, ebx
mov ebp, eax
test ebp, ebp
jle 0x458afd
lea edi, [esi + 0x90]
test edi, edi
je 0x458a92
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x458ada
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x38]
mov edx, dword [edi]
push 1
sub ecx, eax
push esi
dec ecx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], ecx
push 0x50000001
mov ecx, edi
call dword [edx + 0x130]
mov eax, dword [esi + 0x74]
add eax, 5
imul eax, ebp
push 1
push eax
push 0
push 1
mov ecx, esi
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ebx
call fcn.00475a53
lea ecx, [esp + 0x50]
mov dword [esi + 0x78], 1
mov dword [esp + 0x6c], 0xffffffff
call fcn.0047cefa
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret