Function at 0x140006320
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc90]
sub rsp, 0xd90
mov r15, r8
mov r14, rdx
mov rsi, rcx
test rdx, rdx
je 0x140006443
test r8, r8
je 0x140006443
cmp byte [r8], 0
je 0x140006443
call fcn.140003320
mov edi, 0x40
sub eax, 1
je 0x140006381
cmp eax, 1
jne 0x140006443
mov r12d, edi
jmp 0x140006387
mov r12d, 0x20
mov qword [rsp + 0x30], r12
test rsi, rsi
je 0x140006443
mov r9d, 2
lea rdx, [rbp + 0xcd8]
mov r8, r14
mov rcx, rsi
call fcn.1400036b0
cmp rax, 2
jne 0x140006443
mov eax, 0x5a4d
cmp word [rbp + 0xcd8], ax
jne 0x140006443
lea r8, [r14 + 0x3c]
mov r9d, 4
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1400036b0
cmp rax, 4
jne 0x140006443
mov ebx, dword [rsp + 0x28]
lea r9d, [rax - 2]
add rbx, r14
lea rdx, [rbp + 0xcd8]
mov rcx, rsi
lea r8, [rbx + 4]
call fcn.1400036b0
cmp rax, 2
jne 0x140006443
movzx eax, word [rbp + 0xcd8]
cmp eax, 0x14c
je 0x140006460
cmp eax, 0x8664
jne 0x140006443
mov r9d, 0x108
lea rdx, [rsp + 0x70]
mov r8, rbx
mov rcx, rsi
call fcn.1400036b0
cmp rax, 0x108
jne 0x140006443
cmp dword [rsp + 0x70], 0x4550
je 0x14000648d
xor eax, eax
mov rbx, qword [rsp + 0xdd0]
add rsp, 0xd90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r9d, 0xf8
lea rdx, [rsp + 0x70]
mov r8, rbx
mov rcx, rsi
call fcn.1400036b0
cmp rax, 0xf8
jne 0x140006443
cmp dword [rsp + 0x70], 0x4550
jne 0x140006443
mov edi, 0x20
cmp r12, rdi
jne 0x140006443
cmp r12, 0x20
je 0x1400064aa
cmp r12, 0x40
jne 0x140006443
mov eax, dword [rbp - 8]
test eax, eax
je 0x140006443
mov ecx, dword [rbp - 4]
jmp 0x1400064b4
mov eax, dword [rbp - 0x18]
test eax, eax
je 0x140006443
mov ecx, dword [rbp - 0x14]
test ecx, ecx
je 0x140006443
mov qword [rbp + 0xcd8], rcx
lea rbx, [rax + r14]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov r9d, 0x28
mov r8, rbx
call fcn.1400036b0
cmp rax, 0x28
jne 0x140006443
mov eax, dword [rsp + 0x5c]
mov r12d, dword [rsp + 0x60]
add rax, r14
mov r13d, dword [rsp + 0x64]
add r12, r14
add r13, r14
mov qword [rsp + 0x38], rax
cmp byte [r15], 0x23
jne 0x14000651b
xor edi, edi
mov eax, edi
cmp dword [rsp + 0x50], edi
ja 0x140006443
jmp 0x14000662c
xor edi, edi
cmp dword [rsp + 0x58], edi
jbe 0x140006443
nop word [rax + rax]
lea r8, [rdi*2]
mov r9d, 2
add r8, r13
lea rdx, [rbp + 0xce8]
mov rcx, rsi
call fcn.1400036b0
cmp rax, 2
jne 0x140006608
lea r8, [r12 + rdi*4]
mov rcx, rsi
lea r9d, [rax + 2]
lea rdx, [rsp + 0x20]
call fcn.1400036b0
cmp rax, 4
jne 0x140006608
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x140006608
lea r8, [r14 + rax]
mov r9d, 0x3ff
lea rdx, [rbp + 0x80]
mov rcx, rsi
call fcn.1400036b0
test rax, rax
je 0x140006608
mov byte [rbp + rax + 0x80], 0
lea r9, [rbp + 0x80]
cmp byte [rbp + 0x80], 0
mov r10, r15
je 0x1400065fc
nop
movzx eax, byte [r10]
test al, al
je 0x1400065fc
movzx r8d, byte [r9]
lea ecx, [r8 - 0x20]
movzx r11d, cl
lea edx, [r8 - 0x61]
cmp dl, 0x19
lea ecx, [rax - 0x61]
cmova r11d, r8d
cmp cl, 0x19
ja 0x1400065e9
add al, 0xe0
cmp r11b, al
jne 0x1400065fc
inc r9
inc r10
cmp byte [r9], 0
jne 0x1400065c0
jmp 0x140006602
cmp byte [r9], 0
jne 0x140006608
cmp byte [r10], 0
je 0x140006619
inc edi
cmp edi, dword [rsp + 0x58]
jb 0x140006530
jmp 0x140006443
cmp edi, dword [rsp + 0x58]
jae 0x140006443
movzx eax, word [rbp + 0xce8]
xor edi, edi
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r9d, 4
lea r8, [rcx + rax*4]
mov rcx, rsi
call fcn.1400036b0
cmp rax, 4
jne 0x140006443
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x140006443
lea rcx, [r14 + rax]
cmp rcx, rbx
jb 0x14000676b
mov rax, qword [rbp + 0xcd8]
add rax, rbx
cmp rcx, rax
jae 0x14000676b
mov r8, rcx
lea rdx, [rbp + 0x80]
mov rcx, rsi
mov r9d, 0x3ff
call fcn.1400036b0
test rax, rax
je 0x140006443
mov byte [rbp + rax + 0x80], 0
mov rbx, rdi
nop word [rax + rax]
cmp byte [rbp + rbx + 0x80], 0x2e
je 0x1400066c2
inc rbx
cmp rbx, rax
jb 0x1400066b0
lea r8, [rbx + rbx]
mov rcx, rbx
test rbx, rbx
je 0x1400066f2
lea rdx, [rbp + r8 + 0x47e]
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x7f]
mov word [rdx], ax
lea rdx, [rdx - 2]
sub rcx, 1
jne 0x1400066e0
mov dword [rbp + r8 + 0x480], 0x64002e
lea rdx, [rbp + 0x480]
mov dword [rbp + r8 + 0x484], 0x6c006c
mov rcx, rsi
mov word [rbp + r8 + 0x488], di
xor r8d, r8d
call fcn.140005cf0
test rax, rax
jne 0x14000674a
mov rdx, qword [rsp + 0x30]
lea r9, [rbp + 0x480]
mov r8, r14
mov rcx, rsi
call fcn.1400055f0
test rax, rax
je 0x140006443
cmp rax, r14
je 0x140006443
lea r8, [rbp + 0x81]
mov rdx, rax
add r8, rbx
mov rcx, rsi
call fcn.140006320
mov rcx, rax
mov rax, rcx
jmp 0x140006445