Function at 0x140009df0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, rcx
cmp word [rdx], 0x5a4d
jne 0x140009eec
mov rdi, rdx
movsxd rax, dword [rdx + 0x3c]
cmp dword [rdx + rax], 0x4550
jne 0x140009fba
mov rbx, r9
mov r14, r8
mov qword [rsp + 0x60], rsi
mov eax, dword [rdi + rax + 0x88]
mov ebp, dword [rdi + rax + 0x18]
mov ecx, dword [rdi + rax + 0x1c]
add rcx, rdi
mov qword [rsp + 0x70], rcx
mov r13d, dword [rdi + rax + 0x20]
add r13, rdi
mov eax, dword [rdi + rax + 0x24]
add rax, rdi
mov qword [rsp + 0x68], rax
neg rbp
mov rsi, 0xffffffffffffffff
lea r15, str.invalid_args
lea rax, [rsi + rbp]
cmp rax, 0xffffffffffffffff
je 0x14000a078
mov r12d, dword [r13 + rsi*4 + 4]
add r12, rdi
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rcx, [rsp + 0x20]
mov rdx, r12
mov r8, rax
call fcn.14000dfd0
cmp qword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x30]
mov eax, 0
cmovne rdx, rax
mov rcx, qword [rsp + 0x28]
cmovne rcx, r15
mov r8, r14
mov r9, rbx
call fcn.1400025c1
inc rsi
test al, al
je 0x140009e69
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + rsi*2]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax*4]
add rdi, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], rdi
and qword [rax], 0
jmp 0x14000a103
lea rax, [0x14001bde1]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
and dword [rsp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
xor edx, edx
lea rcx, [0x14002832e]
cmp rdx, 0x10
jae 0x140009f30
mov r8, qword [rdx + rcx]
xor r8, qword [rax + rdx + 0xd502]
mov qword [rsp + rdx + 0x20], r8
add rdx, 8
jmp 0x140009f13
xor edx, edx
lea r8, [rdx + 0x10]
cmp r8, 0x13
ja 0x140009f69
movzx r8d, byte [rdx + rcx + 0x12]
shl r8d, 0x10
movzx r9d, word [rdx + rcx + 0x10]
add r8d, r9d
add r8d, 0x60000000
xor r8d, dword [rax + rdx + 0xd512]
mov dword [rsp + rdx + 0x30], r8d
add rdx, 4
jmp 0x140009f32
mov al, byte [rax + 0xd516]
xor al, 0x8c
mov byte [rsp + 0x34], al
movaps xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [rsp + 0x2d]
mov qword [rsp + 0x4d], rax
mov ecx, 0x15
xor edx, edx
call fcn.14002312d
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rax], xmm0
mov rcx, qword [rsp + 0x4d]
mov qword [rax + 0xd], rcx
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], 0x15
jmp 0x14000a103
lea rax, [0x14001fccd]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
and dword [rsp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
xor edx, edx
lea rcx, [0x14002831a]
cmp rdx, 0x10
jae 0x140009ffe
mov r8, qword [rdx + rcx]
xor r8, qword [rax + rdx + 0x962b]
mov qword [rsp + rdx + 0x20], r8
add rdx, 8
jmp 0x140009fe1
xor edx, edx
lea r8, [rdx + 0x10]
cmp r8, 0x13
ja 0x14000a037
movzx r8d, byte [rdx + rcx + 0x12]
shl r8d, 0x10
movzx r9d, word [rdx + rcx + 0x10]
add r8d, r9d
add r8d, 0x6000000
xor r8d, dword [rax + rdx + 0x963b]
mov dword [rsp + rdx + 0x30], r8d
add rdx, 4
jmp 0x14000a000
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x50], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x40], xmm0
mov ecx, 0x14
xor edx, edx
call fcn.14002312d
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rax], xmm0
mov ecx, dword [rsp + 0x50]
mov dword [rax + 0x10], ecx
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], 0x14
jmp 0x14000a103
lea rax, [0x14001ff4d]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
xor ecx, ecx
lea rdx, [0x140028308]
mov rsi, qword [rsp + 0x60]
cmp rcx, 0xf
ja 0x14000a0bc
mov r8, qword [rcx + rdx]
xor r8, qword [rax + rcx + 0x93bf]
mov qword [rsp + rcx + 0x20], r8
add rcx, 8
jmp 0x14000a09f
movzx eax, word [rax + 0x93cf]
xor eax, 0xa102
movaps xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x50], ax
mov ecx, 0x12
xor edx, edx
call fcn.14002312d
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rax], xmm0
movzx ecx, word [rsp + 0x50]
mov word [rax + 0x10], cx
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], 0x12
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret