Function at 0x1400176f0
Capabilities:
Parse pe header

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x140095080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x140017729
mov rcx, qword [rcx + 0x10]
cmp rdx, rcx
je 0x140017729
test rcx, rcx
jle 0x140017725
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rdi + 0x10], rbx
mov rcx, qword [rdi + 0x10]
test rcx, rcx
jne 0x14001773c
mov eax, 0xc0000141
jmp 0x1400179d8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400179d3
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
mov qword [rdi + 0x20], rcx
mov qword [rdi + 0x28], rcx
cmp dword [rcx], 0x4550
jne 0x1400179d3
mov eax, 0x20b
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rsi
cmp word [rcx + 0x18], ax
jne 0x14001778e
mov byte [rdi + 0x19], 1
lea rsi, [rcx + 0x108]
mov rax, qword [rcx + 0x30]
jmp 0x14001779c
mov byte [rdi + 0x19], 0
lea rsi, [rcx + 0xf8]
mov eax, dword [rcx + 0x34]
mov qword [rdi + 0x30], rax
mov eax, dword [rcx + 0x50]
mov dword [rdi + 0x38], eax
mov eax, dword [rcx + 0x54]
mov dword [rdi + 0x40], eax
mov eax, dword [rcx + 0x28]
mov dword [rdi + 0x3c], eax
movzx eax, word [rcx + 0x5c]
mov dword [rdi + 0x54], eax
movzx eax, word [rcx + 0x5e]
mov dword [rdi + 0x5c], eax
movzx eax, word [rcx + 0x16]
shr ax, 0xd
not al
and al, 1
cmp byte [rdi + 0x19], 0
mov byte [rdi + 0x1a], al
je 0x1400177e1
mov rax, qword [rdi + 0x28]
add rax, 0xf8
jmp 0x1400177e8
lea rax, [rcx + 0xe8]
mov ecx, dword [rax]
xor ebp, ebp
test ecx, ecx
jne 0x140017979
mov eax, ebp
xor ecx, ecx
mov byte [rdi + 0x1b], cl
test cl, cl
je 0x140017943
sub eax, dword [rdi + 0x10]
lea rbx, [rdi + 0x138]
add eax, 0x10
mov qword [rsp + 0x88], r14
lea rdx, [rdi + 0xf8]
mov dword [rdi + 0x58], eax
cmp rbx, rdx
je 0x14001783d
cmp qword [rdx + 0x18], 8
mov r8, qword [rdx + 0x10]
jb 0x140017835
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.140002410
cmp qword [rbx + 0x30], rbp
lea r14, [rbx + 0x30]
jne 0x14001787e
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x14001793b
xor edx, edx
mov qword [rsp + 0x20], r14
lea r9, [0x140082f28]
lea rcx, [0x140082f08]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14001793b
cmp qword [rbx + 0x38], rbp
mov qword [rsp + 0x50], r15
lea r15, [rbx + 0x38]
jne 0x140017911
cmp qword [rbx + 0x18], 8
mov rdx, rbx
mov rcx, qword [r14]
mov rax, qword [rcx]
jb 0x1400178a4
mov rdx, qword [rbx]
lea r9, [0x140082ef8]
mov qword [rsp + 0x20], r15
xor r8d, r8d
call qword [rax + 0x20]
cmp eax, 0x80131110
jne 0x14001790d
mov rcx, qword [r14]
lea r8, [rsp + 0x30]
mov eax, 0x13
mov dword [rsp + 0x38], 4
mov word [rsp + 0x30], ax
lea rdx, [0x140082f18]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
js 0x140017936
cmp qword [rbx + 0x18], 8
mov rdx, rbx
mov rcx, qword [r14]
mov rax, qword [rcx]
jb 0x1400178fb
mov rdx, qword [rbx]
lea r9, [0x140082ef8]
mov qword [rsp + 0x20], r15
xor r8d, r8d
call qword [rax + 0x20]
test eax, eax
js 0x140017936
cmp qword [rbx + 0x40], rbp
lea r8, [rbx + 0x40]
jne 0x14001792e
mov rcx, qword [r15]
lea rdx, [0x140082f38]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x140017936
mov rcx, rbx
call fcn.14003a0c0
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x88]
mov rax, qword [rdi + 0x20]
cmp bp, word [rax + 6]
jae 0x1400179c2
nop dword [rax]
mov rdx, qword [rdi + 0x68]
cmp qword [rdi + 0x70], rdx
je 0x1400179a4
movups xmm0, xmmword [rsi]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdx + 0x10], xmm1
movsd xmm0, qword [rsi + 0x20]
movsd qword [rdx + 0x20], xmm0
add qword [rdi + 0x68], 0x28
jmp 0x1400179b0
mov rdx, rcx
mov r8d, 1
mov rcx, rdi
call fcn.1400182d0
test rax, rax
je 0x1400177f6
test byte [rax + 0x10], 1
je 0x1400177f6
mov cl, 1
jmp 0x1400177f8
mov r8, rsi
lea rcx, [rdi + 0x60]
call fcn.140018ad0
mov rax, qword [rdi + 0x20]
inc ebp
add rsi, 0x28
movzx ecx, word [rax + 6]
cmp ebp, ecx
jl 0x140017950
mov rsi, qword [rsp + 0x80]
xor eax, eax
mov rbp, qword [rsp + 0x78]
jmp 0x1400179d8
mov eax, 0xc000007b
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140045ef0
add rsp, 0x58
pop rdi
pop rbx
ret