Function at 0x1400c6404
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x14014c040]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rax, qword [rcx + 0x98]
xor r13d, r13d
mov rdi, qword [rcx + 0xa0]
mov rsi, rcx
mov qword [rbp - 0x49], rax
mov eax, edx
neg eax
mov dword [rbp - 0x75], edx
mov qword [rcx + 0xd8], r13
mov rcx, rdi
cmovs eax, edx
xor edx, edx
movzx r15d, ax
mov dword [rbp - 0x71], r15d
call fcn.140096b64
test eax, eax
jne 0x1400c6a90
lea r8, [rbp - 0x79]
mov rcx, rdi
lea rdx, [0x14011a508]
call fcn.14009716c
test eax, eax
jne 0x1400c6a90
lea ebx, [rax + 2]
mov eax, 0x5a4d
cmp word [rbp - 0x79], ax
jne 0x1400c6a38
movzx r14d, word [rbp - 0x77]
mov rcx, rdi
mov edx, r14d
call fcn.140096b64
mov ebx, eax
test eax, eax
jne 0x1400c6a95
lea r8, [rbp - 0x6d]
mov rcx, rdi
lea rdx, [0x14011a520]
call fcn.14009716c
mov ebx, eax
test eax, eax
jne 0x1400c6a95
lea ebx, [rax + 2]
mov eax, 0x454e
cmp word [rbp - 0x6d], ax
jne 0x1400c668c
movzx r15d, r13w
mov r12d, r13d
movzx r13d, word [rbp - 0x6b]
mov rcx, rdi
lea edx, [r14 + r13]
call fcn.140096b64
mov ebx, eax
test eax, eax
jne 0x1400c6a95
movzx edx, word [rbp - 0x69]
mov rcx, rdi
sub edx, r13d
call fcn.140096cf8
xor r13d, r13d
mov dword [rbp - 0x79], eax
mov ebx, eax
test eax, eax
jne 0x1400c6a95
mov rcx, rdi
call fcn.140096e4c
movzx r14d, ax
cmp r14d, 0x10
jbe 0x1400c6571
lea ebx, [r13 + 3]
call fcn.140096de4
jmp 0x1400c6a95
mov rcx, rdi
call fcn.140096e4c
mov ecx, 0x8008
cmp r10w, cx
je 0x1400c6581
movzx eax, ax
lea rcx, [rax + rax*2]
lea rcx, [rcx*4 + 4]
add qword [rdi + 0x38], rcx
mov rcx, rdi
call fcn.140096e4c
movzx r10d, ax
test ax, ax
jne 0x1400c6548
jmp 0x1400c6596
mov ecx, dword [rdi + 0xc]
movzx r15d, ax
mov r12d, dword [rdi + 0x38]
sub ecx, dword [rdi + 0x40]
add r12d, 4
add r12d, ecx
mov rcx, rdi
call fcn.140096de4
test r15w, r15w
je 0x1400c6a1e
test r12d, r12d
je 0x1400c6a1e
movzx edx, r15w
imul eax, edx, 0x76
cmp eax, dword [rdi + 8]
ja 0x1400c6a1e
mov dword [rsi], edx
cmp dword [rbp - 0x75], r13d
jl 0x1400c6a95
mov r15d, dword [rbp - 0x71]
cmp r15d, edx
jae 0x1400c6a2a
mov rcx, qword [rbp - 0x49]
lea r8, [rbp - 0x79]
mov edx, 0xb8
call fcn.140097584
mov ebx, dword [rbp - 0x79]
mov qword [rsi + 0xd8], rax
test ebx, ebx
jne 0x1400c6a95
lea eax, [r15 + r15*2]
mov rcx, rdi
lea edx, [r12 + rax*4]
call fcn.140096b64
mov ebx, eax
test eax, eax
jne 0x1400c6a34
lea edx, [rax + 0xc]
mov rcx, rdi
call fcn.140096cf8
mov ebx, eax
test eax, eax
jne 0x1400c6a34
mov rcx, rdi
call fcn.140096e4c
movzx r10d, ax
mov ecx, r14d
mov rax, qword [rsi + 0xd8]
shl r10d, cl
mov rcx, rdi
mov dword [rax], r10d
call fcn.140096e4c
movzx r10d, ax
mov ecx, r14d
mov rax, qword [rsi + 0xd8]
shl r10d, cl
mov rcx, rdi
mov dword [rax + 0xa8], r10d
add qword [rdi + 0x38], 8
call fcn.140096de4
mov rcx, qword [rsi + 0xd8]
mov rdx, rdi
call fcn.1400c633c
mov ebx, eax
jmp 0x1400c6a19
mov r12d, 0x4550
cmp word [rbp - 0x6d], r12w
jne 0x1400c6a19
mov edx, r14d
mov rcx, rdi
call fcn.140096b64
mov ebx, eax
test eax, eax
jne 0x1400c6a95
lea r8, [rbp - 0x41]
mov rcx, rdi
lea rdx, [0x14011a6b0]
call fcn.14009716c
mov ebx, eax
test eax, eax
jne 0x1400c6a95
cmp dword [rbp - 0x41], r12d
jne 0x1400c6a1e
mov eax, 0x14c
cmp word [rbp - 0x3d], ax
jne 0x1400c6a1e
mov eax, 0xe0
cmp word [rbp - 0x39], ax
jne 0x1400c6a1e
mov eax, 0x10b
cmp word [rbp - 0x37], ax
jne 0x1400c6a1e
movzx r15d, word [rbp - 0x3b]
movzx r14d, r13w
mov dword [rsi], r13d
cmp r13w, r15w
jae 0x1400c6a1e
lea r12d, [rbx + 1]
lea r8, [rbp - 0x19]
mov rcx, rdi
lea rdx, [0x14011a5c0]
call fcn.14009716c
mov ebx, eax
test eax, eax
jne 0x1400c6a95
mov eax, dword [rbp - 0x11]
cmp dword [rbp - 0x35], eax
je 0x1400c6754
add r14w, r12w
cmp r14w, r15w
jb 0x1400c6720
jmp 0x1400c6a1e
mov r15d, dword [rbp - 9]
mov rcx, rdi
mov edx, r15d
call fcn.140096b64
mov ebx, eax
test eax, eax
jne 0x1400c6a95
lea r8, [rbp - 0x29]
mov rcx, rdi
lea rdx, [0x14011a5f0]
call fcn.14009716c
mov ebx, eax
test eax, eax
jne 0x1400c6a95
movzx ecx, word [rbp - 0x1b]
movzx r14d, r13w
movzx eax, word [rbp - 0x1d]
add eax, ecx
mov word [rbp - 0x75], r13w
mov dword [rbp - 0x6d], eax
je 0x1400c6a15
mov eax, r13d
lea eax, [rax + 2]
mov rcx, rdi
lea edx, [r15 + rax*8]
call fcn.140096b64
mov ebx, eax
test eax, eax
jne 0x1400c6a95
lea r8, [rbp - 0x59]
mov rcx, rdi
lea rdx, [0x14011a5e0]
call fcn.14009716c
mov ebx, eax
test eax, eax
jne 0x1400c6a95
mov eax, dword [rbp - 0x55]
test eax, eax
jns 0x1400c6a1e
btr eax, 0x1f
mov rcx, rdi
mov dword [rbp - 0x55], eax
lea r12d, [rax + r15]
lea edx, [rax + r15]
mov dword [rbp - 0x5d], r12d
call fcn.140096b64
mov ebx, eax
test eax, eax
jne 0x1400c6a95
lea r8, [rbp - 1]
mov rcx, rdi
lea rdx, [0x14011a5f0]
call fcn.14009716c
mov ebx, eax
test eax, eax
jne 0x1400c6a95
movzx ecx, word [rbp + 0xd]
movzx eax, word [rbp + 0xb]
add eax, ecx
mov dword [rbp - 0x61], eax
test eax, eax
je 0x1400c69f9
xor r14d, r14d
mov eax, r14d
lea eax, [rax + 2]
mov rcx, rdi
lea edx, [r12 + rax*8]
call fcn.140096b64
mov ebx, eax
test eax, eax
jne 0x1400c6a95
lea r8, [rbp - 0x51]
mov rcx, rdi
lea rdx, [0x14011a5e0]
call fcn.14009716c
mov ebx, eax
test eax, eax
jne 0x1400c6a95
mov r14d, dword [rbp - 0x4d]
test r14d, r14d
jns 0x1400c6a1e
btr r14d, 0x1f
mov rcx, rdi
mov dword [rbp - 0x4d], r14d
lea edx, [r14 + r15]
call fcn.140096b64
mov ebx, eax
test eax, eax
jne 0x1400c6a95
lea r8, [rbp + 0xf]
mov rcx, rdi
lea rdx, [0x14011a5f0]
call fcn.14009716c
xor edx, edx
mov ebx, eax
test eax, eax
jne 0x1400c6a95
movzx ecx, word [rbp + 0x1d]
movzx r12d, dx
movzx eax, word [rbp + 0x1b]
add eax, ecx
mov dword [rbp - 0x65], eax
je 0x1400c69df
mov eax, edx
lea ecx, [r14 + r15]
lea eax, [rax + 2]
lea edx, [rcx + rax*8]
mov rcx, rdi
call fcn.140096b64
mov ebx, eax
test eax, eax
jne 0x1400c6a95
lea r8, [rbp - 0x29]
mov rcx, rdi
lea rdx, [0x14011a5e0]
call fcn.14009716c
mov ebx, eax
test eax, eax
jne 0x1400c6a95
test r14d, r14d
js 0x1400c6a1e
cmp dword [rbp - 0x59], 8
jne 0x1400c69c9
mov edx, dword [rbp - 0x25]
mov rcx, rdi
add edx, r15d
call fcn.140096b64
mov ebx, eax
test eax, eax
jne 0x1400c6a95
lea r8, [rbp - 0x41]
mov rcx, rdi
lea rdx, [0x14011a6e8]
call fcn.14009716c
mov dword [rbp - 0x79], eax
mov ebx, eax
test eax, eax
jne 0x1400c6a95
mov eax, dword [rbp - 0x71]
cmp eax, dword [rsi]
jne 0x1400c69c0
mov rcx, qword [rbp - 0x49]
lea r8, [rbp - 0x79]
mov edx, 0xb8
call fcn.140097584
mov ebx, dword [rbp - 0x79]
mov qword [rsi + 0xd8], rax
test ebx, ebx
jne 0x1400c6a95
mov ecx, dword [rbp - 0x41]
mov rdx, rdi
sub ecx, dword [rbp - 0x11]
add ecx, r15d
mov dword [rax], ecx
mov rcx, qword [rsi + 0xd8]
mov eax, dword [rbp - 0x3d]
mov dword [rcx + 0xa8], eax
mov rcx, qword [rsi + 0xd8]
call fcn.1400c633c
mov ebx, eax
test eax, eax
jne 0x1400c6a31
mov eax, 1
add dword [rsi], eax
jmp 0x1400c69ce
mov eax, 1
add r12w, ax
movzx eax, r12w
cmp eax, dword [rbp - 0x65]
jb 0x1400c68e1
mov r12d, dword [rbp - 0x5d]
inc r13w
movzx eax, r13w
cmp eax, dword [rbp - 0x61]
jb 0x1400c6847
movzx r14d, word [rbp - 0x75]
inc r14w
mov r13d, 0
movzx eax, r14w
mov word [rbp - 0x75], r14w
cmp eax, dword [rbp - 0x6d]
jb 0x1400c67a9
mov r15d, dword [rbp - 0x71]
cmp dword [rsi], r13d
jne 0x1400c6a25
mov ebx, 3
jmp 0x1400c6a95
cmp r15d, dword [rsi]
jl 0x1400c6a34
mov ebx, 6
jmp 0x1400c6a95
xor r13d, r13d
test ebx, ebx
je 0x1400c6a95
mov rdi, qword [rsi + 0xd8]
mov r14, qword [rsi + 0x98]
test rdi, rdi
je 0x1400c6a95
lea rdx, [rdi + 0xa0]
cmp qword [rdx], r13
je 0x1400c6a63
mov rcx, qword [rsi + 0xa0]
call fcn.140096cc4
mov rdx, qword [rdi + 0xb0]
test rdx, rdx
je 0x1400c6a76
mov rcx, r14
call qword [r14 + 0x10]
mov rdx, rdi
mov qword [rdi + 0xb0], r13
mov rcx, r14
call qword [r14 + 0x10]
mov qword [rsi + 0xd8], r13
jmp 0x1400c6a95
mov ebx, 2
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400eb600
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret