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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4e9c
call fcn.00505a10
mov eax, dword [0x568fd0]
xor eax, esp
mov dword [esp + 0x4e98], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
fild dword [esp + 0x2c]
mov ecx, edi
fstp dword [esi]
fild dword [esp + 0x30]
fstp dword [esi + 4]
fild dword [esp + 0x34]
fstp dword [esi + 8]
fild dword [esp + 0x38]
fstp dword [esi + 0xc]
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
call eax
mov dword [esp + 0x20], eax
test eax, eax
je 0x48195a
cmp eax, dword [edi + 0x78]
jle 0x481961
mov ecx, dword [edi + 0x78]
mov dword [esp + 0x20], ecx
fld dword [0x56b604]
call fcn.00505040
mov edx, dword [edi + 0xc]
lea esi, [edx + eax*2]
lea eax, [edi + 0x18]
call fcn.004aa8e0
fld dword [0x56b60c]
mov ebx, eax
call fcn.00505040
lea eax, [ebx + eax*2]
cmp esi, eax
jge 0x481990
mov esi, eax
imul esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
fild dword [esp + 0x14]
fadd dword [eax + 4]
fstp dword [eax + 0xc]
mov ecx, dword [edi + 0x80]
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [edi + 0x70]
shr edx, 1
add edx, ecx
lea edx, [edx + edx*2]
add edx, edx
add edx, edx
push eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [edi + 0x10]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [edi + 0x94]
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], edx
cmp esi, edx
je 0x481a6a
mov ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x481a00
movzx eax, byte [edi + 0x74]
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
test al, al
je 0x481a5c
push edx
push eax
mov eax, esi
push ecx
lea esi, [esp + 0x84]
call fcn.0047ce90
mov edx, dword [esp + 0x4e9c]
mov eax, dword [esp + 0x4e98]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x4e98]
mov ecx, esi
cmp eax, ecx
je 0x481a6a
push eax
call fcn.005026cd
add esp, 4
jmp 0x481a6a
lea edx, [esp + 0x24]
push edx
push ecx
push esi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
push edx
push ebx
mov dword [edi + 0x98], ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 0x70]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
imul eax, dword [esp + 0x50]
cmp ecx, eax
jle 0x481aab
mov eax, ecx
cmp dword [esp + 0x18], eax
jge 0x481ab5
mov dword [esp + 0x18], eax
lea eax, [edi + 0x18]
call fcn.004aa990
fld qword [0x556088]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x481ad3
fld dword [0x56eac4]
jmp 0x481ae7
fild dword [esp + 0x10]
fadd dword [0x56eac4]
fld dword [0x56b608]
fmul st(2)
faddp st(1)
call fcn.00505040
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov ecx, edi
fadd dword [esi]
fiadd dword [esp + 0x18]
fld dword [0x56b600]
fmulp st(2)
faddp st(1)
fstp dword [esi + 8]
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
call eax
cmp eax, dword [esp + 0x20]
jle 0x481b30
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd dword [esi + 8]
fstp dword [esi + 8]
call fcn.004824f0
mov ecx, dword [esp + 0x4ea4]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00501b9a
mov esp, ebp
pop ebp
ret 4