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

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc4]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x30], ecx
je 0x4e8f3d
mov dword [esi], edi
mov ebx, dword [0x635dac]
mov al, byte [ebx + 0x8b0]
test al, al
mov dword [esp + 0x10], edi
mov dword [esp + 0x38], ebx
je 0x4e9133
mov esi, dword [esp + 0xb0]
push 6
push esi
call dword [sym.imp.GDI32.dll_GetCurrentObject]
mov ebp, eax
mov eax, dword [ebx + 0x8b8]
lea edx, [esp + 0x18]
push edx
push ebp
push esi
mov dword [esp + 0x24], 0
mov ecx, dword [eax]
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], edi
call dword [ecx + 0x1c]
test eax, eax
jne 0x4e9126
mov eax, dword [esp + 0xc0]
test eax, eax
jle 0x4e9109
jmp 0x4e8fb0
mov edi, dword [esp + 0x1c]
jmp 0x4e8fb0
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x38]
lea ebx, [eax + edi*2]
mov eax, dword [ecx + 0x8b8]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xcc]
sub ecx, edi
push ecx
push ebx
push eax
call dword [edx + 0x10]
test eax, eax
jne 0x4e9109
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e9109
mov eax, dword [esp + 0x34]
test dword [esp + 0x18], eax
jne 0x4e9014
mov ecx, dword [esp + 0x30]
push ebp
push eax
push esi
call fcn.004e8e40
mov edi, eax
test edi, edi
jne 0x4e9016
mov edi, ebp
mov eax, dword [esp + 0xcc]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x2c], ebp
je 0x4e9037
lea edx, [esp + 0x3c]
push edx
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ebp, dword [esp + 0x40]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0xcc]
test edi, edi
je 0x4e905e
lea eax, [esp + 0x74]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x2c], ecx
mov al, byte [esp + 0xc4]
test al, al
je 0x4e908c
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
push 0
push edx
push ebx
push 0
push 0
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ebx, dword [esp + 0xb4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc8]
add ebx, eax
test ecx, ecx
mov dword [esp + 0xb4], ebx
je 0x4e90e8
mov edx, dword [ecx]
add edx, eax
test edi, edi
mov dword [ecx], edx
je 0x4e90e8
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub ebp, ebx
mov eax, 0
sets al
dec eax
and eax, ebp
add eax, ecx
cmp dword [esp + 0x10], eax
jg 0x4e90e8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc0]
mov ebp, dword [esp + 0x20]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4e8fa7
push ebp
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x4e9126
mov edx, dword [eax]
mov ecx, dword [esp + 0x10]
add edx, ecx
mov dword [eax], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x20
mov al, byte [esp + 0xc4]
test al, al
mov edi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xbc]
mov ebp, dword [esp + 0xb0]
je 0x4e9172
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
push 0
push edi
push ebx
push 0
push 0
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_ExtTextOutW]
test esi, esi
je 0x4e9111
lea ecx, [esp + 0x24]
push ecx
push edi
push ebx
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edi, dword [esi]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xcc]
add edi, edx
test eax, eax
mov dword [esi], edi
je 0x4e9126
mov ecx, dword [esp + 0x28]
test ecx, ecx
jl 0x4e9118
mov dword [esp + 0x10], ecx
jmp 0x4e9118