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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x40], esi
mov eax, dword [esi + 0x18]
push eax
push ebx
call fcn.0050c000
mov edx, dword [ebx]
add esp, 8
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x1c]
push eax
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
fld qword [esi + 0x38]
fadd qword [0x5af430]
sub esp, 8
fstp qword [esp]
call fcn.0053e2af
call fcn.0053e380
fld qword [esi + 0x30]
fadd qword [0x5af430]
mov dword [esp + 0x2c], eax
fstp qword [esp]
call fcn.0053e2af
call fcn.0053e380
fld qword [esi + 0x28]
fadd qword [0x5af430]
mov dword [esp + 0x20], eax
fstp qword [esp]
call fcn.0053e2af
call fcn.0053e380
fld qword [esi + 0x20]
fadd qword [0x5af430]
mov edi, eax
fstp qword [esp]
call fcn.0053e2af
add esp, 8
call fcn.0053e380
mov edx, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x44]
mov esi, dword [esi + 0xc]
sub eax, edx
add eax, edi
mov dword [esp + 0x48], edi
test esi, esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], eax
jne 0x50b39e
mov esi, 0x5b21c8
push 0xa
push esi
call fcn.0053fc68
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
setne byte [esp + 0x17]
test eax, eax
jne 0x50b3ca
push esi
call fcn.0053fa18
lea edx, [esi + eax*2]
add esp, 4
mov dword [esp + 0x10], edx
mov eax, edx
test ebx, ebx
jne 0x50b3d4
mov dword [esp + 0x28], ebx
jmp 0x50b3db
mov ecx, dword [ebx + 4]
mov dword [esp + 0x28], ecx
test esi, esi
je 0x50b62b
jmp 0x50b3e9
mov eax, dword [esp + 0x10]
sub eax, esi
mov ecx, eax
mov dword [esp + 0x18], eax
and ecx, 0xfffffffe
cmp ecx, 2
mov dword [esp + 0x24], ecx
jge 0x50b404
mov eax, 1
jmp 0x50b406
sar eax, 1
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x30]
push esi
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], 0
cmp esi, eax
mov edi, esi
je 0x50b475
mov dx, word [edi]
lea ecx, [esp + 0x34]
push ecx
push edx
push ebx
call fcn.0050b1d0
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp edi, esi
jne 0x50b448
test eax, eax
jle 0x50b44c
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
add edx, eax
mov eax, dword [esp + 0x10]
add edi, 2
cmp edi, eax
mov dword [esp + 0x2c], edx
jne 0x50b46d
test ecx, ecx
jle 0x50b471
add dword [esp + 0x2c], ecx
cmp edi, eax
jne 0x50b42a
mov eax, dword [esp + 0x24]
test eax, eax
je 0x50b5e5
mov edi, dword [esp + 0x40]
fild dword [esp + 0x2c]
fld qword [edi + 0x30]
fsub qword [edi + 0x20]
fsubr st(1)
call fcn.0053e380
fld qword [edi + 0x30]
fsub qword [edi + 0x20]
fxch st(1)
mov dword [esp + 0x20], eax
fcompp
fnstsw ax
test ah, 1
je 0x50b4d5
mov al, byte [esp + 0x17]
test al, al
je 0x50b4d5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
sar eax, 1
push eax
mov eax, dword [esp + 0x2c]
push esi
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_TextOutW]
jmp 0x50b5e5
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], 0
cmp eax, 2
mov dword [esp + 0x5c], 0
jle 0x50b507
mov eax, dword [esp + 0x18]
fild dword [esp + 0x20]
sar eax, 1
dec eax
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fdivp st(1)
fstp qword [esp + 0x58]
mov dx, word [esi]
lea ecx, [esp + 0x34]
push ecx
push edx
push ebx
call fcn.0050b1d0
fild dword [esp + 0x50]
mov eax, dword [esp + 0x40]
add esp, 0xc
test eax, eax
fstp qword [esp + 0x18]
jge 0x50b535
fild dword [esp + 0x34]
fsubr qword [esp + 0x18]
fstp qword [esp + 0x18]
push 1
mov ecx, ebx
call fcn.0057b276
mov edi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
cmp esi, edi
je 0x50b5d9
mov eax, dword [esp + 0x48]
fld qword [esp + 0x18]
push eax
call fcn.0053e380
lea ecx, [esp + 0x6c]
push eax
push ecx
mov ecx, ebx
call fcn.0057b1f5
mov edx, dword [esp + 0x28]
push 1
push esi
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_TextOutW]
mov cx, word [esi]
lea eax, [esp + 0x34]
push eax
push ecx
push ebx
call fcn.0050b1d0
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
add eax, edx
add eax, ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], eax
add esp, 0xc
fild qword [esp + 0x60]
cmp word [esi], 0x20
fsub qword [esp + 0x58]
fadd qword [esp + 0x18]
fstp qword [esp + 0x18]
jne 0x50b5ce
mov ecx, dword [esp + 0x40]
fld qword [esp + 0x18]
fadd qword [ecx + 0x78]
fstp qword [esp + 0x18]
add esi, 2
cmp esi, edi
jne 0x50b54e
mov edx, dword [esp + 0x20]
mov ecx, ebx
push edx
call fcn.0057b276
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x48], ecx
cmp word [esi], 0
je 0x50b62b
add esi, 2
push 0xa
push esi
call fcn.0053fc68
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x50b623
push esi
call fcn.0053fa18
lea ecx, [esi + eax*2]
add esp, 4
mov dword [esp + 0x10], ecx
test esi, esi
jne 0x50b3e5
mov edx, dword [esp + 0x54]
push edx
push ebx
call fcn.0050c000
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4