Function at 0x1401d9a48
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x60
mov r12, rdx
mov r14, rcx
xor ebx, ebx
lea edx, [rbx + 0x40]
mov rcx, r12
xor r15d, r15d
call fcn.1401da44c
test eax, eax
je 0x1401d9d84
mov eax, 0x5a4d
cmp word [r14], ax
je 0x1401d9a9e
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1401d9d84
movsxd rdx, dword [r14 + 0x3c]
mov rcx, r12
add rdx, 0x108
call fcn.1401da44c
test eax, eax
je 0x1401d9d84
movsxd rbp, dword [r14 + 0x3c]
add rbp, r14
cmp dword [rbp], 0x4550
jne 0x1401d9a8e
mov eax, 0x8664
cmp word [rbp + 4], ax
jne 0x1401d9a8e
test byte [rbp + 0x38], 1
jne 0x1401d9a8e
movzx eax, word [rbp + 6]
movzx ecx, word [rbp + 0x14]
mov r9d, dword [rbp + 0x38]
test eax, eax
je 0x1401d9b16
lea rdx, [rbp + 0x24]
mov r8d, eax
add rdx, rcx
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x1401d9b02
mov eax, dword [rdx]
add rax, r9
jmp 0x1401d9b06
mov eax, dword [rdx]
add eax, ecx
cmp rax, rbx
cmova rbx, rax
add rdx, 0x28
dec r8
jne 0x1401d9af4
lea rcx, [rsp + 0x30]
call fcn.1401dca70
mov edx, dword [rsp + 0x34]
mov ecx, dword [rbp + 0x50]
call fcn.1401da4e4
mov rcx, rbx
mov rdi, rax
call fcn.1401da4e4
cmp rdi, rax
jne 0x1401d9a8e
mov rcx, qword [rbp + 0x30]
and qword [rsp + 0x20], r15
mov ebx, 0x3000
mov r8d, ebx
mov r9d, 4
mov rdx, rdi
call fcn.1401d9df8
mov rsi, rax
test rax, rax
jne 0x1401d9b8f
and qword [rsp + 0x20], r15
lea r9d, [rax + 4]
mov r8d, ebx
mov rdx, rdi
xor ecx, ecx
call fcn.1401d9df8
mov rsi, rax
test rax, rax
jne 0x1401d9b8f
mov ecx, 0xe
jmp 0x1401d9a93
lea rcx, [rsi + rdi]
mov rax, rsi
jmp 0x1401d9be4
mov ecx, 0x10
call fcn.1401b5d68
mov rbx, rax
test rax, rax
je 0x1401d9d0a
and qword [rsp + 0x20], 0
mov qword [rax], r15
mov r9d, 4
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
mov qword [rax + 8], rsi
mov r15, rax
call fcn.1401d9df8
mov rsi, rax
test rax, rax
je 0x1401d9cf3
lea rcx, [rax + rdi]
movabs rdx, 0xffffffff00000000
and rcx, rdx
and rax, rdx
cmp rax, rcx
jb 0x1401d9b98
call fcn.1401ddad0
mov r8d, 0x78
mov rcx, rax
call fcn.1401dda4c
mov rdi, rax
test rax, rax
je 0x1401d9d0a
mov qword [rax + 8], rsi
movzx eax, word [rbp + 0x16]
and qword [rdi + 0x58], 0
shr eax, 0xd
mov rcx, r12
and eax, 1
mov dword [rdi + 0x20], eax
lea rax, [fcn.1401d9df8]
mov qword [rdi + 0x28], rax
lea rax, [fcn.1401d9dec]
mov qword [rdi + 0x30], rax
lea rax, [0x1401d9de0]
mov qword [rdi + 0x38], rax
lea rax, [0x1401d9dd0]
mov qword [rdi + 0x40], rax
lea rax, [0x1401d9dc4]
mov qword [rdi + 0x48], rax
mov eax, dword [rsp + 0x34]
mov qword [rdi + 0x70], r15
mov dword [rdi + 0x68], eax
mov edx, dword [rbp + 0x54]
call fcn.1401da44c
test eax, eax
je 0x1401d9d7c
mov edx, dword [rbp + 0x54]
and qword [rsp + 0x20], 0
mov r9d, 4
mov r8d, 0x1000
mov rcx, rsi
call fcn.1401d9df8
mov r8d, dword [rbp + 0x54]
mov rdx, r14
mov rcx, rax
mov rbx, rax
call fcn.1401b4f80
movsxd rax, dword [r14 + 0x3c]
mov r9, rdi
add rax, rbx
mov r8, rbp
mov rdx, r12
mov qword [rdi], rax
mov rcx, r14
mov qword [rax + 0x30], rsi
call fcn.1401da31c
test eax, eax
je 0x1401d9d7c
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rbp + 0x30]
je 0x1401d9d22
mov rcx, rdi
call fcn.1401d9f88
mov dword [rdi + 0x24], eax
jmp 0x1401d9d29
mov rcx, rbx
lea rdx, [fcn.1401d9dec]
xor r8d, r8d
call fcn.1401da474
jmp 0x1401d9b85
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call fcn.1401d9dec
mov rcx, r15
jmp 0x1401d9cf6
mov dword [rdi + 0x24], 1
mov rcx, rdi
call fcn.1401d9e04
test eax, eax
je 0x1401d9d7c
mov rcx, rdi
call fcn.1401da0bc
test eax, eax
je 0x1401d9d7c
mov rcx, rdi
call fcn.1401da064
test eax, eax
je 0x1401d9d7c
mov rax, qword [rdi]
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x1401d9db4
cmp dword [rdi + 0x20], 0
lea rax, [rsi + rcx]
je 0x1401d9dae
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x1401d9da5
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.1401da688
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov dword [rdi + 0x1c], 1
jmp 0x1401d9db9
mov qword [rdi + 0x60], rax
jmp 0x1401d9db9
and qword [rdi + 0x60], 0
mov rax, rdi
jmp 0x1401d9d86