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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x549250
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
test ebx, ebx
push edi
mov esi, ecx
je 0x4e776b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4e776b
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0x9c]
cmp ecx, eax
jl 0x4e74d4
mov eax, 1
jmp 0x4e776d
lea ecx, [esp + 0x20]
call fcn.00518561
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x3c], 0
mov edi, ebx
mov ecx, ebx
mov edx, dword [esp + 0x28]
mov bl, byte [edi]
cmp bl, 0xd
je 0x4e7545
cmp bl, 0xa
je 0x4e7545
test bl, bl
je 0x4e7545
test bl, 0x80
je 0x4e750e
mov al, byte [edi + 1]
test al, al
je 0x4e750e
inc edi
inc edi
test edx, edx
jne 0x4e751b
mov eax, dword [esi + 0x98]
jmp 0x4e751d
xor eax, eax
sub eax, ecx
add eax, edi
cmp eax, ebp
jl 0x4e74f1
mov bl, byte [edi]
cmp bl, 0xd
je 0x4e74f1
cmp bl, 0xa
je 0x4e74f1
push ecx
push edx
lea ecx, [esp + 0x28]
mov byte [edi], 0
call fcn.005187c5
mov byte [edi], bl
mov ecx, edi
jmp 0x4e74ed
cmp edi, ecx
jne 0x4e7571
mov al, byte [edi]
cmp al, 0xd
je 0x4e7553
cmp al, 0xa
jne 0x4e7556
inc edi
jmp 0x4e7549
cmp byte [edi], 0
je 0x4e75a0
push 0x599310
push edx
lea ecx, [esp + 0x28]
call fcn.005187c5
mov ecx, edi
jmp 0x4e74ed
push ecx
push edx
lea ecx, [esp + 0x28]
mov byte [edi], 0
call fcn.005187c5
test bl, bl
mov byte [edi], bl
je 0x4e759c
mov al, byte [edi + 1]
inc edi
cmp al, 0xa
jne 0x4e7595
mov al, byte [edi + 1]
inc edi
cmp al, 0xa
je 0x4e758d
mov ecx, edi
jmp 0x4e74ed
mov edx, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x48], edx
test edx, edx
jle 0x4e773d
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x24]
mov eax, dword [esi + 0x9c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jge 0x4e7741
dec ecx
cmp eax, ecx
jne 0x4e75da
mov ecx, dword [esp + 0x48]
dec ecx
cmp ebx, ecx
jne 0x4e76a0
mov eax, dword [ebp + ebx*4]
lea edx, [esp + 0x10]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
mov eax, dword [eax + ebx*4]
mov ebp, dword [eax - 8]
mov dword [esp + 0x4c], ebp
mov ebp, dword [edi]
push dword [esp + 0x4c]
push eax
push ecx
push edx
mov ecx, edi
call dword [ebp + 0x5c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x78]
add edx, ecx
mov ecx, dword [esi + 0x80]
mov eax, edx
mov dword [esi + 0x78], edx
cmp eax, ecx
jle 0x4e7632
mov dword [esi + 0x80], eax
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x24]
dec edx
cmp ebx, edx
jge 0x4e768e
mov ecx, dword [esi + 0x9c]
mov eax, dword [esi + 0x84]
inc ecx
mov dword [esi + 0x78], eax
mov dword [esi + 0x9c], ecx
mov dword [esi + 0x98], 0
mov ecx, dword [ebp + ebx*4]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4e7680
fild dword [esi + 0x94]
fmul qword [0x5511c0]
fiadd dword [esi + 0x7c]
call fcn.00502040
jmp 0x4e768b
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x7c]
add eax, edx
mov dword [esi + 0x7c], eax
mov eax, dword [esp + 0x48]
inc ebx
cmp ebx, eax
jl 0x4e75b6
jmp 0x4e7741
push 0x595bb4
lea ecx, [esp + 0x54]
call fcn.005199e4
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x40], 1
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x78]
mov ebp, dword [edi]
mov ebx, dword [edx - 8]
push ebx
push edx
push eax
push ecx
mov ecx, edi
call dword [ebp + 0x5c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x78]
mov edi, dword [esi + 0x9c]
add edx, ecx
mov ecx, dword [esi + 0x80]
mov eax, edx
inc edi
cmp eax, ecx
mov dword [esi + 0x9c], edi
mov dword [esi + 0x78], edx
jle 0x4e770e
mov dword [esi + 0x80], eax
mov edx, dword [esi + 0x84]
lea ecx, [esp + 0x50]
mov dword [esi + 0x78], edx
mov byte [esp + 0x3c], 0
call fcn.00519976
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00518594
mov eax, 1
jmp 0x4e776d
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], 0xffffffff
mov ecx, dword [ebp + eax*4 - 4]
mov eax, dword [ecx - 8]
mov ecx, dword [esi + 0x98]
add ecx, eax
mov dword [esi + 0x98], ecx
lea ecx, [esp + 0x20]
call fcn.00518594
xor eax, eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0x10