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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60dcd8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push edi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
test esi, esi
je 0x4a821d
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4a821d
cmp dword [esi + 0x60], 0
je 0x4a821d
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]
push 0xfffffffffffffffb
or ecx, 0xffffffff
push 0xfffffffffffffffc
lea edx, [esp + 0x28]
sub ecx, eax
add dword [esp + 0x30], ecx
push edx
call dword [sym.imp.user32.dll_InflateRect]
mov eax, dword [esp + 0x24]
sub eax, dword [esi + 0x88]
mov edi, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x10], eax
call fcn.00577645
mov dword [esp + 0x70], 0
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x4a8234
mov eax, dword [esi + 0x5c]
mov edi, dword [eax + 8]
mov eax, dword [esi + 0x78]
lea ecx, [eax + 5]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
cdq
idiv ecx
mov ebx, eax
mov eax, dword [edi + 0x3c]
cdq
idiv ecx
sub eax, ebx
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x14], ecx
jle 0x4a8205
lea edi, [esi + 0x94]
test edi, edi
je 0x4a8192
cmp dword [edi + 0x20], 0
jne 0x4a81e2
mov edx, dword [esi + 0x20]
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]
mov edx, dword [edx + 0x134]
push 1
sub ecx, eax
push esi
sub ecx, 1
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], ecx
push 0x50000001
mov ecx, edi
call edx
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x78]
add eax, 5
imul eax, ecx
push 1
push eax
push 0
push 1
mov ecx, esi
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], ebx
call fcn.00566e9f
lea ecx, [esp + 0x50]
mov dword [esi + 0x7c], 1
mov dword [esp + 0x70], 0xffffffff
call fcn.00577699
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a82f7
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
mov edx, dword [ebx]
mov edx, dword [edx + 0x18]
push 1
mov dword [esp + 0x14], ecx
lea eax, [esi + 0x74]
push eax
lea ecx, [esp + 0x58]
push ecx
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
lea edx, [ecx + edi]
cmp edx, dword [esp + 0x28]
jle 0x4a828a
mov edx, dword [esp + 0x20]
cmp edi, edx
jne 0x4a827c
mov ecx, dword [esp + 0x28]
sub ecx, edx
jmp 0x4a828a
mov edi, edx
mov edx, dword [esp + 0xc]
lea eax, [edx + eax + 5]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x78]
add ecx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edi
push ecx
add eax, edx
lea edi, [ebx + 0x30]
push edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], eax
call dword [sym.imp.user32.dll_EqualRect]
test eax, eax
jne 0x4a82e0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [edi], edx
mov edx, dword [esp + 0x3c]
mov dword [edi + 4], eax
mov eax, dword [ebx]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov edx, dword [eax + 0x2c]
mov ecx, ebx
call edx
mov edi, dword [esp + 0x14]
add edi, 4
cmp dword [esp + 0x10], 0
jne 0x4a8230
jmp 0x4a8153
jmp fcn.0056c8bd