Function at 0x14002d500
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x230
mov rax, qword [0x14007c0c0]
xor rax, rsp
mov qword [rsp + 0x220], rax
cmp qword [rsp + 0x240], 0
jne 0x14002d54f
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x248]
call fcn.140002170
mov rax, qword [rsp + 0x48]
jmp 0x14002d91b
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov r8d, 0x40
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x240]
call fcn.14002cdc0
movzx eax, al
test eax, eax
je 0x14002d594
movzx eax, word [rsp + 0xd0]
cmp eax, 0x5a4d
je 0x14002d5b4
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x248]
call fcn.140002170
mov rax, qword [rsp + 0x50]
jmp 0x14002d91b
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x108
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x10c]
mov rcx, qword [rsp + 0x240]
add rcx, rax
mov rax, rcx
mov r8d, 0x108
lea rdx, [rsp + 0x110]
mov rcx, rax
call fcn.14002cdc0
movzx eax, al
test eax, eax
je 0x14002d608
cmp dword [rsp + 0x110], 0x4550
je 0x14002d628
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x248]
call fcn.140002170
mov rax, qword [rsp + 0x58]
jmp 0x14002d91b
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x198]
mov dword [rsp + 0x24], eax
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x19c]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x24], 0
je 0x14002d65e
cmp dword [rsp + 0x30], 0
jne 0x14002d67e
mov qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x248]
call fcn.140002170
mov rax, qword [rsp + 0x60]
jmp 0x14002d91b
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 + 0x240]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, qword [rsp + 0x28]
call fcn.14002cdc0
movzx eax, al
test eax, eax
jne 0x14002d6fb
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x248]
call fcn.140002170
mov rax, qword [rsp + 0x68]
jmp 0x14002d91b
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 + 0x70], rax
mov dword [rsp + 0x20], 0
jmp 0x14002d735
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 0x14002d8e6
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.140003ed0
nop
mov rcx, qword [rsp + 0x248]
call fcn.140002150
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xb0]
call fcn.140002150
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call fcn.14004e288
test eax, eax
jne 0x14002d8d3
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x38]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x38]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x34], ax
movzx eax, word [rsp + 0x34]
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x240]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x240]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x40], rax
jb 0x14002d88d
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x240]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x30]
add rax, rcx
cmp qword [rsp + 0x40], rax
ja 0x14002d88d
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0xb0]
call fcn.140002170
nop
mov rcx, qword [rsp + 0x248]
call fcn.140002170
mov rax, qword [rsp + 0x98]
jmp 0x14002d91b
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0xb0]
call fcn.140002170
nop
mov rcx, qword [rsp + 0x248]
call fcn.140002170
mov rax, qword [rsp + 0xa0]
jmp 0x14002d91b
lea rcx, [rsp + 0xb0]
call fcn.140002170
nop
jmp 0x14002d72b
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov qword [rsp + 0xa8], 0
mov rcx, qword [rsp + 0x248]
call fcn.140002170
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140045b30
add rsp, 0x230
pop rdi
ret