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

Disassembly:
push 0xffffffffffffffff
push 0x5aefc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebp
push esi
mov esi, dword [esp + 0x70]
push edi
mov edi, ecx
push 0x71
mov eax, dword [esi + 8]
mov dword [esp + 0x14], edi
push eax
call ebx
mov ecx, dword [esi + 8]
push 0x70
push ecx
mov ebp, eax
call ebx
neg eax
mov dword [esp + 0x54], eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x54]
push 1
neg ebp
push edx
push eax
mov dword [esp + 0x64], ebp
call dword [sym.imp.GDI32.dll_DPtoLP]
mov ecx, dword [esi + 8]
push 0xa
push ecx
call ebx
mov edx, dword [esi + 8]
push 8
push edx
mov ebp, eax
call ebx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
mov dword [esp + 0x64], ebp
call fcn.0057966b
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
mov ebx, eax
mov dword [esp + 0x4c], vtable.CFont.0
lea ebp, [ecx + eax]
xor eax, eax
neg ebx
mov dword [esp + 0x50], eax
lea edx, [edi + 0x8c]
mov dword [esp + 0x6c], eax
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x50]
call fcn.0057997c
mov eax, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x80]
test eax, eax
jne 0x4ea33b
mov ecx, dword [esi + 4]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x78]
push 1
push eax
push ecx
mov byte [esp + 0x84], 0x41
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x48]
mov dword [edi + 0x80], edx
mov eax, ebp
sub eax, ebx
cdq
idiv dword [edi + 0x80]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x104]
cmp eax, 0xffffffff
je 0x4ea35d
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [edi + 0x108]
cmp eax, 0xffffffff
je 0x4ea370
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
mov ecx, dword [esi + 8]
mov ebx, eax
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_GetBkColor]
mov ebp, eax
push 2
mov ecx, esi
mov dword [esp + 0x30], ebp
call fcn.00578faf
mov edx, dword [0x6811c0]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0xc8]
dec edx
mov dword [esp + 0x20], edx
mov dword [edi + 0xc8], 0
mov edx, dword [esi]
push ebx
mov ecx, esi
mov dword [esp + 0x48], eax
call dword [edx + 0x30]
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x2c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x74], ebp
imul eax, ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 8]
mov ebp, edx
sub ebp, eax
cmp ebx, ebp
jge 0x4ea402
mov edx, ebx
jmp 0x4ea404
sub edx, eax
cmp dword [esp + 0x18], edx
jge 0x4ea544
mov edx, dword [esp + 0x20]
push edx
call fcn.0043cde0
mov ebp, eax
mov eax, dword [edi + 8]
lea ecx, [edi + 0x54]
mov dword [esp + 0x30], eax
mov edx, dword [ebp]
xor ebx, ebx
push edx
call fcn.004d1650
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jle 0x4ea525
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [edi + 0x54]
call fcn.004d1690
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x34], eax
sub edi, ebx
dec edi
test eax, eax
je 0x4ea469
mov eax, dword [eax]
mov ecx, dword [ebp]
sub eax, ecx
sub eax, ebx
cmp edi, eax
jb 0x4ea469
mov edi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ea4bc
mov dl, byte [eax + 0xc]
test dl, 1
je 0x4ea48f
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
jne 0x4ea48b
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x104]
mov dword [esp + 0x14], ecx
test dl, 2
je 0x4ea4aa
mov ecx, dword [eax + 8]
cmp ecx, 0xffffffff
jne 0x4ea4a6
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x108]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x10]
push esi
lea edx, [esp + 0x50]
push eax
push edx
call fcn.004e7330
jmp 0x4ea4cc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x74]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp]
push ebp
push edi
lea eax, [edx + ebx*2]
push ebx
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x1c]
push eax
mov edx, dword [ecx + 0x80]
imul edx, dword [esp + 0x28]
push edx
push esi
call fcn.004e6610
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x34]
add ebx, edi
mov edi, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x1c], eax
cmp ebx, ecx
jl 0x4ea43f
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
inc ecx
inc eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
jmp 0x4ea3ef
mov edx, dword [esp + 0x3c]
mov ecx, esi
push edx
call fcn.00578faf
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x4c], 0x5cf854
mov dword [edi + 0xc8], edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x6c], 1
call fcn.005799d3
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 8