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

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, edx
push edi
mov edi, dword [esp + 0x5c]
mov ecx, ebp
push str.cmap
mov dword [esi + 4], ebp
mov edx, edi
mov dword [esi + 8], edi
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esp + 0x28], ebp
mov dword [esi + 0x40], 0
call fcn.004069b0
push str.loca
mov edx, edi
mov ecx, ebp
mov ebx, eax
call fcn.004069b0
push str.head
mov edx, edi
mov dword [esp + 0x2c], eax
mov ecx, ebp
mov dword [esi + 0x10], eax
call fcn.004069b0
push str.glyf
mov edx, edi
mov dword [esp + 0x2c], eax
mov ecx, ebp
mov dword [esi + 0x14], eax
call fcn.004069b0
push str.hhea
mov edx, edi
mov dword [esp + 0x24], eax
mov ecx, ebp
mov dword [esi + 0x18], eax
call fcn.004069b0
push str.hmtx
mov edx, edi
mov dword [esp + 0x30], eax
mov ecx, ebp
mov dword [esi + 0x1c], eax
call fcn.004069b0
push str.kern
mov edx, edi
mov dword [esp + 0x30], eax
mov ecx, ebp
mov dword [esi + 0x20], eax
call fcn.004069b0
push str.GPOS
mov edx, edi
mov dword [esi + 0x24], eax
mov ecx, ebp
call fcn.004069b0
add esp, 0x20
mov dword [esi + 0x28], eax
test ebx, ebx
je 0x406d37
cmp dword [esp + 0x1c], 0
je 0x406d37
cmp dword [esp + 0x18], 0
je 0x406d37
cmp dword [esp + 0x14], 0
je 0x406d37
cmp dword [esp + 0x10], 0
je 0x406d41
cmp dword [esp + 0x20], 0
jne 0x4070e3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
push str.CFF
mov edx, edi
mov dword [esp + 0x1c], 2
mov ecx, ebp
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004069b0
add esp, 4
test eax, eax
je 0x406d37
mov dword [esi + 0x68], 0
lea ecx, [esp + 0x28]
mov dword [esi + 0x6c], 0
add eax, ebp
mov dword [esi + 0x70], 0
mov edx, 2
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0x20000000
movq xmm0, qword [esi + 0x38]
mov eax, dword [esi + 0x40]
movq qword [esp + 0x28], xmm0
mov dword [esp + 0x30], eax
call fcn.00406230
lea ecx, [esp + 0x28]
call fcn.004061b0
movzx edx, al
lea ecx, [esp + 0x28]
call fcn.004061f0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.004062d0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.004062d0
push ecx
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [esp + 0x4c]
push eax
xor ecx, ecx
call fcn.004067b0
lea ecx, [esp + 0x38]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x50]
push eax
movq qword [esp + 0x48], xmm0
call fcn.004062d0
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x40]
call fcn.004062d0
mov edx, 0x11
lea ecx, [esp + 0x4c]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x50], xmm0
mov dword [esi + 0x58], eax
lea eax, [esp + 0x64]
push eax
call fcn.004065d0
add esp, 0x1c
xor edi, edi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], eax
cmp dword [esp + 0x44], eax
jge 0x406ea5
lea ecx, [esp + 0x40]
call fcn.00406410
mov dword [esp + edi*4 + 0x1c], eax
inc edi
cmp edi, 1
jge 0x406ea5
mov eax, dword [esp + 0x48]
jmp 0x406e86
lea eax, [esp + 0x4c]
mov edx, 0x106
push eax
lea ecx, [esp + 0x38]
call fcn.004065d0
add esp, 4
xor edi, edi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], eax
nop
cmp dword [esp + 0x44], eax
jge 0x406eef
lea ecx, [esp + 0x40]
call fcn.00406410
mov dword [esp + edi*4 + 0x18], eax
inc edi
cmp edi, 1
jge 0x406eef
mov eax, dword [esp + 0x48]
jmp 0x406ed0
lea eax, [esp + 0x4c]
mov edx, 0x124
push eax
lea ecx, [esp + 0x38]
call fcn.004065d0
add esp, 4
xor edi, edi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], eax
cmp dword [esp + 0x44], eax
jge 0x406f37
lea ecx, [esp + 0x40]
call fcn.00406410
mov dword [esp + edi*4 + 0x10], eax
inc edi
cmp edi, 1
jge 0x406f37
mov eax, dword [esp + 0x48]
jmp 0x406f18
lea eax, [esp + 0x4c]
mov edx, 0x125
push eax
lea ecx, [esp + 0x38]
call fcn.004065d0
add esp, 4
xor edi, edi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], eax
cmp dword [esp + 0x44], eax
jge 0x406f7f
lea ecx, [esp + 0x40]
call fcn.00406410
mov dword [esp + edi*4 + 0x14], eax
inc edi
cmp edi, 1
jge 0x406f7f
mov eax, dword [esp + 0x48]
jmp 0x406f60
movq xmm0, qword [esp + 0x34]
sub esp, 0xc
mov eax, dword [esp + 0x48]
mov ecx, esp
mov edi, dword [esp + 0x3c]
sub esp, 0xc
movq qword [ecx], xmm0
movq xmm0, qword [esp + 0x40]
mov dword [ecx + 8], eax
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], edi
lea eax, [esp + 0x64]
push eax
call fcn.00406a70
add esp, 0x1c
cmp dword [esp + 0x18], 2
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x5c], xmm0
mov dword [esi + 0x64], eax
jne 0x406d37
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x406d37
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40708c
cmp dword [esp + 0x14], 0
je 0x406d37
cmp eax, edi
jg 0x406ffd
test eax, eax
jns 0x407018
push 0x47d
push str.C:UsersVoidDesktopEriks_StuffProjectsBitLibraryBitLibraryDependencies_stb_truetype.h
push str.__o___b__size__o___0_
call fcn.0047bb5b
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, edi
jg 0x407024
mov dword [esp + 0x2c], eax
test eax, eax
jns 0x407028
mov dword [esp + 0x2c], edi
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
call fcn.004062d0
mov edi, dword [esp + 0x34]
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, edi
sub edx, ecx
mov dword [esp + 0x40], 0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x68], xmm0
mov dword [esi + 0x70], eax
xor eax, eax
mov dword [esp + 0x44], 0
test ecx, ecx
js 0x40707e
test edx, edx
js 0x40707e
cmp ecx, edi
jg 0x40707e
mov eax, dword [esp + 0x28]
add eax, ecx
mov dword [esp + 0x40], eax
mov eax, edx
movq xmm0, qword [esp + 0x40]
movq qword [esi + 0x74], xmm0
mov dword [esi + 0x7c], eax
cmp ebp, edi
jg 0x407094
test ebp, ebp
jns 0x4070ab
push 0x47d
push str.C:UsersVoidDesktopEriks_StuffProjectsBitLibraryBitLibraryDependencies_stb_truetype.h
push str.__o___b__size__o___0_
call fcn.0047bb5b
add esp, 0xc
cmp ebp, edi
jg 0x4070b7
mov dword [esp + 0x2c], ebp
test ebp, ebp
jns 0x4070bb
mov dword [esp + 0x2c], edi
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
call fcn.004062d0
mov ebp, dword [esp + 0x28]
add esp, 4
mov edi, dword [esp + 0x5c]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x44], xmm0
mov dword [esi + 0x4c], eax
push str.maxp
mov edx, edi
mov ecx, ebp
call fcn.004069b0
add esp, 4
test eax, eax
je 0x407109
movzx ecx, byte [eax + ebp + 5]
movzx eax, byte [eax + ebp + 4]
shl eax, 8
add ecx, eax
jmp 0x40710e
mov ecx, 0xffff
mov dword [esi + 0xc], ecx
mov dword [esi + 0x2c], 0xffffffff
movzx edi, byte [ebx + ebp + 2]
movzx eax, byte [ebx + ebp + 3]
shl edi, 8
mov dword [esi + 0x30], 0
add edi, eax
je 0x40718b
lea eax, [ebx + 9]
add eax, ebp
movzx edx, byte [eax - 5]
movzx ecx, byte [eax - 4]
shl edx, 8
add ecx, edx
je 0x407160
cmp ecx, 3
jne 0x407183
movzx edx, byte [eax - 3]
movzx ecx, byte [eax - 2]
shl edx, 8
add edx, ecx
sub edx, 1
je 0x407160
sub edx, 9
jne 0x407183
movzx edx, byte [eax - 1]
movzx ecx, byte [eax]
shl edx, 8
add edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
add edx, ecx
movzx ecx, byte [eax + 2]
shl edx, 8
add edx, ebx
add ecx, edx
mov dword [esi + 0x30], ecx
add eax, 8
sub edi, 1
jne 0x407135
cmp dword [esi + 0x30], 0
je 0x406d37
mov eax, dword [esi + 0x14]
pop edi
movzx ecx, byte [eax + ebp + 0x32]
movzx eax, byte [eax + ebp + 0x33]
shl ecx, 8
add ecx, eax
mov eax, 1
mov dword [esi + 0x34], ecx
pop esi
pop ebp
pop ebx
add esp, 0x48
ret