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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov eax, 0x5a4d
xorps xmm0, xmm0
mov r14, rdx
mov r13, rcx
movups xmmword [rsp + 0x30], xmm0
cmp word [rdx], ax
jne 0x140018261
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
je 0x140018261
cmp dword [rdi], 0x4550
jne 0x140018261
mov eax, 0x8664
cmp word [rdi + 4], ax
jne 0x140018261
mov r9d, dword [rdi + 0x38]
test r9b, 1
jne 0x140018261
movzx ecx, word [rdi + 0x14]
xor edx, edx
movzx eax, word [rdi + 6]
add rcx, 0x24
movzx r12d, word [rdi + 0x16]
mov ebx, edx
cmp dx, ax
jae 0x140017d37
add rcx, rdi
mov r8d, eax
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x140017d24
lea eax, [rdx + r9]
jmp 0x140017d26
add eax, edx
cmp eax, ebx
cmovbe eax, ebx
add rcx, 0x28
mov ebx, eax
sub r8, 1
jne 0x140017d15
lea rcx, [rsp + 0x40]
call qword [r13 + 0x40]
mov edx, dword [rsp + 0x44]
mov eax, edx
neg eax
lea ebp, [rdx - 1]
add ebp, dword [rdi + 0x50]
lea rcx, [rdx - 1]
and rbp, rax
mov eax, ebx
add rcx, rax
lea rax, [rdx - 1]
not rax
and rcx, rax
cmp rbp, rcx
jne 0x140018261
mov rax, qword [r13 + 0x30]
mov r9d, 4
mov rcx, qword [rdi + 0x30]
mov r8d, 0x3000
mov rdx, rbp
call rax
mov rsi, rax
test rax, rax
jne 0x140017da8
mov rax, qword [r13 + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call rax
mov rsi, rax
movsxd rcx, dword [r14 + 0x3c]
mov dword [rsi + 0x3c], ecx
mov edx, dword [rdi + 0x54]
lea r8, [rcx + r14]
lea rcx, [rcx + rsi]
sub edx, dword [r14 + 0x3c]
je 0x140017de1
sub r8, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140017dd0
movsxd r15, dword [rsi + 0x3c]
xor eax, eax
add r15, rsi
mov r10d, eax
movzx r9d, word [r15 + 0x14]
add r9, 0x2c
cmp ax, word [r15 + 6]
jae 0x140017e42
add r9, r15
mov r8d, dword [r9]
mov ecx, dword [r9 - 8]
add r8, r14
mov edx, dword [r9 - 4]
add rcx, rsi
test rdx, rdx
je 0x140017e31
sub r8, rcx
nop dword [rax]
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140017e20
movzx eax, word [r15 + 6]
inc r10d
add r9, 0x28
cmp r10d, eax
jb 0x140017e00
mov r10, rsi
sub r10, qword [r15 + 0x30]
je 0x140017f2c
cmp dword [r15 + 0xb4], 0
je 0x140017f2c
mov r8d, dword [r15 + 0xb0]
add r8, rsi
cmp dword [r8], 0
je 0x140017f2c
mov eax, dword [r8 + 4]
lea r9, [r8 + 8]
add rax, r8
cmp r9, rax
je 0x140017f1f
nop word [rax + rax]
movzx edx, word [r9]
movzx ecx, dx
movzx eax, dx
shr cx, 0xc
cmp cx, 0xa
jne 0x140017eb7
mov ecx, dword [r8]
and edx, 0xfff
lea rax, [rsi + rdx]
add qword [rcx + rax], r10
jmp 0x140017f0b
cmp cx, 3
jne 0x140017ed0
mov edx, dword [r8]
and eax, 0xfff
add rax, rsi
add rdx, rax
mov eax, r10d
jmp 0x140017f08
cmp cx, 1
jne 0x140017ef0
mov edx, dword [r8]
and eax, 0xfff
add rax, rsi
add rdx, rax
mov rax, r10
shr rax, 0x10
movzx eax, ax
jmp 0x140017f08
cmp cx, 2
jne 0x140017f0b
mov edx, dword [r8]
and eax, 0xfff
add rax, rsi
add rdx, rax
movzx eax, r10w
add qword [rdx], rax
mov eax, dword [r8 + 4]
add r9, 2
add rax, r8
cmp r9, rax
jne 0x140017e90
cmp dword [r9], 0
mov r8, r9
jne 0x140017e71
cmp dword [r15 + 0x94], 0
je 0x140017fe2
mov r14d, dword [r15 + 0x90]
add r14, rsi
cmp dword [r14 + 0xc], 0
je 0x140017fe2
nop
mov ecx, dword [r14 + 0xc]
mov rax, qword [r13 + 0x48]
add rcx, rsi
call rax
mov ebx, dword [r14]
mov rbp, rax
mov edi, dword [r14 + 0x10]
add rbx, rsi
add rdi, rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x140017fd3
jns 0x140017f7f
movzx r8d, word [rbx]
xor edx, edx
jmp 0x140017fb5
mov rdx, qword [rbx]
xor ecx, ecx
add rdx, 2
add rdx, rsi
cmp byte [rdx], cl
je 0x140017f9e
mov rax, rdx
inc rcx
lea rax, [rax + 1]
cmp byte [rax], 0
jne 0x140017f92
mov qword [rsp + 0x38], rdx
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov word [rsp + 0x30], cx
mov word [rsp + 0x32], cx
mov r9, rdi
mov rcx, rbp
call qword [r13 + 0xa0]
mov rcx, qword [rbx + 8]
add rbx, 8
add rdi, 8
test rcx, rcx
jne 0x140017f75
add r14, 0x14
cmp dword [r14 + 0xc], 0
jne 0x140017f50
movzx ebx, word [r15 + 0x14]
xor r14d, r14d
add rbx, 0x28
mov edi, r14d
mov ebp, 1
cmp r14w, word [r15 + 6]
jae 0x1400180bf
add rbx, r15
mov edx, 0x10
mov r14d, 2
mov r9d, 0x20
cmp dword [rbx], 0
je 0x1400180a9
mov ecx, dword [rbx + 0x14]
mov eax, ecx
and eax, 0x40000000
bt ecx, 0x1d
jb 0x14001804e
test eax, eax
jne 0x140018040
test ecx, ecx
mov r8d, 8
cmovns r8d, ebp
jmp 0x14001806c
test ecx, ecx
mov r8d, 4
cmovns r8d, r14d
jmp 0x14001806c
test eax, eax
jne 0x140018060
test ecx, ecx
mov r8d, pe_nt_image_headers64
cmovns r8d, edx
jmp 0x14001806c
test ecx, ecx
mov r8d, 0x40
cmovns r8d, r9d
mov dword [rsp + 0xc8], r8d
test dword [rbx + 0x14], 0x4000000
je 0x14001808a
bts r8d, 9
mov dword [rsp + 0xc8], r8d
mov ecx, dword [rbx - 4]
lea r9, [rsp + 0xc8]
mov edx, dword [rbx]
add rcx, rsi
call qword [r13 + 0x60]
mov edx, 0x10
mov r9d, 0x20
movzx eax, word [r15 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jb 0x140018015
xor r14d, r14d
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [r13 + 0x38]
mov r10d, dword [r15 + 0x28]
add r10, rsi
bt r12d, 0xd
jb 0x1400180ef
mov qword [rsp + 0x28], r14
mov r8, r10
mov dword [rsp + 0x20], r14d
jmp 0x140018204
xor r8d, r8d
mov edx, ebp
mov rcx, rsi
call r10
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x14001822c
cmp dword [r15 + 0x8c], 0
je 0x14001822c
mov r14d, dword [r15 + 0x88]
add r14, rsi
mov r15d, dword [r14 + 0x18]
test r15d, r15d
je 0x14001822c
cmp dword [r14 + 0x14], 0
je 0x14001822c
mov edi, dword [r14 + 0x20]
xor r12d, r12d
mov ebx, dword [r14 + 0x24]
add rdi, rsi
add rbx, rsi
mov ebp, r12d
test r15d, r15d
je 0x14001822c
nop dword [rax + rax]
mov r10d, dword [rdi]
add r10, rsi
je 0x14001822c
movzx r8d, byte [rax]
mov r9, rax
test r8b, r8b
je 0x1400181c3
nop dword [rax + rax]
movzx edx, byte [r10]
movzx r8d, byte [r9]
test dl, dl
je 0x1400181be
mov ecx, r8d
sub r8b, 0x41
cmp r8b, 0x19
lea eax, [rcx + 0x20]
movzx r11d, al
lea eax, [rdx - 0x41]
cmova r11d, ecx
cmp al, 0x19
ja 0x1400181ac
add dl, 0x20
cmp r11b, dl
jne 0x1400181cd
inc r9
inc r10
cmp byte [r9], r12b
jne 0x140018180
jmp 0x1400181c3
test r8b, r8b
jne 0x1400181cd
cmp byte [r10], r12b
jne 0x1400181cd
test rbx, rbx
jne 0x1400181e9
inc ebp
add rdi, 4
add rbx, 2
cmp ebp, r15d
jae 0x14001822c
mov rax, qword [rsp + 0xc0]
jmp 0x140018160
mov ecx, dword [r14 + 0x1c]
movzx edx, word [rbx]
add rcx, rsi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
mov r8d, dword [rcx + rdx*4]
add r8, rsi
mov rax, qword [r13 + 0x50]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call rax
mov rbx, rax
test rax, rax
je 0x140018261
mov edx, 0xffffffff
mov rcx, rax
call qword [r13 + 0x58]
mov rcx, rbx
call qword [r13 + 0x20]
mov rax, qword [r13 + 0x28]
test rax, rax
je 0x14001825c
cmp qword [r13 + 0x68], 0
je 0x14001825c
mov rbx, qword [rsp + 0xb8]
xor edx, edx
mov rcx, rbx
mov r8d, 0x8000
call rax
test eax, eax
jne 0x14001825c
mov rcx, rbx
call qword [r13 + 0x68]
mov rax, rsi
jmp 0x140018263
xor eax, eax
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret