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

Disassembly:
sub esp, 0x70
mov eax, dword [0x1032e6c0]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
mov ebx, dword [esp + 0x78]
push ebp
mov ebp, dword [esp + 0x80]
push esi
movsd xmm0, qword [ebx + 0x3328]
mulsd xmm0, qword [0x102a5518]
cmp word [ebp + 0x3c], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x38]
mulsd xmm0, qword [0x102a2d50]
push edi
mov edi, dword [ebx + 0x4698]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x48], 0
movsd qword [esp + 0x3c], xmm0
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
jbe 0x1024751a
lea eax, [esp + 0x58]
push eax
call fcn.1024b490
mov ecx, dword [esp + 0x5c]
add esp, 4
cmp dword [edi + 0x7838], ecx
jne 0x102470b1
movsd xmm0, qword [edi + 0x7840]
ucomisd xmm0, qword [ebx + 0x3458]
lahf
test ah, 0x44
jp 0x102470b1
movsd xmm0, qword [edi + 0x7848]
ucomisd xmm0, qword [ebx + 0x31f0]
lahf
test ah, 0x44
jp 0x102470b1
movsd xmm0, qword [edi + 0x7850]
ucomisd xmm0, qword [ebx + 0x31f8]
lahf
test ah, 0x44
jnp 0x102470bb
push ecx
push ebx
call fcn.10246510
add esp, 8
cmp dword [ebx + 0xc], 0
je 0x10247104
mov edx, dword [edi + 0x7884]
movsx ecx, word [edx + 0x46]
movsx esi, word [edx + 0x50]
mov eax, ecx
sub eax, esi
sar ecx, 6
sar eax, 6
push eax
movsx eax, word [edx + 0x48]
push ecx
sar eax, 6
push eax
sar esi, 6
push esi
push str.plD_render_freetype_text:
push str._s__d__d__d__d_n
push 2
call fcn.102724ac
add esp, 4
push eax
call fcn.1000b2e0
add esp, 0x1c
movzx ecx, word [ebp + 0x3c]
mov ebx, dword [ebp + 0x38]
lea eax, [ebx + ecx*4]
cmp dword [esp + 0x10], eax
jae 0x10247677
movsd xmm0, qword [esp + 0x3c]
mov eax, ecx
mov dword [esp + 0x20], eax
call fcn.10271940
mulsd xmm0, qword [0x102a5568]
cvttsd2si eax, xmm0
movsd xmm0, qword [esp + 0x3c]
mov dword [esp + 0x60], eax
call fcn.10271b00
mulsd xmm0, qword [0x102a5568]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
cvttsd2si eax, xmm0
mulsd xmm0, qword [0x102a51d8]
mov dword [esp + 0x50], eax
cvttsd2si eax, xmm0
mov dword [esp + 0x2c], eax
nop dword [eax]
xor esi, esi
cmp dword [edx], 0xa
je 0x1024718e
movzx eax, cx
lea ecx, [ebx + eax*4]
mov eax, edx
nop
cmp eax, ecx
jae 0x1024718e
inc esi
cmp dword [edx + esi*4], 0xa
lea eax, [edx + esi*4]
jne 0x10247180
lea ebx, [edi + 0x7858]
mov dword [edi + 0x785c], 0
lea eax, [edi + 0x7868]
mov dword [ebx], 0x10000
push ebx
push eax
mov dword [edi + 0x7860], 0
mov dword [edi + 0x7864], 0x10000
call fcn.1014e9b0
lea eax, [edi + 0x7868]
push eax
push ebx
push dword [edi + 0x7884]
call fcn.1014db70
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x30]
movzx eax, si
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x58], eax
push ecx
lea ecx, [esp + 0x64]
push ecx
push eax
push ebx
push dword [esp + 0x40]
call fcn.10246670
mov eax, dword [edi + 0x7884]
add esp, 0x30
mov ebx, dword [esp + 0x5c]
movsx edx, word [eax + 0x46]
movsx eax, word [eax + 0x48]
mov ecx, edx
sub ecx, eax
movd xmm0, edx
lea edx, [edi + 0x7858]
cvtdq2pd xmm0, xmm0
movd xmm1, ecx
xor ecx, ecx
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [esp + 0x64], xmm1
mulsd xmm0, qword [0x102a5568]
cvttsd2si eax, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movaps xmm0, xmm1
lea edx, [edx + 4]
mulsd xmm0, qword [ebx + ecx*8]
inc ecx
cvttsd2si eax, xmm0
mov dword [edx - 4], eax
cmp ecx, 4
jl 0x10247254
mov eax, dword [esp + 0x60]
lea ebx, [edi + 0x7858]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x2c]
push ebx
push eax
mov dword [esp + 0x7c], ecx
call fcn.1014b530
lea eax, [edi + 0x7868]
push ebx
push eax
call fcn.1014e9b0
lea eax, [edi + 0x7868]
push eax
push ebx
push dword [edi + 0x7884]
call fcn.1014db70
movsd xmm3, qword [edi + 8]
add esp, 0x1c
movd xmm2, dword [ebp + 0x14]
xorps xmm4, xmm4
mov al, byte [edi + 0x21]
ucomisd xmm3, xmm4
cvtdq2pd xmm2, xmm2
lahf
test ah, 0x44
jnp 0x10247310
divsd xmm2, xmm3
cmp al, 1
jne 0x10247301
movd xmm0, dword [ebp + 0x18]
cvtdq2pd xmm0, xmm0
movsx eax, word [edi + 0x22]
movd xmm1, eax
divsd xmm0, xmm3
cvtdq2pd xmm1, xmm1
subsd xmm1, xmm0
jmp 0x10247347
movd xmm1, dword [ebp + 0x18]
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm3
jmp 0x10247347
divsd xmm2, qword [edi + 0x10]
cmp al, 1
jne 0x10247339
movd xmm0, dword [ebp + 0x18]
cvtdq2pd xmm0, xmm0
movsx eax, word [edi + 0x22]
movd xmm1, eax
divsd xmm0, qword [edi + 0x18]
cvtdq2pd xmm1, xmm1
subsd xmm1, xmm0
jmp 0x10247347
movd xmm1, dword [ebp + 0x18]
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [edi + 0x18]
cmp word [ebp + 0x3c], 2
mov ebx, dword [esp + 0x10]
cvttsd2si eax, xmm1
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], eax
cvttsd2si eax, xmm2
mov dword [esp + 0x34], eax
jne 0x1024740a
mov eax, dword [ebp + 0x38]
cmp dword [eax], 0x80000004
jne 0x1024740a
mov eax, dword [edi + 0x7884]
movsd xmm1, qword [0x102a2d50]
mov eax, dword [eax + 0x54]
movd xmm0, dword [eax + 0x18]
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x102a5f78]
comisd xmm4, xmm0
jbe 0x102473ab
subsd xmm0, xmm1
jmp 0x102473af
addsd xmm0, xmm1
cvttsd2si eax, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [ebp + 8]
cvttsd2si eax, xmm0
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x7884]
mov eax, dword [eax + 0x54]
movd xmm0, dword [eax + 0x1c]
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x102a4fc8]
comisd xmm4, xmm0
jbe 0x102473f9
subsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [esp + 0x28], eax
jmp 0x102474a1
addsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [esp + 0x28], eax
jmp 0x102474a1
mov eax, dword [edi + 0x7884]
movsd xmm3, qword [0x102a5f78]
movsd xmm2, qword [0x102a2d50]
mov eax, dword [eax + 0x58]
movd xmm1, dword [eax + 0x20]
cvtdq2pd xmm1, xmm1
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x1c]
movd xmm0, eax
divsd xmm1, qword [esp + 0x64]
cvtdq2pd xmm0, xmm0
mulsd xmm1, qword [0x102a4fc8]
mulsd xmm0, xmm3
subsd xmm1, xmm0
comisd xmm4, xmm1
jbe 0x1024745e
subsd xmm1, xmm2
jmp 0x10247462
addsd xmm1, xmm2
movd xmm0, dword [esp + 0x44]
cvtdq2pd xmm0, xmm0
cvttsd2si eax, xmm1
mulsd xmm0, xmm3
mov dword [esp + 0x28], eax
comisd xmm4, xmm0
jbe 0x10247484
subsd xmm0, xmm2
jmp 0x10247488
addsd xmm0, xmm2
cvttsd2si eax, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [ebp + 8]
cvttsd2si eax, xmm0
mov dword [esp + 0x24], eax
lea eax, [edi + 0x7858]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1014e9b0
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x30]
push eax
push dword [esp + 0x4c]
push ebx
push dword [esp + 0x2c]
call fcn.102468c0
mov eax, dword [esp + 0x64]
add esp, 0x1c
add eax, dword [esp + 0x18]
add eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
add dword [esp + 0x1c], eax
movzx eax, word [ebp + 0x3c]
mov ebx, dword [ebp + 0x38]
mov ecx, eax
lea edx, [edx + esi*4]
add edx, 4
mov dword [esp + 0x10], edx
lea eax, [ebx + eax*4]
cmp edx, eax
jb 0x10247170
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.1026465b
add esp, 0x70
ret
movsd xmm2, qword [edi + 8]
ucomisd xmm2, qword [0x102a2918]
movd xmm0, dword [ebp + 0x14]
cvtdq2pd xmm0, xmm0
lahf
test ah, 0x44
jnp 0x1024756b
cmp byte [edi + 0x21], 1
divsd xmm0, xmm2
movsd qword [esp + 0x50], xmm0
movd xmm0, dword [ebp + 0x18]
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
jne 0x102475b6
movsx eax, word [edi + 0x22]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm1, xmm0
movsd qword [esp + 0x34], xmm1
jmp 0x102475bc
cmp byte [edi + 0x21], 1
divsd xmm0, qword [edi + 0x10]
movsd qword [esp + 0x50], xmm0
jne 0x102475a2
movd xmm0, dword [ebp + 0x18]
cvtdq2pd xmm0, xmm0
movsx eax, word [edi + 0x22]
movd xmm1, eax
divsd xmm0, qword [edi + 0x18]
cvtdq2pd xmm1, xmm1
subsd xmm1, xmm0
movsd qword [esp + 0x34], xmm1
jmp 0x102475bc
movsd qword [esp + 0x50], xmm0
movd xmm0, dword [ebp + 0x18]
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [edi + 0x18]
movsd qword [esp + 0x34], xmm0
mov eax, dword [edi + 0x7884]
movsx eax, word [eax + 0x48]
sar eax, 6
mov dword [esp + 0x30], eax
lea eax, [edi + 0x7858]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
call fcn.1014e9b0
cvttsd2si ebx, qword [esp + 0x58]
lea eax, [esp + 0x44]
push eax
cvttsd2si esi, qword [esp + 0x40]
add ebx, dword [esp + 0x38]
sub esi, dword [esp + 0x3c]
call fcn.1024b490
push dword [esp + 0x48]
mov edi, dword [esp + 0x24]
push edi
call fcn.10246510
mov edi, dword [edi + 0x4698]
lea eax, [edi + 0x7868]
push eax
lea eax, [edi + 0x7858]
push eax
push dword [edi + 0x7884]
call fcn.1014db70
cmp dword [edi + 0x34], 0
mov ecx, 0x1004
mov eax, 0x24
cmove eax, ecx
push eax
push dword [ebp + 0x34]
push dword [edi + 0x7884]
call fcn.1014ab80
mov eax, dword [edi + 0x7884]
push esi
mov ecx, dword [eax + 0x54]
mov eax, dword [ecx + 0x40]
sar eax, 6
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
push ebx
push ecx
push edi
push dword [esp + 0x50]
call fcn.10245ef0
add esp, 0x40
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1026465b
add esp, 0x70
ret