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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [0x4b2740]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x34], edi
mov eax, dword [edi + 0x34]
lea ecx, [eax + 0x4e]
test eax, eax
jne 0x40b10d
mov ecx, 0x490e2c
movsx eax, word [edi + 0x38]
movss xmm0, dword [edi + 0x10]
push eax
push dword [edi + 0x20]
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push ecx
push str.Font:___s__n_.2f_px___d_glyphs___d_file_s_
push edi
call fcn.0047fd40
add esp, 0x14
mov bl, al
mov dword [esp + 4], 0xbf800000
mov dword [esp], 0
call fcn.0041d280
push str.Set_as_default
call fcn.0047ced0
add esp, 0xc
test al, al
je 0x40b163
mov eax, dword [0x4b31e4]
mov dword [eax + 0x38], edi
test bl, bl
je 0x40b7d3
mov esi, dword [0x4b31e4]
push edi
call fcn.0041dab0
mov ebx, dword [esi + 0x49d8]
add esp, 4
mov ecx, dword [esi + 0x49dc]
cmp ebx, ecx
jne 0x40b1f5
inc ebx
test ecx, ecx
je 0x40b19a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x40b19f
mov eax, 8
cmp eax, ebx
cmovg ebx, eax
cmp ebx, ecx
jle 0x40b1f5
lea eax, [ebx*4]
push eax
call fcn.00414de0
mov edx, dword [esi + 0x49e0]
add esp, 4
mov dword [esp + 0x38], eax
test edx, edx
je 0x40b1e9
mov ecx, dword [esi + 0x49d8]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [esi + 0x49e0]
call fcn.00414e70
mov eax, dword [esp + 0x48]
add esp, 0x10
mov dword [esi + 0x49e0], eax
mov dword [esi + 0x49dc], ebx
mov ecx, dword [esi + 0x49d8]
mov eax, dword [esi + 0x49e0]
mov dword [eax + ecx*4], edi
inc dword [esi + 0x49d8]
mov eax, dword [edi + 0x30]
mov ecx, dword [esi + 0x3f8c]
push dword [eax + 4]
mov ecx, dword [ecx + 0x270]
call fcn.0044b160
push str.The_quick_brown_fox_jumps_over_the_lazy_dog
call fcn.0047f590
add esp, 4
call fcn.0041a430
mov eax, dword [0x4b31e4]
push 0
push str._.1f
sub esp, 0xc
movss xmm0, dword [eax + 0x3cf4]
mulss xmm0, dword [0x494358]
or dword [eax + 0x48e8], 1
mov dword [esp + 8], 0x40000000
mov dword [esp + 4], 0x3e99999a
movss dword [eax + 0x48f8], xmm0
lea eax, [edi + 0x4c]
mov dword [esp], 0x3ba3d70a
push eax
push str.Font_scale
call fcn.00473080
add esp, 0x14
mov dword [esp + 4], 0xbf800000
mov dword [esp], 0
call fcn.0041d280
push str.Note_that_the_default_embedded_font_is_NOT_meant_to_be_scaled._n_nFont_are_currently_rendered_into_bitmaps_at_a_given_size_at_the_time_of_building_the_atlas._You_may_oversample_them_to_get_some_flexibility_with_scaling._You_can_also_render_at_multiple_sizes_and_select_which_one_to_use_at_runtime._n_n_Glimmer_of_hope:_the_atlas_system_will_be_rewritten_in_the_future_to_make_scaling_more_flexible._
call fcn.00414ef0
movss xmm2, dword [edi + 0x50]
sub esp, 0xc
movss xmm1, dword [edi + 0x54]
movaps xmm0, xmm2
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp + 8], xmm0
cvtps2pd xmm0, xmm2
movsd qword [esp], xmm0
push str.Ascent:__f__Descent:__f__Height:__f
call fcn.0047f590
movzx eax, word [edi + 0x3a]
add esp, 0x1c
push eax
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00411cf0
add esp, 8
push eax
push str.Fallback_character:__s__U_04X_
call fcn.0047f590
movzx eax, word [edi + 0x3c]
add esp, 0xc
push eax
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00411cf0
add esp, 8
push eax
push str.Ellipsis_character:__s__U_04X_
call fcn.0047f590
mov esi, dword [edi + 0x58]
xorps xmm1, xmm1
movd xmm0, esi
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x40b33d
sqrtsd xmm0, xmm0
jmp 0x40b342
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
cvttss2si eax, xmm0
push eax
push eax
push esi
push str.Texture_Area:_about__d_px__dx_d_px
call fcn.0047f590
xor eax, eax
add esp, 0x1c
xor esi, esi
cmp ax, word [edi + 0x38]
jge 0x40b3bb
xor ebx, ebx
mov eax, dword [edi + 0x34]
test eax, eax
je 0x40b3af
lea ecx, [eax + ebx]
test ecx, ecx
je 0x40b3af
movss xmm0, dword [ecx + 0x2c]
sub esp, 0x10
movzx eax, byte [ecx + 0x1c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [ecx + 0x28]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push eax
push dword [ecx + 0x18]
lea eax, [ecx + 0x4e]
push dword [ecx + 0x14]
push eax
push esi
push str.Input__d:__s__Oversample:___d__d___PixelSnapH:__d__Offset:___.1f__.1f_
call fcn.0046c770
add esp, 0x28
movsx eax, word [edi + 0x38]
inc esi
add ebx, 0x7c
cmp esi, eax
jl 0x40b366
push dword [edi + 0x20]
push str.Glyphs___d_
push str.Glyphs
call fcn.0047fc60
add esp, 0xc
test al, al
je 0x40b7ce
mov ecx, dword [0x4b31e4]
push ecx
mov dword [esp], 0x3f800000
push 0
mov eax, dword [ecx + 0x3f8c]
mov byte [eax + 0xb0], 1
mov eax, dword [ecx + 0x3f8c]
mov eax, dword [eax + 0x270]
mov dword [esp + 0x4c], eax
call fcn.0040f2d0
mov ecx, dword [0x4b31e4]
add esp, 8
movss xmm0, dword [edi + 0x10]
xor ebx, ebx
movss dword [esp + 0x3c], xmm0
mov dword [esp + 0x50], eax
movss xmm0, dword [ecx + 0x38f8]
movss dword [esp + 0x4c], xmm0
mov dword [esp + 0x38], ebx
test ebx, 0xfff
jne 0x40b45c
lea eax, [ebx + 0xfff]
mov ecx, edi
push eax
push ebx
call fcn.00449760
test al, al
je 0x40b45c
add ebx, 0xf00
jmp 0x40b7b3
xor edi, edi
xor esi, esi
mov ecx, dword [esp + 0x34]
movzx eax, bx
mov dword [esp + 0x40], eax
add eax, esi
push eax
call fcn.004476e0
test eax, eax
lea ecx, [edi + 1]
cmove ecx, edi
inc esi
mov edi, ecx
cmp esi, 0x100
jb 0x40b460
test edi, edi
jle 0x40b7af
cmp edi, 1
mov ecx, str.glyph
mov eax, str.glyphs
cmovle eax, ecx
push eax
push edi
lea eax, [ebx + 0xff]
push eax
push ebx
push str.U_04X..U_04X___d__s_
push ebx
call fcn.0047fd40
add esp, 0x18
test al, al
je 0x40b7af
mov eax, dword [0x4b31e4]
xor edi, edi
movss xmm2, dword [esp + 0x4c]
movss xmm3, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
addss xmm2, xmm3
mov eax, dword [eax + 0x3f8c]
movss xmm4, dword [eax + 0xf8]
movss xmm5, dword [eax + 0xfc]
movss dword [esp + 0x54], xmm4
movss dword [esp + 0x58], xmm5
movss dword [esp + 0x48], xmm2
mov eax, edi
mov ecx, ebx
and eax, 0xf
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x494440]
mov eax, edi
shr eax, 4
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x494440]
mov eax, dword [esp + 0x40]
addss xmm1, xmm4
add eax, edi
push eax
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x68], xmm1
addss xmm1, xmm3
mulss xmm0, xmm2
addss xmm0, xmm5
movss dword [esp + 0x70], xmm1
movss dword [esp + 0x6c], xmm0
addss xmm0, xmm3
movss dword [esp + 0x74], xmm0
call fcn.004476e0
push ecx
mov dword [esp], 0x3f800000
mov esi, eax
push 0
push ecx
test esi, esi
mov dword [esp], 0
mov eax, 0x64ffffff
mov ecx, 0x32ffffff
cmovne ecx, eax
lea eax, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x54]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00446370
test esi, esi
je 0x40b75d
mov ecx, dword [esp + 0x40]
movss xmm0, dword [esp + 0x3c]
lea eax, [ecx + edi]
push eax
push dword [esp + 0x54]
lea eax, [esp + 0x6c]
push eax
push ecx
movss dword [esp], xmm0
mov ecx, ebx
push dword [esp + 0x54]
call fcn.0044b530
mov ecx, dword [0x4b31e4]
movss xmm0, dword [esp + 0x64]
movss xmm2, dword [esp + 0x68]
movss xmm4, dword [esp + 0x6c]
mov eax, dword [ecx + 0x3f8c]
movss xmm1, dword [ecx + 0x390c]
movss xmm6, dword [ecx + 0xe00]
movss xmm5, dword [esp + 0x70]
maxss xmm0, dword [eax + 0x21c]
maxss xmm2, dword [eax + 0x220]
minss xmm4, dword [eax + 0x224]
minss xmm5, dword [eax + 0x228]
subss xmm0, xmm1
comiss xmm6, xmm0
jb 0x40b75d
movss xmm0, dword [ecx + 0x3910]
movss xmm3, dword [ecx + 0xe04]
subss xmm2, xmm0
comiss xmm3, xmm2
jb 0x40b75d
addss xmm1, xmm4
comiss xmm1, xmm6
jbe 0x40b75d
addss xmm0, xmm5
comiss xmm0, xmm3
jbe 0x40b75d
push 0
push 0
call fcn.00407fc0
add esp, 8
test al, al
je 0x40b75d
mov eax, dword [esi]
shr eax, 2
push eax
push str.Codepoint:_U_04X
call fcn.0047f590
call fcn.0047bac0
mov eax, dword [esi]
shr eax, 1
and eax, 1
push eax
push str.Visible:__d
call fcn.0047f590
movss xmm0, dword [esi + 4]
add esp, 8
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.AdvanceX:__.1f
call fcn.0047f590
movss xmm0, dword [esi + 0x14]
sub esp, 0x14
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [esi + 0x10]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esi + 0xc]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esi + 8]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.Pos:___.2f__.2f_____.2f__.2f_
call fcn.0047f590
movss xmm0, dword [esi + 0x24]
add esp, 4
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [esi + 0x20]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esi + 0x1c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esi + 0x18]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.UV:___.3f__.3f_____.3f__.3f_
call fcn.0047f590
add esp, 0x24
call fcn.0040d5a0
movss xmm2, dword [esp + 0x48]
inc edi
movss xmm3, dword [esp + 0x3c]
movss xmm4, dword [esp + 0x54]
movss xmm5, dword [esp + 0x58]
cmp edi, 0x100
jb 0x40b501
movaps xmm0, xmm2
lea eax, [esp + 0x5c]
mulss xmm0, dword [0x49436c]
push eax
movss dword [esp + 0x60], xmm0
movss dword [esp + 0x64], xmm0
call fcn.00473bb0
add esp, 4
call fcn.00480a10
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
add ebx, 0x100
mov dword [esp + 0x38], ebx
cmp ebx, 0xffff
jbe 0x40b436
call fcn.00480a10
call fcn.00480a10
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret