Function at 0x14000d9e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push r13
push r14
push r15
sub rsp, 0x70
mov r8, rdx
mov r14, r9
xor r9d, r9d
mov rdx, rcx
mov ebx, r9d
mov esi, r9d
cmp r8, 0x40
jb 0x14000da31
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e0ad
movsxd rcx, dword [rcx + 0x3c]
lea rax, [rcx + 0x108]
cmp r8, rax
jae 0x14000da4b
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop r13
pop rsi
pop rbx
ret
cmp dword [rcx + rdx], 0x4550
lea r13, [rcx + rdx]
jne 0x14000e0ad
mov eax, 0x8664
cmp word [r13 + 4], ax
jne 0x14000e0ad
mov eax, dword [r13 + 0x38]
test al, 1
jne 0x14000e0ad
movzx ecx, word [r13 + 0x14]
mov r10d, eax
movzx eax, word [r13 + 6]
add rcx, 0x24
cmp r9w, ax
jae 0x14000daba
add rcx, r13
mov r8d, eax
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x14000daa4
lea rax, [r10 + rdx]
jmp 0x14000daa6
add eax, edx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, 1
jne 0x14000da95
lea rcx, [rsp + 0x30]
call qword [0x140012058]
mov edx, dword [rsp + 0x34]
mov eax, dword [r13 + 0x50]
lea r15, [rdx - 1]
add r15, rax
lea rcx, [rdx - 1]
not rcx
lea rax, [rdx - 1]
add rax, rbx
and r15, rcx
and rax, rcx
cmp r15, rax
jne 0x14000e0ad
mov rcx, qword [r13 + 0x30]
mov r9d, 4
mov rbx, qword [rsp + 0xb0]
mov r8d, 0x3000
mov qword [rsp + 0xb8], rbp
mov rdx, r15
mov rbp, qword [rsp + 0xd8]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x60], r12
call rbx
mov r12, rax
test rax, rax
jne 0x14000db57
lea r9d, [rax + 4]
mov qword [rsp + 0x20], rbp
mov r8d, 0x3000
mov rdx, r15
xor ecx, ecx
call rbx
mov r12, rax
test rax, rax
je 0x14000dc35
movabs rdx, 0xffffffff00000000
lea rcx, [r12 + r15]
mov rax, r12
and rcx, rdx
and rax, rdx
cmp rax, rcx
jae 0x14000dbd0
mov ecx, 0x10
call fcn.14000f170
mov rdi, rax
test rax, rax
je 0x14000dc88
mov qword [rax], rsi
mov r9d, 4
mov r8d, 0x3000
mov qword [rax + 8], r12
mov rdx, r15
mov qword [rsp + 0x20], rbp
xor ecx, ecx
mov rsi, rax
call rbx
mov r12, rax
test rax, rax
je 0x14000dc61
lea rcx, [rax + r15]
movabs rdx, 0xffffffff00000000
and rcx, rdx
and rax, rdx
cmp rax, rcx
jb 0x14000db73
call qword [0x140012048]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x70]
call qword [0x140012050]
mov rdi, rax
test rax, rax
jne 0x14000dcca
mov r9, rbp
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call r14
test rsi, rsi
je 0x14000dc35
nop word [rax + rax]
mov rcx, qword [rsi + 8]
mov r9, rbp
xor edx, edx
mov r8d, 0x8000
call r14
mov rbx, qword [rsi]
mov rcx, rsi
call fcn.14000f150
mov rsi, rbx
test rbx, rbx
jne 0x14000dc10
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0xb8]
mov r12, qword [rsp + 0x60]
add rsp, 0x70
pop r15
pop r14
pop r13
pop rsi
pop rbx
ret
mov rcx, qword [rdi + 8]
mov r9, rbp
xor edx, edx
mov r8d, 0x8000
call r14
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.14000f150
mov rdi, rbx
test rbx, rbx
jne 0x14000dc61
jmp 0x14000dc35
mov r9, rbp
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call r14
test rsi, rsi
je 0x14000dc35
nop
mov rcx, qword [rsi + 8]
mov r9, rbp
xor edx, edx
mov r8d, 0x8000
call r14
mov rbx, qword [rsi]
mov rcx, rsi
call fcn.14000f150
mov rsi, rbx
test rbx, rbx
jne 0x14000dca0
jmp 0x14000dc35
mov qword [rax + 8], r12
movzx eax, word [r13 + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rdi + 0x28], rbx
mov dword [rdi + 0x20], eax
mov rax, qword [rsp + 0xc0]
mov qword [rdi + 0x38], rax
mov rax, qword [rsp + 0xc8]
mov qword [rdi + 0x40], rax
mov rax, qword [rsp + 0xd0]
mov qword [rdi + 0x48], rax
mov qword [rdi + 0x30], r14
mov qword [rdi + 0x58], rbp
mov eax, dword [rsp + 0x34]
mov dword [rdi + 0x68], eax
mov qword [rdi + 0x70], rsi
mov edx, dword [r13 + 0x54]
cmp qword [rsp + 0xa8], rdx
jae 0x14000dd38
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r14d, r14d
jmp 0x14000de8b
mov r9d, 4
mov qword [rsp + 0x20], rbp
mov r8d, 0x1000
mov rcx, r12
call rbx
mov rsi, qword [rsp + 0xa0]
mov rcx, rax
mov r8d, dword [r13 + 0x54]
mov rdx, rsi
mov rbx, rax
call fcn.14000eee0
movsxd rax, dword [rsi + 0x3c]
xor r14d, r14d
add rax, rbx
mov r15d, r14d
mov qword [rdi], rax
mov qword [rax + 0x30], r12
mov rcx, qword [rdi]
mov rbp, qword [rdi + 8]
movzx esi, word [rcx + 0x14]
add rsi, 0x24
cmp r14w, word [rcx + 6]
jae 0x14000de5d
add rsi, rcx
nop dword [rax]
mov ecx, dword [rsi + 4]
test ecx, ecx
jne 0x14000ddf3
movsxd rax, dword [r13 + 0x38]
test eax, eax
jle 0x14000de46
mov ecx, dword [rsi]
mov rbx, rax
mov rax, qword [rdi + 0x58]
add rcx, rbp
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0x1000
call qword [rdi + 0x28]
test rax, rax
je 0x14000de8b
mov ecx, dword [rsi]
mov r8, rbx
add rcx, rbp
xor edx, edx
mov dword [rsi - 4], ecx
call fcn.14000efb0
jmp 0x14000de46
mov eax, dword [rsi + 8]
add eax, ecx
cmp qword [rsp + 0xa8], rax
jb 0x14000de80
mov rax, qword [rdi + 0x58]
mov rdx, rcx
mov ecx, dword [rsi]
mov r9d, 4
add rcx, rbp
mov qword [rsp + 0x20], rax
mov r8d, 0x1000
call qword [rdi + 0x28]
test rax, rax
je 0x14000de8b
mov ebx, dword [rsi]
mov edx, dword [rsi + 8]
add rbx, rbp
mov r8d, dword [rsi + 4]
mov rcx, rbx
add rdx, qword [rsp + 0xa0]
call fcn.14000eee0
mov dword [rsi - 4], ebx
mov rcx, qword [rdi]
inc r15d
add rsi, 0x28
movzx eax, word [rcx + 6]
cmp r15d, eax
jl 0x14000dda0
mov rbx, qword [rcx + 0x30]
sub rbx, qword [r13 + 0x30]
je 0x14000dfe9
cmp dword [rcx + 0xb4], r14d
jne 0x14000df5e
mov eax, r14d
jmp 0x14000dfee
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rdi + 0x1c], 0
je 0x14000dea7
mov rax, qword [rdi]
xor r8d, r8d
mov rcx, qword [rdi + 8]
xor edx, edx
mov r9d, dword [rax + 0x28]
add r9, rcx
call r9
mov rcx, qword [rdi + 0x50]
call fcn.14000f150
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14000deef
cmp dword [rdi + 0x18], 0
jle 0x14000deea
mov rbx, r14
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx + rbx]
test rax, rax
je 0x14000dedd
mov rdx, qword [rdi + 0x58]
mov rcx, rax
call qword [rdi + 0x48]
mov rcx, qword [rdi + 0x10]
inc r14d
add rbx, 8
cmp r14d, dword [rdi + 0x18]
jl 0x14000dec2
call fcn.14000f150
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000df07
mov r9, qword [rdi + 0x58]
xor edx, edx
mov r8d, 0x8000
call qword [rdi + 0x30]
mov rsi, qword [rdi + 0x70]
mov rbp, qword [rdi + 0x58]
mov r14, qword [rdi + 0x30]
test rsi, rsi
je 0x14000df45
nop dword [rax + rax]
mov rcx, qword [rsi + 8]
mov r9, rbp
xor edx, edx
mov r8d, 0x8000
call r14
mov rbx, qword [rsi]
mov rcx, rsi
call fcn.14000f150
mov rsi, rbx
test rbx, rbx
jne 0x14000df20
call qword [0x140012048]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [0x140012040]
jmp 0x14000dc40
mov rsi, qword [rdi + 8]
mov r11d, dword [rcx + 0xb0]
add r11, rsi
mov eax, dword [r11]
test eax, eax
je 0x14000dfe9
nop dword [rax]
nop word [rax + rax]
mov r9d, dword [r11 + 4]
lea rdx, [r11 + 8]
mov r10d, eax
mov r8d, r14d
add r10, rsi
lea rax, [r9 - 8]
test rax, 0xfffffffffffffffe
jbe 0x14000dfdc
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x14000dfbe
cmp eax, 0xa
jne 0x14000dfc2
add qword [rcx + r10], rbx
jmp 0x14000dfc2
add dword [rcx + r10], ebx
mov r9d, dword [r11 + 4]
inc r8d
add rdx, 2
mov eax, r8d
lea rcx, [r9 - 8]
shr rcx, 1
cmp rax, rcx
jb 0x14000dfa0
mov eax, r9d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x14000df80
mov eax, 1
mov rcx, rdi
mov dword [rdi + 0x24], eax
call fcn.14000e740
test eax, eax
je 0x14000de8b
mov rcx, rdi
call fcn.14000e990
test eax, eax
je 0x14000de8b
mov rdx, qword [rdi]
mov rcx, rdx
mov eax, dword [rdx + 0xd0]
test eax, eax
je 0x14000e05c
mov rsi, qword [rdi + 8]
mov rbx, qword [rax + rsi + 0x18]
test rbx, rbx
je 0x14000e05c
mov rax, qword [rbx]
test rax, rax
je 0x14000e05c
nop word [rax + rax]
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
lea rbx, [rbx + 8]
test rax, rax
jne 0x14000e040
mov rcx, qword [rdi]
mov eax, dword [rcx + 0x28]
test eax, eax
je 0x14000e0a1
add rax, r12
cmp dword [rdi + 0x20], r14d
je 0x14000e095
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x14000e086
mov ecx, 0x45a
jmp 0x14000de85
mov dword [rdi + 0x1c], 1
mov rax, rdi
jmp 0x14000dc42
mov qword [rdi + 0x60], rax
mov rax, rdi
jmp 0x14000dc42
mov qword [rdi + 0x60], r14
mov rax, rdi
jmp 0x14000dc42
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop r13
pop rsi
pop rbx
ret