Function at 0x180003290
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x868
mov rax, qword [0x18001f0f0]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x1800032ce
or eax, 0xffffffff
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1800055f0
add rsp, 0x868
ret
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800032b3
add rdx, 0x18
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x860], r14
mov rax, rdx
lea r9, [rsp + 0x20]
mov r14d, 1
or rax, rcx
and eax, 0xf
jne 0x18000339a
mov eax, r14d
nop dword [rax + rax]
movaps xmm0, xmmword [rdx]
movaps xmm1, xmmword [rdx + 0x10]
lea rcx, [rcx + 0x80]
lea rdx, [rdx + 0x80]
movaps xmmword [rcx - 0x80], xmm0
movaps xmm0, xmmword [rdx - 0x60]
movaps xmmword [rcx - 0x70], xmm1
movaps xmm1, xmmword [rdx - 0x50]
movaps xmmword [rcx - 0x60], xmm0
movaps xmm0, xmmword [rdx - 0x40]
movaps xmmword [rcx - 0x50], xmm1
movaps xmm1, xmmword [rdx - 0x30]
movaps xmmword [rcx - 0x40], xmm0
movaps xmm0, xmmword [rdx - 0x20]
movaps xmmword [rcx - 0x30], xmm1
movaps xmm1, xmmword [rdx - 0x10]
movaps xmmword [rcx - 0x20], xmm0
movaps xmmword [rcx - 0x10], xmm1
dec rax
jne 0x180003310
movaps xmm0, xmmword [rdx]
movaps xmm1, xmmword [rdx + 0x10]
movaps xmmword [rcx], xmm0
movaps xmm0, xmmword [rdx + 0x20]
movaps xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [rdx + 0x30]
movaps xmmword [rcx + 0x20], xmm0
movaps xmm0, xmmword [rdx + 0x40]
movaps xmmword [rcx + 0x30], xmm1
movaps xmm1, xmmword [rdx + 0x50]
movaps xmmword [rcx + 0x40], xmm0
movaps xmm0, xmmword [rdx + 0x60]
movaps xmmword [rcx + 0x50], xmm1
movaps xmmword [rcx + 0x60], xmm0
jmp 0x1800033a8
mov r8d, 0xf0
mov rcx, r9
call fcn.180005620
mov eax, 0x10b
cmp word [rsp + 0x20], ax
jne 0x1800033bb
xor eax, eax
jmp 0x180003554
mov ecx, dword [0x180021a98]
lea eax, [rcx + 1]
lea r8d, [rcx + 2]
imul r8d, eax
mov eax, 0x30c30c31
imul r8d, ecx
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r8d, edx
cmp r8d, 0x14
jne 0x180003543
mov qword [rsp + 0x870], rbx
mov qword [rsp + 0x878], rsi
mov qword [rsp + 0x880], rdi
xor edi, edi
mov esi, 0xe8
mov ebx, edi
call fcn.180005fb0
inc rbx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [rsp + rbx*8 + 0x108], xmm0
cmp rbx, rsi
jb 0x180003413
mov rbx, qword [rsp + 0x870]
mov r9d, 0xe7
nop
mov edx, 0xe7
cmp rdi, rdx
jge 0x180003524
cmp r9, 4
jl 0x1800034ed
mov r8d, 0xe3
lea rcx, [rsp + 0x838]
sub r8, rdi
shr r8, 2
inc r8
lea rax, [r8*4]
sub rdx, rax
nop dword [rax + rax]
movsd xmm0, qword [rcx + 0x10]
movsd xmm1, qword [rcx + 8]
comisd xmm0, xmm1
jbe 0x18000349a
movsd qword [rcx + 0x10], xmm1
movsd qword [rcx + 8], xmm0
movsd xmm0, qword [rcx + 8]
movsd xmm1, qword [rcx]
comisd xmm0, xmm1
jbe 0x1800034b2
movsd qword [rcx + 8], xmm1
movsd qword [rcx], xmm0
movsd xmm0, qword [rcx]
movsd xmm1, qword [rcx - 8]
comisd xmm0, xmm1
jbe 0x1800034ca
movsd qword [rcx], xmm1
movsd qword [rcx - 8], xmm0
movsd xmm0, qword [rcx - 8]
movsd xmm1, qword [rcx - 0x10]
comisd xmm0, xmm1
jbe 0x1800034e4
movsd qword [rcx - 8], xmm1
movsd qword [rcx - 0x10], xmm0
sub rcx, 0x20
dec r8
jne 0x180003480
cmp rdx, rdi
jle 0x180003524
movsd xmm0, qword [rsp + rdx*8 + 0x110]
movsd xmm1, qword [rsp + rdx*8 + 0x108]
comisd xmm0, xmm1
jbe 0x18000351c
movsd qword [rsp + rdx*8 + 0x110], xmm1
movsd qword [rsp + rdx*8 + 0x108], xmm0
dec rdx
cmp rdx, rdi
jg 0x1800034f2
inc rdi
dec r9
dec rsi
jne 0x180003440
mov rdi, qword [rsp + 0x880]
mov rsi, qword [rsp + 0x878]
or eax, 0xffffffff
mov ecx, 0x20b
cmp word [rsp + 0x20], cx
cmove eax, r14d
mov r14, qword [rsp + 0x860]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1800055f0
add rsp, 0x868
ret