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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f2ae0
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 0x50b6b3
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x50b6b3
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0x9c]
cmp ecx, eax
jl 0x50b4c4
mov eax, 1
jmp 0x50b6b5
lea ecx, [esp + 0x20]
call fcn.005bae68
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 0x50b535
cmp bl, 0xa
je 0x50b535
test bl, bl
je 0x50b535
test bl, 0x80
je 0x50b4fe
mov al, byte [edi + 1]
test al, al
je 0x50b4fe
inc edi
inc edi
test edx, edx
jne 0x50b50b
mov eax, dword [esi + 0x98]
jmp 0x50b50d
xor eax, eax
sub eax, ecx
add eax, edi
cmp eax, ebp
jl 0x50b4e1
mov bl, byte [edi]
cmp bl, 0xd
je 0x50b4e1
cmp bl, 0xa
je 0x50b4e1
push ecx
push edx
lea ecx, [esp + 0x28]
mov byte [edi], 0
call fcn.005bb0cc
mov byte [edi], bl
mov ecx, edi
jmp 0x50b4dd
cmp edi, ecx
jne 0x50b561
mov al, byte [edi]
cmp al, 0xd
je 0x50b543
cmp al, 0xa
jne 0x50b546
inc edi
jmp 0x50b539
cmp byte [edi], 0
je 0x50b590
push 0x674ee0
push edx
lea ecx, [esp + 0x28]
call fcn.005bb0cc
mov ecx, edi
jmp 0x50b4dd
push ecx
push edx
lea ecx, [esp + 0x28]
mov byte [edi], 0
call fcn.005bb0cc
test bl, bl
mov byte [edi], bl
je 0x50b58c
mov al, byte [edi + 1]
inc edi
cmp al, 0xa
jne 0x50b585
mov al, byte [edi + 1]
inc edi
cmp al, 0xa
je 0x50b57d
mov ecx, edi
jmp 0x50b4dd
mov edx, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x48], edx
test edx, edx
jle 0x50b6a2
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x24]
mov eax, dword [esi + 0x9c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jge 0x50b689
dec ecx
cmp eax, ecx
jne 0x50b5c6
dec edx
cmp ebx, edx
jne 0x50b6ca
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 0x50b61e
mov dword [esi + 0x80], eax
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x24]
dec edx
cmp ebx, edx
jge 0x50b67a
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 0x50b66c
fild dword [esi + 0x94]
fmul qword [0x5fc070]
fiadd dword [esi + 0x7c]
call fcn.0052dad0
jmp 0x50b677
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
mov edx, eax
jl 0x50b5a6
test edx, edx
jle 0x50b6a2
mov eax, dword [ebp + edx*4 - 4]
mov ecx, dword [esi + 0x98]
mov eax, dword [eax - 8]
add ecx, eax
mov dword [esi + 0x98], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.005bae9b
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
push 0x66f960
lea ecx, [esp + 0x54]
call fcn.005bc48f
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 0x50b738
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.005bc421
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.005bae9b
mov eax, 1
jmp 0x50b6b5