Function at 0x14000d350
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
mov rax, qword [0x1400de010]
xor rax, rsp
mov qword [rsp + 0x200], rax
cmp qword [rsp + 0x220], 0
jne 0x14000d386
xor eax, eax
jmp 0x14000d6bc
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x108
rep stosb byte [rdi], al
mov r8d, 0x40
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x220]
call fcn.14000d0c4
movzx eax, al
test eax, eax
je 0x14000d41f
movzx eax, word [rsp + 0x90]
cmp eax, 0x5a4d
jne 0x14000d41f
movsxd rax, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x220]
add rcx, rax
mov rax, rcx
mov r8d, 0x108
lea rdx, [rsp + 0xf0]
mov rcx, rax
call fcn.14000d0c4
movzx eax, al
test eax, eax
je 0x14000d41f
cmp dword [rsp + 0xf0], 0x4550
je 0x14000d426
xor eax, eax
jmp 0x14000d6bc
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x178]
mov dword [rsp + 0x28], eax
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x17c]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x28], 0
je 0x14000d45c
cmp dword [rsp + 0x38], 0
jne 0x14000d463
xor eax, eax
jmp 0x14000d6bc
mov eax, dword [rsp + 0x38]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x220]
add rcx, rax
mov rax, rcx
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call fcn.14000d0c4
movzx eax, al
test eax, eax
jne 0x14000d4c7
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000d6bc
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x24], 0
jmp 0x14000d525
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x24], eax
jae 0x14000d6a7
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x40]
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.140004f10
mov rcx, qword [rsp + 0x228]
call fcn.140004df4
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xd0]
call fcn.140004df4
mov rcx, qword [rsp + 0x60]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000d695
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
cmp dword [rcx + rax*4], 0x1000
ja 0x14000d5d5
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0xd0]
call fcn.140005314
mov rax, qword [rsp + 0x70]
jmp 0x14000d6bc
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x220]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x48], rax
jb 0x14000d65e
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x220]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x38]
add rax, rcx
cmp qword [rsp + 0x48], rax
ja 0x14000d65e
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [rsp + 0x78], 0
lea rcx, [rsp + 0xd0]
call fcn.140005314
mov rax, qword [rsp + 0x78]
jmp 0x14000d6bc
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xd0]
call fcn.140005314
mov rax, qword [rsp + 0x80]
jmp 0x14000d6bc
lea rcx, [rsp + 0xd0]
call fcn.140005314
jmp 0x14000d51b
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140083400
add rsp, 0x210
pop rdi
ret