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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x605db8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push edi
mov eax, dword [0x6963f4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
test esi, esi
je 0x4a4efd
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4a4efd
cmp dword [esi + 0x60], 0
je 0x4a4efd
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.0056fab6
mov dword [esp + 0x70], 0
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x4a4f14
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 0x4a4ee5
lea edi, [esi + 0x94]
test edi, edi
je 0x4a4e72
cmp dword [edi + 0x20], 0
jne 0x4a4ec2
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.0055f4bf
lea ecx, [esp + 0x50]
mov dword [esi + 0x7c], 1
mov dword [esp + 0x70], 0xffffffff
call fcn.0056fb0a
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 0x4a4fd7
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 0x4a4f6a
mov edx, dword [esp + 0x20]
cmp edi, edx
jne 0x4a4f5c
mov ecx, dword [esp + 0x28]
sub ecx, edx
jmp 0x4a4f6a
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 0x4a4fc0
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 0x4a4f10
jmp 0x4a4e33
jmp fcn.00564f58