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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5561e8
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
mov esi, ecx
test esi, esi
je 0x508455
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x508455
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x508455
push ebx
push ebp
push edi
lea ecx, [esp + 0x48]
push ecx
push eax
call dword [sym.imp.user32.dll_GetClientRect]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x54]
push 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call dword [sym.imp.user32.dll_GetSystemMetrics]
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
sub ecx, eax
add edx, ecx
push 0xfffffffffffffffb
mov dword [esp + 0x34], edx
push 0xfffffffffffffffc
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.user32.dll_InflateRect]
mov eax, dword [esp + 0x2c]
mov edi, dword [esi + 0x84]
mov ebx, dword [esp + 0x28]
sub eax, edi
push esi
lea ecx, [esp + 0x6c]
mov dword [esp + 0x14], eax
call fcn.005286ba
mov eax, dword [esi + 0x54]
test eax, eax
mov dword [esp + 0x84], 0
jne 0x508470
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x74]
mov edi, dword [ecx + 8]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + 5]
mov eax, dword [esp + 0x34]
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 0x508437
lea edi, [esi + 0x90]
test edi, edi
je 0x5083cc
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x508414
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.user32.dll_GetClientRect]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.user32.dll_InflateRect]
push 2
call dword [sym.imp.user32.dll_GetSystemMetrics]
mov edx, dword [esp + 0x40]
push 1
push esi
sub edx, eax
mov eax, dword [edi]
lea ecx, [esp + 0x40]
push ecx
dec edx
push 0x50000001
mov ecx, edi
mov dword [esp + 0x48], edx
call dword [eax + 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.0052189b
lea ecx, [esp + 0x68]
mov dword [esi + 0x78], 1
mov dword [esp + 0x84], 0xffffffff
call fcn.00528715
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
pop esi
mov dword fs:[0], ecx
add esp, 0x78
ret
mov eax, dword [esp + 0x14]
lea esp, [esp]
test eax, eax
je 0x50853d
mov ecx, dword [eax]
mov edi, dword [eax + 8]
mov edx, dword [edi]
push 1
mov dword [esp + 0x18], ecx
lea eax, [esi + 0x70]
push eax
lea ecx, [esp + 0x70]
push ecx
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call dword [edx + 0x18]
mov ebp, dword [eax]
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 4]
lea edx, [ebx + ebp]
cmp edx, ecx
jle 0x5084c4
mov edx, dword [esp + 0x28]
cmp ebx, edx
jne 0x5084b6
sub ecx, edx
mov ebp, ecx
jmp 0x5084c4
mov ecx, dword [esp + 0x10]
mov ebx, edx
lea edx, [ecx + eax + 5]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x74]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, ebx
lea edx, [eax + ebp]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x60]
add edx, ecx
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], eax
lea eax, [edi + 0x30]
push ecx
push eax
mov dword [esp + 0x4c], edx
call dword [sym.imp.user32.dll_EqualRect]
test eax, eax
jne 0x508528
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [edi + 0x30], edx
mov edx, dword [esp + 0x44]
mov dword [edi + 0x34], eax
mov eax, dword [edi]
mov dword [edi + 0x38], ecx
mov ecx, edi
mov dword [edi + 0x3c], edx
call dword [eax + 0x2c]
mov eax, dword [esp + 0x14]
test eax, eax
lea ebx, [ebx + ebp + 4]
jne 0x508465
jmp 0x508392
jmp fcn.0051c508