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

Disassembly:
sub esp, 0x3c
mov eax, dword [0x100fe040]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, 0x1010b8e4
push edi
mov edi, edx
call fcn.100b1e70
mov ebx, dword [esp + 0x50]
mov ecx, edi
mov dword [esi + 4], edi
mov edx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
push str.cmap
mov dword [esi + 0x3c], 0
call fcn.10058580
push str.loca
mov edx, ebx
mov ecx, edi
mov ebp, eax
call fcn.10058580
push str.head
mov edx, ebx
mov dword [esi + 0x10], eax
mov ecx, edi
call fcn.10058580
push str.glyf
mov edx, ebx
mov dword [esi + 0x14], eax
mov ecx, edi
call fcn.10058580
push str.hhea
mov edx, ebx
mov dword [esi + 0x18], eax
mov ecx, edi
call fcn.10058580
push str.hmtx
mov edx, ebx
mov dword [esi + 0x1c], eax
mov ecx, edi
call fcn.10058580
push str.kern
mov edx, ebx
mov dword [esi + 0x20], eax
mov ecx, edi
call fcn.10058580
push str.GPOS
mov edx, ebx
mov dword [esi + 0x24], eax
mov ecx, edi
call fcn.10058580
add esp, 0x20
mov dword [esi + 0x28], eax
test ebp, ebp
je 0x10058a0f
cmp dword [esi + 0x14], 0
je 0x10058a0f
cmp dword [esi + 0x1c], 0
je 0x10058a0f
cmp dword [esi + 0x20], 0
je 0x10058a0f
cmp dword [esi + 0x18], 0
je 0x10058a24
cmp dword [esi + 0x10], 0
jne 0x10058d0e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.100afa20
add esp, 0x3c
ret
push str.CFF
mov edx, ebx
mov dword [esp + 0x48], 2
mov ecx, edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 0
call fcn.10058580
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10058a0f
lea eax, [esp + 0x2c]
xor edx, edx
push eax
xor ecx, ecx
call fcn.10057ba0
xor edx, edx
xor ecx, ecx
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x64], xmm0
mov dword [esi + 0x6c], eax
lea eax, [esp + 0x30]
push eax
call fcn.10057ba0
mov ecx, dword [esp + 0x24]
mov edx, 0x20000000
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
lea ecx, [edi + ecx]
movq qword [esi + 0x70], xmm0
mov dword [esi + 0x78], eax
lea eax, [esp + 0x34]
push eax
call fcn.10057ba0
mov edx, 2
lea ecx, [esp + 0x2c]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x34], xmm0
mov dword [esi + 0x3c], eax
movq qword [esp + 0x2c], xmm0
mov dword [esp + 0x34], eax
call fcn.10057ae0
lea ecx, [esp + 0x2c]
call fcn.10057a40
movzx edx, al
lea ecx, [esp + 0x2c]
call fcn.10057a90
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x30]
call fcn.10057c20
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
call fcn.10057c20
add esp, 8
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [esp + 0x1c]
push eax
xor ecx, ecx
call fcn.100582a0
lea ecx, [esp + 0x30]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x20]
push eax
movq qword [esp + 0x40], xmm0
call fcn.10057c20
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.10057c20
mov edx, 0x11
lea ecx, [esp + 0x44]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x4c], xmm0
mov dword [esi + 0x54], eax
lea eax, [esp + 0x54]
push eax
push 1
call fcn.100581b0
lea eax, [esp + 0x64]
push eax
push 1
mov edx, 0x106
lea ecx, [esp + 0x54]
call fcn.100581b0
lea eax, [esp + 0x68]
mov edx, 0x124
push eax
push 1
lea ecx, [esp + 0x5c]
call fcn.100581b0
lea eax, [esp + 0x68]
mov edx, 0x125
push eax
push 1
lea ecx, [esp + 0x64]
call fcn.100581b0
movq xmm0, qword [esp + 0x64]
add esp, 0x2c
mov eax, dword [esp + 0x40]
mov ecx, esp
sub esp, 0xc
movq qword [ecx], xmm0
movq xmm0, qword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, esp
mov ecx, dword [esp + 0x40]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
lea eax, [esp + 0x28]
push eax
call fcn.10058770
add esp, 0x1c
cmp dword [esp + 0x44], 2
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x58], xmm0
mov dword [esi + 0x60], eax
jne 0x10058a0f
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x10058a0f
mov edx, dword [esp + 0x40]
test edx, edx
je 0x10058cb2
cmp dword [esp + 0x38], 0
je 0x10058a0f
mov eax, dword [esp + 0x28]
cmp edx, eax
jg 0x10058c36
test edx, edx
jns 0x10058c56
push 0x46c
push str.D:onistrix_2018imguiimstb_truetype.h
push str.__o___b__size__o___0_
call dword [sym.imp.ucrtbased.dll__wassert]
mov eax, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [esp + 0x40]
cmp edx, eax
jg 0x10058c62
mov dword [esp + 0x24], edx
test edx, edx
jns 0x10058c66
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
call fcn.10057c20
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
sub ecx, edx
push ecx
movq xmm0, qword [eax]
lea ecx, [esp + 0x28]
mov eax, dword [eax + 8]
movq qword [esi + 0x64], xmm0
mov dword [esi + 0x6c], eax
lea eax, [esp + 0x18]
push eax
call fcn.10057bd0
mov ecx, dword [esp + 0x48]
add esp, 0xc
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x70], xmm0
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x28]
cmp ecx, eax
jg 0x10058cbe
test ecx, ecx
jns 0x10058cde
push 0x46c
push str.D:onistrix_2018imguiimstb_truetype.h
push str.__o___b__size__o___0_
call dword [sym.imp.ucrtbased.dll__wassert]
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jg 0x10058cea
mov dword [esp + 0x24], ecx
test ecx, ecx
jns 0x10058cee
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
call fcn.10057c20
add esp, 4
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x40], xmm0
mov dword [esi + 0x48], eax
push str.maxp
mov edx, ebx
mov ecx, edi
call fcn.10058580
add esp, 4
test eax, eax
je 0x10058d32
lea ecx, [edi + 4]
add ecx, eax
call fcn.10058430
movzx eax, ax
jmp 0x10058d37
mov eax, 0xffff
lea ecx, [edi + 2]
mov dword [esi + 0xc], eax
add ecx, ebp
call fcn.10058430
movzx ebx, ax
mov dword [esi + 0x2c], 0
test ebx, ebx
je 0x10058db6
lea eax, [edi + 9]
add eax, ebp
nop word [eax + eax]
movzx edx, byte [eax - 5]
movzx ecx, byte [eax - 4]
shl edx, 8
add ecx, edx
je 0x10058d8b
cmp ecx, 3
jne 0x10058dae
movzx edx, byte [eax - 3]
movzx ecx, byte [eax - 2]
shl edx, 8
add edx, ecx
sub edx, 1
je 0x10058d8b
sub edx, 9
jne 0x10058dae
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, ebp
add ecx, edx
mov dword [esi + 0x2c], ecx
add eax, 8
sub ebx, 1
jne 0x10058d60
cmp dword [esi + 0x2c], 0
je 0x10058a0f
mov ecx, dword [esi + 0x14]
add ecx, 0x32
add ecx, edi
call fcn.10058430
mov ecx, dword [esp + 0x48]
movzx eax, ax
pop edi
mov dword [esi + 0x30], eax
mov eax, 1
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100afa20
add esp, 0x3c
ret