Function at 0x140002b50
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x200
mov rax, qword [0x14002d010]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
cmp qword [rsp + 0x218], 0
jne 0x140002b8b
xor eax, eax
jmp 0x140002ea6
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x108
rep stosb byte [rdi], al
mov r9d, 0x40
lea r8, [rsp + 0xa0]
mov rdx, qword [rsp + 0x218]
mov rcx, qword [rsp + 0x210]
call fcn.140002620
movzx eax, al
test eax, eax
je 0x140002c34
movzx eax, word [rsp + 0xa0]
cmp eax, 0x5a4d
jne 0x140002c34
movsxd rax, dword [rsp + 0xdc]
mov rcx, qword [rsp + 0x218]
add rcx, rax
mov rax, rcx
mov r9d, 0x108
lea r8, [rsp + 0xe0]
mov rdx, rax
mov rcx, qword [rsp + 0x210]
call fcn.140002620
movzx eax, al
test eax, eax
je 0x140002c34
cmp dword [rsp + 0xe0], 0x4550
je 0x140002c3b
xor eax, eax
jmp 0x140002ea6
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x168]
mov dword [rsp + 0x24], eax
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x16c]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x24], 0
je 0x140002c71
cmp dword [rsp + 0x30], 0
jne 0x140002c78
xor eax, eax
jmp 0x140002ea6
mov eax, dword [rsp + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x218]
add rdx, rcx
mov rcx, rdx
mov r9d, eax
mov r8, qword [rsp + 0x28]
mov rdx, rcx
mov rcx, qword [rsp + 0x210]
call fcn.140002620
movzx eax, al
test eax, eax
jne 0x140002ce6
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140002ea6
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
add rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 0
jmp 0x140002d44
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x140002e91
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140005580
mov rcx, qword [rsp + 0x220]
call fcn.140005370
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x80]
call fcn.140005370
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140002e7f
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x34], ax
movzx eax, word [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x218]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x218]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x40], rax
jb 0x140002e4e
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x218]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x30]
add rax, rcx
cmp qword [rsp + 0x40], rax
ja 0x140002e4e
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x80]
call fcn.1400054c0
mov rax, qword [rsp + 0x70]
jmp 0x140002ea6
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x80]
call fcn.1400054c0
mov rax, qword [rsp + 0x78]
jmp 0x140002ea6
lea rcx, [rsp + 0x80]
call fcn.1400054c0
jmp 0x140002d3a
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140018210
add rsp, 0x200
pop rdi
ret