Function at 0x140325540
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 [0x1405fe1c0]
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.1402f5030
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c37
lea r8, [rsp + 0x28]
mov rcx, rbx
lea rdx, [0x14043ecb8]
call fcn.1402f4a70
mov edx, eax
test eax, eax
jne 0x140325c37
mov eax, 0x5a4d
mov qword [rsp + 0x130], rdi
mov qword [rsp + 0xe0], r15
mov dword [rsp + 0x20], 2
cmp word [rsp + 0x28], ax
jne 0x140325c1b
movzx edx, word [rsp + 0x2a]
mov rcx, rbx
call fcn.1402f5030
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
lea r8, [rsp + 0x38]
mov rcx, rbx
lea rdx, [0x14043ea30]
call fcn.1402f4a70
mov edx, eax
test eax, eax
jne 0x140325c27
movzx eax, word [rsp + 0x38]
mov ecx, 0x454e
mov edx, 2
mov dword [rsp + 0x20], edx
cmp ax, cx
jne 0x140325807
movzx edx, word [rbp - 0x7f]
mov rcx, rbx
movzx eax, word [rsp + 0x2a]
add edx, eax
call fcn.1402f5030
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
movzx edx, word [rbp - 0x7d]
mov rcx, rbx
movzx eax, word [rbp - 0x7f]
sub edx, eax
call fcn.1402f44d0
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
mov rcx, rbx
call fcn.1402f47d0
movzx r15d, ax
cmp ax, 0x10
ja 0x140325c04
mov rcx, rbx
call fcn.1402f47d0
movzx edi, ax
test ax, ax
je 0x140325706
mov rcx, rbx
call fcn.1402f47d0
mov ecx, 0x8008
cmp di, cx
je 0x1403256e7
movzx eax, ax
lea rcx, [rax + rax*2]
lea rcx, [rcx*4 + 4]
add qword [rbx + 0x38], rcx
mov rcx, rbx
call fcn.1402f47d0
movzx edi, ax
test ax, ax
jne 0x1403256b0
jmp 0x140325706
movzx ecx, ax
mov qword [rsp + 0x30], rcx
mov rcx, rbx
call fcn.1401c66f0
mov r14d, dword [rbx + 0x38]
sub r14d, dword [rbx + 0x40]
add r14d, 4
add r14d, eax
mov rcx, rbx
call fcn.1402f45f0
mov rax, qword [rsp + 0x30]
test ax, ax
je 0x140325c04
test r14d, r14d
je 0x140325c04
movzx ecx, ax
imul eax, ecx, 0x76
cmp eax, dword [rbx + 8]
ja 0x140325c04
mov dword [rsi], ecx
test r12d, r12d
js 0x140325c23
cmp r13d, ecx
jae 0x140325c10
mov rcx, qword [rbp - 0x69]
lea r8, [rsp + 0x20]
mov edx, 0xb8
call fcn.1402f7580
mov edx, dword [rsp + 0x20]
mov qword [rsi + 0xd8], rax
test edx, edx
jne 0x140325c27
lea eax, [r13*2]
mov rcx, rbx
add eax, r13d
lea edx, [r14 + rax*4]
call fcn.1402f5030
mov dword [rsp + 0x20], eax
test eax, eax
jne 0x140325c1b
lea edx, [rax + 0xc]
mov rcx, rbx
call fcn.1402f44d0
mov dword [rsp + 0x20], eax
test eax, eax
jne 0x140325c1b
mov rcx, rbx
movzx edi, r15w
call fcn.1402f47d0
movzx edx, ax
mov ecx, edi
mov rax, qword [rsi + 0xd8]
shl edx, cl
mov rcx, rbx
mov dword [rax], edx
call fcn.1402f47d0
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.1402f45f0
mov rcx, qword [rsi + 0xd8]
mov rdx, rbx
call fcn.140325ce0
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x140325bfe
mov edi, 0x4550
cmp ax, di
jne 0x140325bfe
movzx edx, word [rsp + 0x2a]
mov rcx, rbx
call fcn.1402f5030
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
lea r8, [rbp - 0x59]
mov rcx, rbx
lea rdx, [0x14043ea48]
call fcn.1402f4a70
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
cmp dword [rbp - 0x59], edi
jne 0x140325c04
mov eax, 0x14c
cmp word [rbp - 0x55], ax
jne 0x140325c04
mov eax, 0xe0
cmp word [rbp - 0x51], ax
jne 0x140325c04
mov eax, 0x10b
cmp word [rbp - 0x4f], ax
jne 0x140325c04
movzx edi, r14w
mov dword [rsi], r14d
cmp r14w, word [rbp - 0x53]
jae 0x140325c04
nop dword [rax]
lea r8, [rbp - 0x41]
mov rcx, rbx
lea rdx, [0x14043ea80]
call fcn.1402f4a70
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
mov eax, dword [rbp - 0x39]
cmp dword [rbp - 0x4d], eax
je 0x1403258dc
inc di
cmp di, word [rbp - 0x53]
jb 0x1403258a0
mov edx, 3
jmp 0x140325c27
mov edx, dword [rbp - 0x31]
mov rcx, rbx
call fcn.1402f5030
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
lea r8, [rbp - 9]
mov rcx, rbx
lea rdx, [0x14043eaa0]
call fcn.1402f4a70
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
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 0x140325bfe
mov r8d, edi
nop dword [rax]
nop dword [rax + rax]
lea r8d, [r8 + 2]
mov rcx, rbx
lea edx, [r15 + r8*8]
call fcn.1402f5030
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [0x14043eac0]
call fcn.1402f4a70
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
mov ecx, dword [rsp + 0x34]
test ecx, ecx
jns 0x140325c04
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.1402f5030
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
lea r8, [rbp - 0x19]
mov rcx, rbx
lea rdx, [0x14043eaa0]
call fcn.1402f4a70
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
movzx ecx, word [rbp - 0xb]
movzx r12d, di
movzx eax, word [rbp - 0xd]
add ecx, eax
je 0x140325bd7
mov r8d, edi
lea r8d, [r8 + 2]
mov rcx, rbx
lea edx, [r14 + r8*8]
call fcn.1402f5030
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
lea r8, [rbp - 0x71]
mov rcx, rbx
lea rdx, [0x14043eac0]
call fcn.1402f4a70
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
mov ecx, dword [rbp - 0x6d]
test ecx, ecx
jns 0x140325c04
mov r14d, dword [rbp - 0x31]
btr ecx, 0x1f
add r14d, ecx
mov dword [rbp - 0x6d], ecx
mov edx, r14d
mov rcx, rbx
call fcn.1402f5030
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
lea r8, [rbp - 0x29]
mov rcx, rbx
lea rdx, [0x14043eaa0]
call fcn.1402f4a70
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
movzx ecx, word [rbp - 0x1b]
movzx eax, word [rbp - 0x1d]
add ecx, eax
je 0x140325bb3
xor ecx, ecx
mov r8d, ecx
nop word [rax + rax]
lea r8d, [r8 + 2]
mov rcx, rbx
lea edx, [r14 + r8*8]
call fcn.1402f5030
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
lea r8, [rbp - 0x61]
mov rcx, rbx
lea rdx, [0x14043eac0]
call fcn.1402f4a70
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
test dword [rbp - 0x6d], 0x80000000
jne 0x140325c04
cmp dword [rsp + 0x30], 8
jne 0x140325b99
mov edx, dword [rbp - 0x5d]
mov rcx, rbx
add edx, r15d
call fcn.1402f5030
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
lea r8, [rbp + 7]
mov rcx, rbx
lea rdx, [0x14043ead0]
call fcn.1402f4a70
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c27
cmp r13d, dword [rsi]
jne 0x140325b97
mov rcx, qword [rbp - 0x69]
lea r8, [rsp + 0x20]
mov edx, 0xb8
call fcn.1402f7580
mov edx, dword [rsp + 0x20]
mov qword [rsi + 0xd8], rax
test edx, edx
jne 0x140325c27
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.140325ce0
mov dword [rsp + 0x20], eax
mov edx, eax
test eax, eax
jne 0x140325c1b
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 0x140325aa0
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 0x1403259f0
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 0x140325940
mov eax, dword [rsi]
test eax, eax
jne 0x140325c0b
mov edx, 3
jmp 0x140325c27
cmp r13d, eax
jl 0x140325c17
mov edx, 6
jmp 0x140325c27
test edx, edx
je 0x140325c27
mov rcx, rsi
call fcn.140325c60
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.140352a60
add rsp, 0xe8
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret