Function at 0x18004db20
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [0x1800a23c8]
nop
nop
nop
nop
nop
nop
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18004db6b
xor al, al
jmp 0x18004ded9
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x60], 0
movzx eax, byte [rsp + 0xd0]
test eax, eax
je 0x18004dc16
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0x4550
je 0x18004dbc5
xor al, al
jmp 0x18004ded9
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x2c], eax
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0x8c]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
add rax, 0x108
mov qword [rsp + 0x60], rax
jmp 0x18004dc8c
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x18004dc43
xor al, al
jmp 0x18004ded9
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x78]
mov dword [rsp + 0x2c], eax
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x7c]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 6]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
add rax, 0xf8
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2c]
call fcn.180028470
mov eax, eax
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
je 0x18004decf
mov rax, qword [rsp + 0x38]
cmp dword [rax + 4], 0
je 0x18004decf
mov rax, qword [rsp + 0x38]
add rax, 8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 4]
sub eax, 8
mov eax, eax
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x30], 0
jmp 0x18004dd0d
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x30], eax
jge 0x18004dec0
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
sar eax, 0xc
test eax, eax
jne 0x18004dd3a
mov rax, qword [rsp + 0x20]
add rax, 2
mov qword [rsp + 0x20], rax
jmp 0x18004dd03
movzx eax, byte [rsp + 0xd0]
test eax, eax
je 0x18004de0d
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
sar eax, 0xc
cmp eax, 0xa
jne 0x18004de01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
and eax, 0xfff
mov rcx, qword [rsp + 0x38]
add eax, dword [rcx]
mov dword [rsp + 0x6c], eax
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x6c]
call fcn.180028470
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov edx, 8
mov rcx, qword [rsp + 0x80]
call qword [0x18008c448]
test eax, eax
jne 0x18004ddf1
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x20]
add rax, 2
mov qword [rsp + 0x20], rax
jmp 0x18004de08
xor al, al
jmp 0x18004ded9
jmp 0x18004debb
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
sar eax, 0xc
cmp eax, 3
jne 0x18004deb7
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
and eax, 0xfff
mov rcx, qword [rsp + 0x38]
add eax, dword [rcx]
mov dword [rsp + 0x74], eax
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x74]
call fcn.180028470
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov edx, 4
mov rcx, qword [rsp + 0x88]
call qword [0x18008c448]
test eax, eax
jne 0x18004dea7
mov rax, qword [rsp + 0x88]
mov eax, dword [rax]
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0xc8]
mov ecx, dword [rsp + 0x7c]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx], eax
mov rax, qword [rsp + 0x20]
add rax, 2
mov qword [rsp + 0x20], rax
jmp 0x18004debb
xor al, al
jmp 0x18004ded9
jmp 0x18004dd03
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
jmp 0x18004dcb3
mov al, 1
jmp 0x18004ded9
add rsp, 0xa8
ret