Function at 0x14007c910
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x230
cmp qword [rsp + 0x248], 0
jne 0x14007c939
xor eax, eax
jmp 0x14007cd09
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x108
rep stosb byte [rdi], al
mov r9d, 0x40
lea r8, [rsp + 0xe0]
mov rdx, qword [rsp + 0x248]
mov rcx, qword [rsp + 0x240]
call fcn.14007dde0
movzx eax, al
test eax, eax
je 0x14007c9e2
movzx eax, word [rsp + 0xe0]
cmp eax, 0x5a4d
jne 0x14007c9e2
movsxd rax, dword [rsp + 0x11c]
mov rcx, qword [rsp + 0x248]
add rcx, rax
mov rax, rcx
mov r9d, 0x108
lea r8, [rsp + 0x120]
mov rdx, rax
mov rcx, qword [rsp + 0x240]
call fcn.14007dde0
movzx eax, al
test eax, eax
je 0x14007c9e2
cmp dword [rsp + 0x120], 0x4550
je 0x14007c9e9
xor eax, eax
jmp 0x14007cd09
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x1a8]
mov dword [rsp + 0x28], eax
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x1ac]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x28], 0
je 0x14007ca1f
cmp dword [rsp + 0x38], 0
jne 0x14007ca26
xor eax, eax
jmp 0x14007cd09
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 + 0x38]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x248]
add rdx, rcx
mov rcx, rdx
mov r9d, eax
mov r8, qword [rsp + 0x30]
mov rdx, rcx
mov rcx, qword [rsp + 0x240]
call fcn.14007dde0
movzx eax, al
test eax, eax
jne 0x14007ca94
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14007cd09
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 + 0x68], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x24], 0
jmp 0x14007caf5
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 0x14007ccf4
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rcx, rax
call fcn.14003aee0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
cmp byte [rax + rcx], 0
jne 0x14007cb4a
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xb8]
call fcn.140022690
mov rcx, qword [rsp + 0x250]
call fcn.14004bd50
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0xb8]
call fcn.14004bd50
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14007cce2
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x98]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
cmp dword [rcx + rax*4], 0x1000
ja 0x14007cc1c
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0xb8]
call fcn.1400493f0
mov rax, qword [rsp + 0xa0]
jmp 0x14007cd09
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x248]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x248]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x50], rax
jb 0x14007ccab
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x248]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x38]
add rax, rcx
cmp qword [rsp + 0x50], rax
ja 0x14007ccab
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [rsp + 0xa8], 0
lea rcx, [rsp + 0xb8]
call fcn.1400493f0
mov rax, qword [rsp + 0xa8]
jmp 0x14007cd09
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0xb8]
call fcn.1400493f0
mov rax, qword [rsp + 0xb0]
jmp 0x14007cd09
lea rcx, [rsp + 0xb8]
call fcn.1400493f0
jmp 0x14007caeb
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
add rsp, 0x230
pop rdi
ret