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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx + 8]
mov dword [esp + 0x10], ecx
push dword [ebx + 4]
mov dword [esp + 0x1c], edi
push 0
push dword [edi]
call sub.libfreetype.dll_FT_Set_Pixel_Sizes
push 0xc
push dword [ebx + 0x10]
push dword [edi]
call sub.libfreetype.dll_FT_Load_Glyph
add esp, 0x18
test eax, eax
je 0x46aade
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push str.Error_loading_glyph._Chr_d_GlyphIndex_u
push str.textrender
push 3
call fcn.00619ff0
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
mov eax, dword [eax + 0x54]
add eax, 0x4c
mov dword [esp + 0x44], eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
xor eax, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], eax
test ecx, ecx
je 0x46ab3f
mov ecx, dword [ebx + 4]
mov eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
cmp ecx, 0x30
jle 0x46ab21
mov eax, 4
jmp 0x46ab32
cmp ecx, 0x12
jl 0x46ab36
lea edi, [ebx + 8]
mov eax, 2
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x40], eax
add eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
lea esi, [eax + ecx]
lea ebx, [eax + edx]
mov dword [esp + 0x38], ebx
test esi, esi
je 0x46ae8e
mov dword [esp + 0x18], edi
test ebx, ebx
je 0x46ae8e
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push esi
lea ecx, [edi + 0x18]
call fcn.00466cf0
test al, al
jne 0x46abb7
nop
mov ecx, edi
call fcn.00469b50
test al, al
je 0x46ad40
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push esi
lea ecx, [edi + 0x18]
call fcn.00466cf0
test al, al
je 0x46ab90
mov eax, ebx
mov ecx, edi
imul eax, esi
add ecx, 0x68
push eax
push 0
push ecx
call fcn.00634760
mov ecx, dword [esp + 0x50]
xor edi, edi
add esp, 0xc
cmp dword [ecx], edi
jbe 0x46ac0b
mov ebx, dword [esp + 0x10]
lea eax, [esi + 1]
imul eax, dword [esp + 0x40]
add ebx, 0x68
add ebx, eax
mov eax, dword [ecx + 4]
push eax
imul eax, edi
add eax, dword [ecx + 0xc]
push eax
push ebx
call fcn.006205c0
mov ecx, dword [esp + 0x50]
inc edi
add esp, 0xc
add ebx, esi
cmp edi, dword [ecx]
jb 0x46abe8
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov ecx, eax
lea edi, [eax + 0x68]
push edi
push ebx
push esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0
call fcn.0046c6f0
xor eax, eax
mov dword [esp + 0x3c], eax
test ebx, ebx
jle 0x46ae60
mov edx, dword [esp + 0x10]
mov ecx, edi
add edx, 0x10068
mov dword [esp + 0x58], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x40], edx
nop dword [eax]
xor edi, edi
mov dword [esp + 0x18], edi
test esi, esi
jle 0x46ae3d
mov edx, dword [esp + 0x14]
mov eax, edx
mov ebx, dword [esp + 0x40]
neg eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebx
nop word [eax + eax]
movzx ecx, byte [ecx]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], eax
cmp eax, edx
jg 0x46ae0c
mov ebx, dword [esp + 0x3c]
add ebx, eax
mov eax, ebx
mov dword [esp + 0x48], ebx
imul eax, esi
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x54]
add esi, edi
test esi, esi
js 0x46adce
test ebx, ebx
js 0x46adce
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
cmp esi, eax
jge 0x46adce
cmp ebx, dword [esp + 0x38]
jge 0x46adce
movd xmm0, dword [esp + 0x2c]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x64], 0x3f800000
mov dword [esp + 0x5c], 0
movd xmm1, edi
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x74], xmm0
mov ecx, dword [esp + 0x74]
movss dword [esp + 0x70], xmm1
mov eax, dword [esp + 0x70]
mov dword [esp + 0x78], eax
mulss xmm1, dword [esp + 0x78]
mov dword [esp + 0x7c], ecx
mulss xmm0, dword [esp + 0x7c]
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x46ad53
sqrtsd xmm0, xmm0
jmp 0x46ad58
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
push dword [eax + 0xc]
push str.Cannot_fit_glyph_into_atlas__which_is_already_at_maximum_size._Chr_d_GlyphIndex_u
jmp 0x46aac4
call fcn.00649080
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x60]
xorps xmm1, xmm1
lea ecx, [esp + 0x5c]
cvtsd2ss xmm1, xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm1
movss dword [esp + 0x60], xmm1
cmovbe ecx, eax
lea eax, [esp + 0x64]
comiss xmm1, dword [0x67b0b4]
movss xmm1, dword [0x67b0b4]
cmovbe eax, ecx
mov ecx, dword [esp + 0x10]
subss xmm1, dword [eax]
mov eax, dword [esp + 0x30]
add eax, edi
add eax, dword [esp + 0x18]
movzx eax, byte [eax + ecx + 0x68]
mov ecx, dword [esp + 0x34]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si eax, xmm1
cmp ecx, eax
cmovl ecx, eax
mov dword [esp + 0x34], ecx
inc edi
inc esi
mov eax, ecx
cmp edi, edx
jle 0x46acb0
mov edi, dword [esp + 0x2c]
inc ebx
mov esi, dword [esp + 0x28]
inc edi
add esi, dword [esp + 0x24]
add dword [esp + 0x30], esi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], ecx
cmp edi, edx
jle 0x46aca6
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
inc edi
mov byte [ebx], cl
inc ebx
mov ecx, dword [esp + 0x4c]
inc ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebx
cmp edi, esi
jl 0x46ac80
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
inc eax
add ecx, esi
add edx, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x40], edx
cmp eax, ebx
jl 0x46ac50
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x68]
jmp 0x46ae6a
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x10068]
push ecx
push ebx
push esi
push dword [esp + 0x2c]
mov ecx, eax
push dword [esp + 0x2c]
push 1
call fcn.0046c6f0
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
add edx, 8
mov eax, dword [esp + 0x28]
jmp 0x46ae92
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x44]
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
shr ebx, 0x1f
mov esi, dword [edi + 4]
mov edi, dword [edi]
add esi, eax
add edi, eax
mov edx, dword [edx]
mov eax, dword [esp + 0x28]
add eax, ecx
movd xmm2, dword [esp + 0x1c]
addsd xmm0, qword [ebx*8 + 0x67b110]
mov ebx, dword [ebp + 8]
movd xmm1, dword [esp + 0x20]
cvtdq2ps xmm2, xmm2
cvtpd2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [ebx + 0x18], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x67b110]
mov eax, dword [esp + 0x6c]
cvtpd2ps xmm0, xmm0
movss dword [ebx + 0x14], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x67b110]
cvtpd2ps xmm0, xmm0
movss dword [ebx + 0x20], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x67b110]
cvtpd2ps xmm0, xmm0
movss dword [ebx + 0x1c], xmm0
mov eax, dword [edx + 0x54]
mov eax, dword [eax + 0x20]
sar eax, 6
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0x24], xmm0
mov eax, dword [edx + 0x54]
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
sar eax, 6
sar ecx, 6
sub ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0x28], xmm0
mov eax, dword [edx + 0x54]
mov eax, dword [eax + 0x40]
sar eax, 6
movss dword [ebx + 0x30], xmm2
movss dword [ebx + 0x34], xmm1
mov dword [ebx], 1
movd xmm0, eax
mov al, 1
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0x2c], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
addss xmm0, xmm2
movss dword [ebx + 0x38], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
pop edi
pop esi
addss xmm0, xmm1
movss dword [ebx + 0x3c], xmm0
pop ebx
mov esp, ebp
pop ebp
ret 4