Function at 0x14013f2a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x220
mov rax, qword [0x1403452b0]
xor rax, rsp
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
lea rax, [rsp + 0x100]
mov rdi, rax
xor eax, eax
mov ecx, 0x108
rep stosb byte [rdi], al
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0x238]
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14013f388
movzx eax, word [rsp + 0x90]
cmp eax, 0x5a4d
jne 0x14013f388
movsxd rax, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x238]
add rcx, rax
mov rax, rcx
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x20], rcx
mov r9d, 0x108
lea r8, [rsp + 0x100]
mov rdx, rax
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14013f388
cmp dword [rsp + 0x100], 0x4550
je 0x14013f38f
xor eax, eax
jmp 0x14013f63d
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x188]
mov dword [rsp + 0x38], eax
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x18c]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x38], 0
je 0x14013f3c5
cmp dword [rsp + 0x48], 0
jne 0x14013f3cc
xor eax, eax
jmp 0x14013f63d
mov eax, dword [rsp + 0x48]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14013f3fa
xor eax, eax
jmp 0x14013f63d
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x238]
add rdx, rcx
mov rcx, rdx
lea rdx, [rsp + 0xd0]
mov qword [rsp + 0x20], rdx
mov r9d, eax
mov r8, qword [rsp + 0x40]
mov rdx, rcx
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14013f454
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14013f63d
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x34], 0
jmp 0x14013f4b2
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x34], eax
jae 0x14013f628
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x50]
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.14000d5c0
lea rcx, [rsp + 0xd8]
call fcn.140054d60
mov rdx, qword [rsp + 0x240]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14013f616
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
cmp dword [rcx + rax*4], 0x1000
ja 0x14013f550
mov qword [rsp + 0x78], 0
lea rcx, [rsp + 0xd8]
call fcn.14000d4b0
mov rax, qword [rsp + 0x78]
jmp 0x14013f63d
movzx eax, word [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x238]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x238]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x58], rax
jb 0x14013f5df
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x238]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x48]
add rax, rcx
cmp qword [rsp + 0x58], rax
ja 0x14013f5df
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0xd8]
call fcn.14000d4b0
mov rax, qword [rsp + 0x80]
jmp 0x14013f63d
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0xd8]
call fcn.14000d4b0
mov rax, qword [rsp + 0x88]
jmp 0x14013f63d
lea rcx, [rsp + 0xd8]
call fcn.14000d4b0
jmp 0x14013f4a8
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140246bf0
add rsp, 0x220
pop rdi
ret