Function at 0x18004c620
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x90]
call fcn.18004c510
test eax, eax
jne 0x18004c691
cmp qword [rsp + 0x20], 0
je 0x18004c68a
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1800515dc
mov qword [rsp + 0x20], 0
xor eax, eax
jmp 0x18004c977
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x20]
add rax, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18004c6d6
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x18004c6fa
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1800515dc
mov qword [rsp + 0x20], 0
xor eax, eax
jmp 0x18004c977
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x18004c726
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x20]
lea rax, [rax + rcx + 0x108]
mov qword [rsp + 0x30], rax
jmp 0x18004c776
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x18004c752
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x20]
lea rax, [rax + rcx + 0xf8]
mov qword [rsp + 0x30], rax
jmp 0x18004c776
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.1800515dc
mov qword [rsp + 0x20], 0
xor eax, eax
jmp 0x18004c977
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x28]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x50]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 6]
cmp eax, 3
jge 0x18004c7d4
mov rax, qword [rsp + 0x98]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x98]
mov dword [rax + 0xc], 0
mov dword [rsp + 0x38], 1
jmp 0x18004c956
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x10], 0
je 0x18004c7f5
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x30]
add eax, dword [rcx + 8]
cmp eax, dword [rsp + 0x28]
jb 0x18004c809
mov rax, qword [rsp + 0x98]
mov dword [rax + 8], 0
jmp 0x18004c891
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
cmp dword [rcx + 0x10], eax
jb 0x18004c83b
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x38]
mov eax, dword [rdx + 8]
sub eax, ecx
mov dword [rsp + 0x50], eax
jmp 0x18004c851
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x3c]
mov eax, dword [rdx + 0x10]
sub eax, ecx
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jg 0x18004c869
mov rax, qword [rsp + 0x98]
mov dword [rax + 8], 0
jmp 0x18004c891
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov edx, dword [rsp + 0x50]
call fcn.18004c470
mov r11d, eax
mov rax, qword [rsp + 0x98]
mov dword [rax + 8], r11d
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x38], 0
je 0x18004c8b2
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add eax, dword [rcx + 0x30]
cmp eax, dword [rsp + 0x28]
jb 0x18004c8c6
mov rax, qword [rsp + 0x98]
mov dword [rax + 0xc], 0
jmp 0x18004c94e
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x30]
cmp dword [rcx + 0x38], eax
jb 0x18004c8f8
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x38]
mov eax, dword [rdx + 0x30]
sub eax, ecx
mov dword [rsp + 0x54], eax
jmp 0x18004c90e
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x3c]
mov eax, dword [rdx + 0x38]
sub eax, ecx
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jg 0x18004c926
mov rax, qword [rsp + 0x98]
mov dword [rax + 0xc], 0
jmp 0x18004c94e
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov edx, dword [rsp + 0x54]
call fcn.18004c470
mov r11d, eax
mov rax, qword [rsp + 0x98]
mov dword [rax + 0xc], r11d
mov dword [rsp + 0x38], 1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.1800515dc
mov qword [rsp + 0x20], 0
mov eax, dword [rsp + 0x38]
add rsp, 0x88
ret