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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x1025f074]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x134]
cmp eax, 1
je 0x1015e11c
cmp eax, 2
je 0x1015e11c
movzx eax, word [esi + 0x1c]
lea ecx, [edi + 0xb0]
push ecx
push 0
push 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push 0x80
push eax
push dword [edi + 0xd0]
mov eax, dword [sym.imp.GDI32.dll_GetGlyphOutlineW]
xorps xmm0, xmm0
movaps xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x3c], eax
call eax
cmp eax, 0xffffffff
jne 0x1015df5b
mov ecx, dword [0x1026b494]
test ecx, ecx
je 0x1015df03
mov eax, dword [edi + 0x38]
add eax, 0x1c
push eax
call ecx
add esp, 4
lea eax, [edi + 0xb0]
push eax
push 0
push 0
lea eax, [esp + 0x3c]
push eax
push 0x80
push dword [esp + 0x30]
push dword [edi + 0xd0]
call dword [esp + 0x3c]
cmp eax, 0xffffffff
jne 0x1015df5b
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov word [esi + 0x19], ax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.101b3122
mov esp, ebp
pop ebp
ret 4
xor dl, dl
cmp dword [esp + 0x30], 1
jne 0x1015df93
cmp dword [esp + 0x34], 1
jne 0x1015df93
lea eax, [edi + 0xb0]
push eax
push 0
push 0
lea eax, [esp + 0x3c]
push eax
push 0x82
push dword [esp + 0x30]
push dword [edi + 0xd0]
call dword [esp + 0x3c]
test eax, eax
sete dl
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg eax
mov word [esi + 0x16], cx
mov ecx, dword [esp + 0x30]
mov word [esi + 0x14], ax
test dl, dl
je 0x1015dfb3
xor edx, edx
xor eax, eax
jmp 0x1015dfd5
add eax, 0xfffffffe
mov word [esi + 0x14], ax
mov eax, dword [esp + 0x38]
add eax, 0xfffffffe
mov word [esi + 0x16], ax
mov eax, dword [esp + 0x34]
add eax, 4
movzx edx, ax
lea eax, [ecx + 4]
movzx eax, ax
mov word [esi + 0x10], ax
xorps xmm0, xmm0
mov word [esi + 0x12], dx
movsx eax, word [esp + 0x40]
shl eax, 0x10
mov dword [esi + 8], eax
movsx eax, word [esp + 0x42]
shl eax, 0x10
mov dword [esi + 0xc], eax
mov word [esi + 0x19], 0
mov al, byte [edi + 0x36]
shr al, 4
test al, 1
je 0x1015e0ab
lea eax, [edi + 0xc0]
movaps xmmword [esp + 0x30], xmm0
push eax
push 0
push 0
lea eax, [esp + 0x3c]
mov dword [esp + 0x4c], 0
push eax
push 0x80
push dword [esp + 0x30]
push dword [edi + 0xd0]
call dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x1015e38d
lea ecx, [edi + 0xe4]
lea eax, [esp + 0x10]
push eax
movsx eax, word [esp + 0x46]
movd xmm2, eax
movsx eax, word [esp + 0x44]
cvtdq2ps xmm2, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.100a3b30
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [0x10226540]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x10226540]
mov dword [esi + 8], eax
cvttss2si eax, xmm0
mov dword [esi + 0xc], eax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.101b3122
mov esp, ebp
pop ebp
ret 4
ucomiss xmm0, dword [edi + 0x10]
lahf
test ah, 0x44
jp 0x1015e0e5
ucomiss xmm0, dword [edi + 0x18]
lahf
test ah, 0x44
jp 0x1015e0cd
ucomiss xmm0, dword [edi + 0x1c]
lahf
test ah, 0x44
jnp 0x1015e38d
ucomiss xmm0, dword [edi + 0x14]
lahf
test ah, 0x44
jp 0x1015e0e5
ucomiss xmm0, dword [edi + 0x20]
lahf
test ah, 0x44
jnp 0x1015e38d
lea eax, [edi + 0xa0]
push eax
push 0
push 0
lea eax, [esp + 0x3c]
push eax
push 0x80
push dword [esp + 0x30]
push dword [edi + 0xd0]
call dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x1015e38d
lea ecx, [edi + 0x10c]
jmp 0x1015e049
movzx eax, word [esi + 0x1c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x28]
push eax
push dword [edi + 0xd0]
call dword [sym.imp.GDI32.dll_GetTextExtentPointI]
test eax, eax
jne 0x1015e14f
movzx eax, word [edi + 0x150]
mov word [esi + 0x10], ax
mov ecx, eax
jmp 0x1015e15b
mov ax, word [esp + 0x10]
mov word [esi + 0x10], ax
movzx ecx, ax
mov edx, dword [esp + 0x14]
mov word [esi + 0x12], dx
mov ax, word [edi + 0x13c]
neg ax
mov dword [esi + 0xc], 0
movzx edx, ax
mov word [esi + 0x14], ax
xor eax, eax
mov word [esi + 0x16], ax
movzx eax, cx
mov ecx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
shl ecx, 0x10
mov dword [esi + 8], ecx
cmp dword [edi + 0x134], 2
mov dword [esp + 0x28], eax
jne 0x1015e36d
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x64]
xorps xmm0, xmm0
cwde
xorps xmm2, xmm2
mov dword [esp + 0x54], 0
cvtsi2ss xmm2, dword [esp + 0x28]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x88], 0x80
xorps xmm1, xmm1
addss xmm2, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm1, eax
movzx eax, dx
cvtsi2ss xmm0, eax
lea eax, [esp + 0x54]
push eax
push eax
movss dword [esp + 0x64], xmm2
movss xmm2, dword [0x10226184]
addss xmm0, xmm1
movss dword [esp + 0x60], xmm1
movss dword [esp + 0x68], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [edi + 0xb0]
mulss xmm0, xmm2
movss dword [esp + 0x6c], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [edi + 0xb8]
mulss xmm0, xmm2
xorps xmm0, xmmword [0x10226a70]
movss dword [esp + 0x70], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [edi + 0xb4]
mulss xmm0, xmm2
xorps xmm0, xmmword [0x10226a70]
movss dword [esp + 0x78], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [edi + 0xbc]
mulss xmm0, xmm2
movss dword [esp + 0x7c], xmm0
movaps xmm0, xmmword [0x10226920]
movups xmmword [esp + 0x80], xmm0
call fcn.100b66d0
movss xmm0, dword [esp + 0x54]
sub esp, 8
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fstp qword [esp]
call fcn.101d94f0
movss xmm0, dword [esp + 0x60]
cvtps2pd xmm0, xmm0
fstp qword [esp + 0x18]
movsd qword [esp + 0x30], xmm0
fld qword [esp + 0x30]
fstp qword [esp]
call fcn.101d94f0
movsd xmm0, qword [esp + 0x18]
cvtpd2ps xmm0, xmm0
fstp qword [esp + 0x30]
movsd xmm1, qword [esp + 0x30]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x64]
cvtpd2ps xmm1, xmm1
mov word [esi + 0x16], ax
cvtps2pd xmm0, xmm0
cvttss2si eax, xmm1
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
fstp qword [esp]
mov word [esi + 0x14], ax
call fcn.101cec60
movsd xmm1, qword [esp + 0x18]
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
cvtpd2ps xmm0, xmm0
cvtpd2ps xmm1, xmm1
subss xmm0, xmm1
cvttss2si eax, xmm0
mov word [esi + 0x10], ax
movss xmm0, dword [esp + 0x68]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fstp qword [esp]
call fcn.101cec60
movsd xmm1, qword [esp + 0x30]
add esp, 8
mov ecx, dword [esi + 8]
fstp qword [esp + 0x10]
movsd xmm0, qword [esp + 0x10]
cvtpd2ps xmm0, xmm0
cvtpd2ps xmm1, xmm1
subss xmm0, xmm1
cvttss2si eax, xmm0
mov word [esi + 0x12], ax
mov eax, dword [edi + 0xb4]
neg eax
imul ecx
shrd eax, edx, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0xb0]
imul ecx
shrd eax, edx, 0x10
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.101b3122
mov esp, ebp
pop ebp
ret 4