Function at 0x1400575f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x14011e598]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp qword [rsp + 0x1e0], 0
jne 0x140057626
xor eax, eax
jmp 0x14005789e
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x108
rep stosb byte [rdi], al
mov r9d, 0x40
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x1e0]
mov ecx, 4
call fcn.1400609c0
movzx eax, word [rsp + 0x70]
cmp eax, 0x5a4d
je 0x14005767b
xor eax, eax
jmp 0x14005789e
movsxd rax, dword [rsp + 0xac]
mov rcx, qword [rsp + 0x1e0]
add rcx, rax
mov rax, rcx
mov r9d, 0x108
lea r8, [rsp + 0xb0]
mov rdx, rax
mov ecx, 4
call fcn.1400609c0
cmp dword [rsp + 0xb0], 0x4550
je 0x1400576c0
xor eax, eax
jmp 0x14005789e
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x138]
mov dword [rsp + 0x24], eax
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x13c]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x24], 0
je 0x1400576f6
cmp dword [rsp + 0x28], 0
jne 0x1400576fd
xor eax, eax
jmp 0x14005789e
mov eax, dword [rsp + 0x28]
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 ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x1e0]
add rdx, rcx
mov rcx, rdx
mov r9d, eax
mov r8, qword [rsp + 0x30]
mov rdx, rcx
mov ecx, 4
call fcn.1400609c0
mov eax, dword [rsp + 0x24]
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 + 0x50], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 0
jmp 0x1400577a5
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x140057889
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x1e8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140057884
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x1e0]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x48], rax
jb 0x14005786a
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x1e0]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x28]
add rax, rcx
cmp qword [rsp + 0x48], rax
ja 0x14005786a
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14005789e
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x48]
jmp 0x14005789e
jmp 0x14005779b
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 + 0x1c0]
xor rcx, rsp
call fcn.1400c4e30
add rsp, 0x1d0
pop rdi
ret