Function at 0x180060ee0
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
lea rbp, [rsp - 0x2f]
sub rsp, 0xe8
mov rax, qword [0x1800d02c0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, qword [rcx + 0x98]
mov r12d, edx
mov rbx, qword [rcx + 0xa0]
xor r14d, r14d
mov qword [rbp - 0x69], rax
mov rsi, rcx
mov eax, edx
mov qword [rcx + 0xd8], r14
cdq
mov qword [rsp + 0x30], r14
xor eax, edx
mov rcx, rbx
sub eax, edx
xor edx, edx
movzx r13d, ax
call fcn.18002ea10
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615d7
lea r8, [rsp + 0x28]
mov rcx, rbx
lea rdx, [0x18009ca78]
call fcn.18002e440
mov edx, eax
test eax, eax
jne 0x1800615d7
mov eax, 0x5a4d
mov qword [rsp + 0x130], rdi
mov qword [rsp + 0xe0], r15
mov dword [rsp + 0x20], 2
cmp word [rsp + 0x28], ax
jne 0x1800615bb
movzx edx, word [rsp + 0x2a]
mov rcx, rbx
call fcn.18002ea10
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
lea r8, [rsp + 0x38]
mov rcx, rbx
lea rdx, [0x18009cb38]
call fcn.18002e440
mov edx, eax
test eax, eax
jne 0x1800615c7
movzx eax, word [rsp + 0x38]
mov ecx, 0x454e
mov edx, 2
mov dword [rsp + 0x20], edx
cmp ax, cx
jne 0x1800611a7
movzx edx, word [rbp - 0x7f]
mov rcx, rbx
movzx eax, word [rsp + 0x2a]
add edx, eax
call fcn.18002ea10
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
movzx edx, word [rbp - 0x7d]
mov rcx, rbx
movzx eax, word [rbp - 0x7f]
sub edx, eax
call fcn.18002de10
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
mov rcx, rbx
call fcn.18002e110
movzx r15d, ax
cmp ax, 0x10
ja 0x1800615a4
mov rcx, rbx
call fcn.18002e110
movzx edi, ax
test ax, ax
je 0x1800610a6
mov rcx, rbx
call fcn.18002e110
mov ecx, 0x8008
cmp di, cx
je 0x180061087
movzx eax, ax
lea rcx, [rax + rax*2]
lea rcx, [rcx*4 + 4]
add qword [rbx + 0x38], rcx
mov rcx, rbx
call fcn.18002e110
movzx edi, ax
test ax, ax
jne 0x180061050
jmp 0x1800610a6
movzx ecx, ax
mov qword [rsp + 0x30], rcx
mov rcx, rbx
call fcn.18002e2a0
mov r14d, dword [rbx + 0x38]
sub r14d, dword [rbx + 0x40]
add r14d, 4
add r14d, eax
mov rcx, rbx
call fcn.18002df30
mov rax, qword [rsp + 0x30]
test ax, ax
je 0x1800615a4
test r14d, r14d
je 0x1800615a4
movzx ecx, ax
imul eax, ecx, 0x76
cmp eax, dword [rbx + 8]
ja 0x1800615a4
mov dword [rsi], ecx
test r12d, r12d
js 0x1800615c3
cmp r13d, ecx
jae 0x1800615b0
mov rcx, qword [rbp - 0x69]
lea r8, [rsp + 0x20]
mov edx, 0xb8
call fcn.180030d30
mov edx, dword [rsp + 0x20]
mov qword [rsi + 0xd8], rax
test edx, edx
jne 0x1800615c7
lea eax, [r13*2]
mov rcx, rbx
add eax, r13d
lea edx, [r14 + rax*4]
call fcn.18002ea10
mov dword [rsp + 0x20], eax
test eax, eax
jne 0x1800615bb
lea edx, [rax + 0xc]
mov rcx, rbx
call fcn.18002de10
mov dword [rsp + 0x20], eax
test eax, eax
jne 0x1800615bb
mov rcx, rbx
movzx edi, r15w
call fcn.18002e110
movzx edx, ax
mov ecx, edi
mov rax, qword [rsi + 0xd8]
shl edx, cl
mov rcx, rbx
mov dword [rax], edx
call fcn.18002e110
movzx edx, ax
mov ecx, edi
mov rax, qword [rsi + 0xd8]
shl edx, cl
mov rcx, rbx
mov dword [rax + 0xa8], edx
add qword [rbx + 0x38], 8
call fcn.18002df30
mov rcx, qword [rsi + 0xd8]
mov rdx, rbx
call fcn.180061680
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x18006159e
mov edi, 0x4550
cmp ax, di
jne 0x18006159e
movzx edx, word [rsp + 0x2a]
mov rcx, rbx
call fcn.18002ea10
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
lea r8, [rbp - 0x59]
mov rcx, rbx
lea rdx, [0x18009cb50]
call fcn.18002e440
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
cmp dword [rbp - 0x59], edi
jne 0x1800615a4
mov eax, 0x14c
cmp word [rbp - 0x55], ax
jne 0x1800615a4
mov eax, 0xe0
cmp word [rbp - 0x51], ax
jne 0x1800615a4
mov eax, 0x10b
cmp word [rbp - 0x4f], ax
jne 0x1800615a4
movzx edi, r14w
mov dword [rsi], r14d
cmp r14w, word [rbp - 0x53]
jae 0x1800615a4
nop dword [rax]
lea r8, [rbp - 0x41]
mov rcx, rbx
lea rdx, [0x18009cb88]
call fcn.18002e440
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
mov eax, dword [rbp - 0x39]
cmp dword [rbp - 0x4d], eax
je 0x18006127c
inc di
cmp di, word [rbp - 0x53]
jb 0x180061240
mov edx, 3
jmp 0x1800615c7
mov edx, dword [rbp - 0x31]
mov rcx, rbx
call fcn.18002ea10
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
lea r8, [rbp - 9]
mov rcx, rbx
lea rdx, [0x18009cba8]
call fcn.18002e440
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
movzx ecx, word [rbp + 5]
xor edi, edi
movzx eax, word [rbp + 3]
mov r15d, dword [rbp - 0x31]
mov word [rsp + 0x24], di
add ecx, eax
je 0x18006159e
mov r8d, edi
nop dword [rax]
nop dword [rax + rax]
lea r8d, [r8 + 2]
mov rcx, rbx
lea edx, [r15 + r8*8]
call fcn.18002ea10
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [0x18009cbc8]
call fcn.18002e440
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
mov ecx, dword [rsp + 0x34]
test ecx, ecx
jns 0x1800615a4
mov r14d, dword [rbp - 0x31]
btr ecx, 0x1f
add r14d, ecx
mov dword [rsp + 0x34], ecx
mov edx, r14d
mov dword [rbp - 0x79], r14d
mov rcx, rbx
call fcn.18002ea10
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
lea r8, [rbp - 0x19]
mov rcx, rbx
lea rdx, [0x18009cba8]
call fcn.18002e440
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
movzx ecx, word [rbp - 0xb]
movzx r12d, di
movzx eax, word [rbp - 0xd]
add ecx, eax
je 0x180061577
mov r8d, edi
lea r8d, [r8 + 2]
mov rcx, rbx
lea edx, [r14 + r8*8]
call fcn.18002ea10
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
lea r8, [rbp - 0x71]
mov rcx, rbx
lea rdx, [0x18009cbc8]
call fcn.18002e440
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
mov ecx, dword [rbp - 0x6d]
test ecx, ecx
jns 0x1800615a4
mov r14d, dword [rbp - 0x31]
btr ecx, 0x1f
add r14d, ecx
mov dword [rbp - 0x6d], ecx
mov edx, r14d
mov rcx, rbx
call fcn.18002ea10
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
lea r8, [rbp - 0x29]
mov rcx, rbx
lea rdx, [0x18009cba8]
call fcn.18002e440
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
movzx ecx, word [rbp - 0x1b]
movzx eax, word [rbp - 0x1d]
add ecx, eax
je 0x180061553
xor ecx, ecx
mov r8d, ecx
nop word [rax + rax]
lea r8d, [r8 + 2]
mov rcx, rbx
lea edx, [r14 + r8*8]
call fcn.18002ea10
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
lea r8, [rbp - 0x61]
mov rcx, rbx
lea rdx, [0x18009cbc8]
call fcn.18002e440
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
test dword [rbp - 0x6d], 0x80000000
jne 0x1800615a4
cmp dword [rsp + 0x30], 8
jne 0x180061539
mov edx, dword [rbp - 0x5d]
mov rcx, rbx
add edx, r15d
call fcn.18002ea10
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
lea r8, [rbp + 7]
mov rcx, rbx
lea rdx, [0x18009cbd8]
call fcn.18002e440
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615c7
cmp r13d, dword [rsi]
jne 0x180061537
mov rcx, qword [rbp - 0x69]
lea r8, [rsp + 0x20]
mov edx, 0xb8
call fcn.180030d30
mov edx, dword [rsp + 0x20]
mov qword [rsi + 0xd8], rax
test edx, edx
jne 0x1800615c7
mov ecx, dword [rbp + 7]
mov rdx, rbx
sub ecx, dword [rbp - 0x39]
add ecx, dword [rbp - 0x31]
mov dword [rax], ecx
mov rcx, qword [rsi + 0xd8]
mov eax, dword [rbp + 0xb]
mov dword [rcx + 0xa8], eax
mov rcx, qword [rsi + 0xd8]
call fcn.180061680
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x1800615bb
inc dword [rsi]
movzx ecx, word [rbp - 0x1b]
inc di
movzx eax, word [rbp - 0x1d]
movzx r8d, di
add ecx, eax
cmp r8d, ecx
jb 0x180061440
movzx ecx, word [rbp - 0xb]
inc r12w
movzx eax, word [rbp - 0xd]
mov edi, 0
mov r14d, dword [rbp - 0x79]
add ecx, eax
movzx r8d, r12w
cmp r8d, ecx
jb 0x180061390
movzx r14d, word [rsp + 0x24]
movzx ecx, word [rbp + 5]
inc r14w
movzx eax, word [rbp + 3]
movzx r8d, r14w
add ecx, eax
mov word [rsp + 0x24], r14w
cmp r8d, ecx
jb 0x1800612e0
mov eax, dword [rsi]
test eax, eax
jne 0x1800615ab
mov edx, 3
jmp 0x1800615c7
cmp r13d, eax
jl 0x1800615b7
mov edx, 6
jmp 0x1800615c7
test edx, edx
je 0x1800615c7
mov rcx, rsi
call fcn.180061600
mov edx, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x130]
mov r15, qword [rsp + 0xe0]
mov eax, edx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.180023500
add rsp, 0xe8
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret