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

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov qword [rcx + 8], rdx
mov r15, rdx
mov dword [rcx + 0x10], r8d
xor ebx, ebx
mov qword [rcx + 0x40], rbx
mov r13d, r8d
mov qword [rcx + 0x48], rbx
lea r8, str.cmap
mov rdi, rcx
mov edx, r13d
mov rcx, r15
call fcn.1400433b0
mov edx, r13d
mov r14d, eax
mov rcx, r15
lea r8, [0x1400878f8]
call fcn.1400433b0
mov edx, r13d
mov dword [rdi + 0x18], eax
mov rcx, r15
lea r8, [0x140087900]
mov esi, eax
call fcn.1400433b0
mov edx, r13d
mov dword [rdi + 0x1c], eax
mov rcx, r15
lea r8, [0x140087908]
mov r12d, eax
call fcn.1400433b0
mov edx, r13d
mov dword [rbp + 0x50], eax
mov rcx, r15
mov dword [rdi + 0x20], eax
lea r8, str.hhea
call fcn.1400433b0
mov edx, dword [rbp + 0x58]
lea r8, str.hmtx
mov rcx, r15
mov dword [rdi + 0x24], eax
mov r13d, eax
call fcn.1400433b0
mov edx, dword [rbp + 0x58]
lea r8, [0x140087920]
mov rcx, r15
mov dword [rbp + 0x48], eax
mov dword [rdi + 0x28], eax
call fcn.1400433b0
mov edx, dword [rbp + 0x58]
lea r8, str.GPOS
mov rcx, r15
mov dword [rdi + 0x2c], eax
call fcn.1400433b0
mov dword [rdi + 0x30], eax
test r14d, r14d
je 0x140040faa
test r12d, r12d
je 0x140040faa
test r13d, r13d
je 0x140040faa
cmp dword [rbp + 0x48], ebx
je 0x140040faa
cmp dword [rbp + 0x50], ebx
je 0x140040fbd
test esi, esi
jne 0x14004128e
xor eax, eax
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edx, dword [rbp + 0x58]
lea r8, str.CFF
mov rcx, r15
mov dword [rbp + 0x48], 2
mov dword [rbp + 0x50], ebx
mov dword [rbp + 0x60], ebx
mov dword [rbp - 0x58], ebx
call fcn.1400433b0
test eax, eax
je 0x140040faa
mov qword [rdi + 0x80], rbx
mov qword [rdi + 0x88], rbx
mov qword [rdi + 0x90], rbx
mov qword [rdi + 0x98], rbx
mov eax, eax
add rax, r15
mov qword [rdi + 0x40], rax
mov dword [rdi + 0x48], ebx
mov dword [rdi + 0x4c], 0x20000000
movups xmm2, xmmword [rdi + 0x40]
mov ecx, dword [rdi + 0x48]
mov rax, qword [rdi + 0x48]
add ecx, 2
movdqa xmm0, xmm2
shr rax, 0x20
psrldq xmm0, 0xc
movd edx, xmm0
movaps xmmword [rbp - 0x48], xmm2
cmp ecx, eax
jg 0x140041050
test ecx, ecx
js 0x140041050
cmp ecx, edx
jge 0x140041050
movsxd rcx, ecx
movq rax, xmm2
movzx r8d, byte [rcx + rax]
jmp 0x140041053
xor r8b, r8b
movzx eax, r8b
lea rcx, [rbp - 0x28]
cmp eax, edx
cmovle edx, eax
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x48]
call fcn.1400421b0
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.1400421b0
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x38]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x28], xmm0
call fcn.1400422d0
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x38], xmm0
call fcn.1400421b0
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.1400421b0
mov r8d, 0x11
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rdi + 0x60], xmm0
call fcn.140042be0
mov rsi, rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x28], xmm0
mov eax, dword [rbp - 0x1c]
cmp dword [rbp - 0x20], eax
jge 0x1400410f3
lea rcx, [rbp - 0x28]
call fcn.140042430
mov dword [rbp + rsi*4 + 0x50], eax
inc rsi
cmp rsi, 1
jl 0x1400410d5
mov r8d, 0x106
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x28]
call fcn.140042be0
mov rsi, rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x28], xmm0
mov eax, dword [rbp - 0x1c]
cmp dword [rbp - 0x20], eax
jge 0x14004112e
lea rcx, [rbp - 0x28]
call fcn.140042430
mov dword [rbp + rsi*4 + 0x48], eax
inc rsi
cmp rsi, 1
jl 0x140041110
mov r8d, 0x124
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x28]
call fcn.140042be0
mov rsi, rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x28], xmm0
nop dword [rax + rax]
mov eax, dword [rbp - 0x1c]
cmp dword [rbp - 0x20], eax
jge 0x14004116e
lea rcx, [rbp - 0x28]
call fcn.140042430
mov dword [rbp + rsi*4 + 0x60], eax
inc rsi
cmp rsi, 1
jl 0x140041150
mov r8d, 0x125
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x28]
call fcn.140042be0
mov rsi, rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x28], xmm0
nop dword [rax + rax]
mov eax, dword [rbp - 0x1c]
cmp dword [rbp - 0x20], eax
jge 0x1400411ae
lea rcx, [rbp - 0x28]
call fcn.140042430
mov dword [rbp + rsi*4 - 0x58], eax
inc rsi
cmp rsi, 1
jl 0x140041190
movaps xmm0, xmmword [rbp - 0x38]
lea r8, [rbp - 0x28]
movaps xmm2, xmmword [rbp - 0x48]
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x18]
movdqa xmmword [rbp - 0x28], xmm0
movdqa xmmword [rbp - 0x38], xmm2
call fcn.140043460
cmp dword [rbp + 0x48], 2
movups xmm1, xmmword [rax]
movups xmmword [rdi + 0x70], xmm1
jne 0x140040faa
mov r12d, dword [rbp + 0x50]
test r12d, r12d
je 0x140040faa
mov eax, dword [rbp + 0x60]
test eax, eax
je 0x140041266
movsxd rsi, dword [rbp - 0x58]
test esi, esi
je 0x140040faa
psrldq xmm2, 0xc
movd ecx, xmm2
cmp eax, ecx
jg 0x140041216
mov dword [rbp - 0x40], eax
test eax, eax
jns 0x140041219
mov dword [rbp - 0x40], ecx
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x18]
call fcn.1400421b0
mov ecx, dword [rbp - 0x3c]
mov edx, ecx
sub edx, esi
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rbx
movups xmm0, xmmword [rax]
movups xmmword [rdi + 0x80], xmm0
test esi, esi
js 0x140041259
test edx, edx
js 0x140041259
cmp esi, ecx
jg 0x140041259
mov rax, rsi
mov dword [rbp - 0x2c], edx
add rax, qword [rbp - 0x48]
mov qword [rbp - 0x38], rax
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rdi + 0x90], xmm0
jmp 0x140041269
mov ecx, dword [rbp - 0x3c]
cmp r12d, ecx
jg 0x140041277
mov dword [rbp - 0x40], r12d
test r12d, r12d
jns 0x14004127a
mov dword [rbp - 0x40], ecx
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x18]
call fcn.1400421b0
movups xmm0, xmmword [rax]
movups xmmword [rdi + 0x50], xmm0
mov edx, dword [rbp + 0x58]
lea r8, [0x140087938]
mov rcx, r15
call fcn.1400433b0
test eax, eax
je 0x1400412b9
mov eax, eax
movzx ecx, byte [rax + r15 + 4]
movzx edx, byte [rax + r15 + 5]
shl ecx, 8
add edx, ecx
jmp 0x1400412be
mov edx, 0xffff
mov dword [rdi + 0x14], edx
mov dword [rdi + 0x34], 0xffffffff
movzx r9d, byte [r14 + r15 + 2]
movzx eax, byte [r14 + r15 + 3]
shl r9d, 8
mov dword [rdi + 0x38], ebx
add r9d, eax
je 0x140041365
nop dword [rax]
nop dword [rax + rax]
lea eax, [r14 + 4]
lea eax, [rax + rbx*8]
movzx r8d, byte [rax + r15]
mov ecx, eax
movzx eax, byte [rax + r15 + 1]
shl r8d, 8
add r8d, eax
je 0x14004132e
cmp r8d, 3
jne 0x14004135e
movzx edx, byte [rcx + r15 + 2]
movzx eax, byte [rcx + r15 + 3]
shl edx, 8
add edx, eax
sub edx, 1
je 0x14004132e
cmp edx, 9
jne 0x14004135e
movzx eax, byte [rcx + r15 + 4]
movzx r8d, byte [rcx + r15 + 5]
movzx edx, byte [rcx + r15 + 7]
shl eax, 8
add r8d, eax
movzx eax, byte [rcx + r15 + 6]
shl r8d, 8
add eax, r8d
shl eax, 8
add eax, r14d
add edx, eax
mov dword [rdi + 0x38], edx
inc ebx
cmp ebx, r9d
jl 0x1400412f0
cmp dword [rdi + 0x38], 0
je 0x140040faa
movsxd rax, dword [rdi + 0x1c]
movzx ecx, byte [rax + r15 + 0x32]
movzx edx, byte [rax + r15 + 0x33]
mov eax, 1
shl ecx, 8
add edx, ecx
mov dword [rdi + 0x3c], edx
jmp 0x140040fac