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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10084040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov edx, eax
push str.cmap
mov dword [esi + 4], edi
mov ecx, edi
mov dword [esi + 8], eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [ebp - 0x3c], edi
mov dword [esi + 0x3c], 0
call fcn.10022160
mov edx, dword [ebp + 8]
mov ebx, eax
push 0x10078c28
mov ecx, edi
mov dword [ebp - 0x50], ebx
call fcn.10022160
mov edx, dword [ebp + 8]
mov ecx, edi
push str.head
mov dword [ebp - 0x4c], eax
mov dword [esi + 0x10], eax
call fcn.10022160
mov edx, dword [ebp + 8]
mov ecx, edi
push str.glyf
mov dword [ebp - 0x10], eax
mov dword [esi + 0x14], eax
call fcn.10022160
mov edx, dword [ebp + 8]
mov ecx, edi
push str.hhea
mov dword [ebp - 8], eax
mov dword [esi + 0x18], eax
call fcn.10022160
mov edx, dword [ebp + 8]
mov ecx, edi
push str.hmtx
mov dword [ebp - 0xc], eax
mov dword [esi + 0x1c], eax
call fcn.10022160
mov edx, dword [ebp + 8]
mov ecx, edi
push 0x10078c50
mov dword [ebp - 0x20], eax
mov dword [esi + 0x20], eax
call fcn.10022160
mov edx, dword [ebp + 8]
mov ecx, edi
push 0x10078c58
mov dword [esi + 0x24], eax
call fcn.10022160
add esp, 0x20
mov dword [esi + 0x28], eax
test ebx, ebx
je 0x10022621
cmp dword [ebp - 0x10], 0
je 0x10022621
cmp dword [ebp - 0xc], 0
je 0x10022621
cmp dword [ebp - 0x20], 0
je 0x10022621
cmp dword [ebp - 8], 0
je 0x10022634
cmp dword [ebp - 0x4c], 0
jne 0x100229da
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c1ab
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov ecx, edi
push str.CFF
mov dword [ebp - 0xc], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
call fcn.10022160
add esp, 4
test eax, eax
je 0x10022621
mov dword [esi + 0x64], 0
add eax, edi
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0x20000000
movq xmm0, qword [esi + 0x34]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movq qword [ebp - 0x1c], xmm0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
lea edi, [eax + 2]
cmp edi, ebx
jg 0x100226c7
test edi, edi
jns 0x100226e1
push 0x46c
push str.C:UsersUser_source_reposLANRedTrainerLANRedTrainerimguiimstb_truetype.h
push str.__o___b__size__o___0_
call ecx
mov ecx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp edi, ebx
jg 0x100226f5
test edi, edi
js 0x100226f5
cmp edi, ebx
jge 0x100226f5
mov eax, dword [ebp - 0x1c]
mov al, byte [eax + edi]
jmp 0x100226f7
xor al, al
movzx edi, al
cmp edi, ebx
jle 0x10022714
push 0x46c
push str.C:UsersUser_source_reposLANRedTrainerLANRedTrainerimguiimstb_truetype.h
push str.__o___b__size__o___0_
call ecx
add esp, 0xc
cmp edi, ebx
lea eax, [ebp - 0x38]
cmovle ebx, edi
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
call fcn.10021af0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10021af0
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, [ebp - 0x38]
push eax
xor ecx, ecx
call fcn.10021fe0
lea ecx, [ebp - 0x1c]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
movq qword [ebp - 0x2c], xmm0
call fcn.10021af0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10021af0
mov edx, 0x11
lea ecx, [ebp - 0x2c]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x4c], xmm0
mov dword [esi + 0x54], eax
lea eax, [ebp - 0x48]
push eax
call fcn.10021e00
add esp, 0x1c
xor edi, edi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
nop dword [eax]
cmp dword [ebp - 0x34], eax
jge 0x100227cc
lea ecx, [ebp - 0x38]
call fcn.10021c40
mov dword [ebp + edi*4 - 0x10], eax
inc edi
cmp edi, 1
jge 0x100227cc
mov eax, dword [ebp - 0x30]
jmp 0x100227b0
lea eax, [ebp - 0x48]
mov edx, 0x106
push eax
lea ecx, [ebp - 0x2c]
call fcn.10021e00
add esp, 4
xor edi, edi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x34], eax
jge 0x1002280d
lea ecx, [ebp - 0x38]
call fcn.10021c40
mov dword [ebp + edi*4 - 0xc], eax
inc edi
cmp edi, 1
jge 0x1002280d
mov eax, dword [ebp - 0x30]
jmp 0x100227f1
lea eax, [ebp - 0x48]
mov edx, 0x124
push eax
lea ecx, [ebp - 0x2c]
call fcn.10021e00
add esp, 4
xor edi, edi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x34], eax
jge 0x1002284e
lea ecx, [ebp - 0x38]
call fcn.10021c40
mov dword [ebp + edi*4 - 8], eax
inc edi
cmp edi, 1
jge 0x1002284e
mov eax, dword [ebp - 0x30]
jmp 0x10022832
lea eax, [ebp - 0x48]
mov edx, 0x125
push eax
lea ecx, [ebp - 0x2c]
call fcn.10021e00
add esp, 4
xor edi, edi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x34], eax
jge 0x1002288f
lea ecx, [ebp - 0x38]
call fcn.10021c40
mov dword [ebp + edi*4 - 0x20], eax
inc edi
cmp edi, 1
jge 0x1002288f
mov eax, dword [ebp - 0x30]
jmp 0x10022873
movq xmm0, qword [ebp - 0x2c]
sub esp, 0xc
mov eax, dword [ebp - 0x24]
mov ecx, esp
mov edi, dword [ebp - 0x14]
sub esp, 0xc
movq qword [ecx], xmm0
movq xmm0, qword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], edi
lea eax, [ebp - 0x48]
push eax
call fcn.10022360
add esp, 0x1c
cmp dword [ebp - 0xc], 2
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x58], xmm0
mov dword [esi + 0x60], eax
jne 0x10022621
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10022621
mov eax, dword [ebp - 8]
test eax, eax
je 0x10022988
cmp dword [ebp - 0x20], 0
je 0x10022621
cmp eax, edi
jg 0x10022904
test eax, eax
jns 0x1002291f
push 0x46c
push str.C:UsersUser_source_reposLANRedTrainerLANRedTrainerimguiimstb_truetype.h
push str.__o___b__size__o___0_
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [ebp - 8]
add esp, 0xc
cmp eax, edi
jg 0x1002292a
mov dword [ebp - 0x18], eax
test eax, eax
jns 0x1002292d
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10021af0
mov edi, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, edi
sub edx, ecx
mov dword [ebp - 0x38], 0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x64], xmm0
mov dword [esi + 0x6c], eax
xor eax, eax
mov dword [ebp - 0x34], 0
test ecx, ecx
js 0x1002297b
test edx, edx
js 0x1002297b
cmp ecx, edi
jg 0x1002297b
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 0x38], eax
mov eax, edx
movq xmm0, qword [ebp - 0x38]
movq qword [esi + 0x70], xmm0
mov dword [esi + 0x78], eax
cmp ebx, edi
jg 0x10022990
test ebx, ebx
jns 0x100229a8
push 0x46c
push str.C:UsersUser_source_reposLANRedTrainerLANRedTrainerimguiimstb_truetype.h
push str.__o___b__size__o___0_
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp ebx, edi
jg 0x100229b3
mov dword [ebp - 0x18], ebx
test ebx, ebx
jns 0x100229b6
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10021af0
mov ebx, dword [ebp - 0x50]
add esp, 4
mov edi, dword [ebp - 0x3c]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esi + 0x40], xmm0
mov dword [esi + 0x48], eax
mov edx, dword [ebp + 8]
mov ecx, edi
push 0x10078c68
call fcn.10022160
add esp, 4
test eax, eax
je 0x10022a01
movzx ecx, byte [edi + eax + 4]
movzx eax, byte [edi + eax + 5]
shl ecx, 8
add ecx, eax
jmp 0x10022a06
mov ecx, 0xffff
lea edx, [edi + ebx]
mov dword [esi + 0xc], ecx
movzx eax, byte [edx + 2]
movzx edi, byte [edx + 3]
shl eax, 8
mov dword [esi + 0x2c], 0
add edi, eax
je 0x10022a7b
lea eax, [edx + 9]
movzx edx, byte [eax - 5]
movzx ecx, byte [eax - 4]
shl edx, 8
add ecx, edx
je 0x10022a50
cmp ecx, 3
jne 0x10022a73
movzx edx, byte [eax - 3]
movzx ecx, byte [eax - 2]
shl edx, 8
add edx, ecx
sub edx, 1
je 0x10022a50
sub edx, 9
jne 0x10022a73
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 + 0x2c], ecx
add eax, 8
sub edi, 1
jne 0x10022a25
cmp dword [esi + 0x2c], 0
je 0x10022621
mov eax, dword [esi + 0x14]
mov edx, dword [ebp - 0x3c]
pop edi
movzx ecx, byte [edx + eax + 0x33]
movzx eax, byte [edx + eax + 0x32]
shl eax, 8
add ecx, eax
mov eax, 1
mov dword [esi + 0x30], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1006c1ab
mov esp, ebp
pop ebp
ret