Function at 0x140001350
Capabilities:
Parse pe header

Disassembly:
pop rbx
add byte [rax], al
lea r8, [0x140006f2f]
mov rcx, rbx
mov rdx, rsi
call fcn.14000249f
xor eax, eax
cmp rax, 7
je 0x140001378
cmp byte [rax + rsi], 0
je 0x1400013d4
inc rax
jmp 0x140001367
movups xmm0, xmmword [rbp + 0xc0]
movaps xmmword [rbp + 0xf0], xmm0
mov rsi, qword [rbp + 0xd0]
mov qword [rbp + 0x100], rsi
mov rdi, qword [rbp + 0xf0]
cmp rdi, rsi
jne 0x14000143c
lea rax, [r15 - 2]
cmp rsi, rax
ja 0x140001c66
lea rdi, [rsi + 1]
test rsi, rsi
je 0x1400013f4
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x90], rsi
push 1
pop rax
jmp 0x1400013f6
cmp qword [rbp + 0xc0], r15
jne 0x140001c66
mov r14, qword [rbp + 0xc8]
mov rsi, qword [rbp + 0xd0]
jmp 0x140001495
xor eax, eax
lea r9, [rbp + 0x80]
mov qword [r9 + 8], rax
lea r14, [rbp + 0x20]
push 1
pop rdx
mov rcx, r14
mov r8, rdi
call fcn.140002607
mov rax, qword [r14 + 8]
test byte [r14], 1
je 0x14000142e
lea rcx, [r15 + 1]
mov rdi, rsi
cmp rax, rcx
je 0x14000143c
jmp 0x140001c66
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0xf0], rdi
cmp rsi, rdi
jne 0x140001453
lea rdi, [rbp + 0xf0]
mov rcx, rdi
call fcn.14000268c
mov rdi, qword [rdi]
mov r14, qword [rbp + 0xf8]
mov byte [r14 + rsi], 0
inc rsi
cmp rdi, rsi
jbe 0x140001495
test rsi, rsi
je 0x140001484
mov rcx, r14
mov rdx, rsi
call fcn.140002478
mov r14, rax
test rax, rax
jne 0x140001495
jmp 0x140001c66
push 1
pop rdi
mov rcx, r14
mov rdx, rdi
call fcn.140002448
mov r14, rdi
push 0xa
pop r8
xor ecx, ecx
mov rdx, r14
call fcn.140006868
mov r15, rax
xor ecx, ecx
mov rdx, rax
call fcn.140006928
mov rcx, rax
call fcn.140006938
mov rdi, rax
xor ecx, ecx
mov rdx, r15
call fcn.140006978
mov r15d, eax
mov byte [r14], 0
test rsi, rsi
je 0x1400014dc
push 1
pop rdx
mov rcx, r14
call fcn.140002448
mov eax, r15d
lea rcx, [rbp - 0x58]
mov qword [rcx], rdi
mov qword [rcx + 8], rax
lea rax, [rbp + 0xf0]
mov qword [rax], rcx
lea rcx, [0x1400012ca]
mov qword [rax + 8], rcx
lea rcx, [0x140006f30]
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], 2
and qword [rbp + 0xa0], 0
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 1
mov eax, dword [0x140009ff0]
cmp eax, 3
je 0x140001606
mov eax, dword [0x140009ff0]
cmp eax, 3
je 0x140001606
mov rdi, r13
lea rax, [0x140009fb8]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x68]
mov qword [rbp + 0x28], rax
push 2
pop rsi
lea r14, [0x140009ff0]
lea r15, [rbp + 0xc0]
push 4
pop r12
push 0xffffffffffffffff
pop r13
mov eax, dword [0x140009ff0]
mov edx, eax
and edx, 3
mov ecx, eax
and ecx, 4
cmp edx, 2
jae 0x1400015a3
or ecx, 2
lock cmpxchg dword [0x140009ff0], ecx
jne 0x140001585
jmp 0x1400015e1
jne 0x140001603
test ecx, ecx
jne 0x1400015bc
mov ecx, eax
or ecx, 4
mov eax, esi
lock cmpxchg dword [0x140009ff0], ecx
jne 0x140001585
jmp 0x1400015be
mov ecx, eax
mov dword [rbp + 0xc0], ecx
mov rcx, r14
mov rdx, r15
mov r8, r12
mov r9d, r13d
call fcn.140006838
cmp eax, 1
je 0x14000157f
call fcn.140006898
jmp 0x14000157f
lea rcx, [rbp + 0x20]
call fcn.140003e9a
push 3
pop rax
xchg dword [0x140009ff0], eax
test al, 4
je 0x140001603
lea rcx, [0x140009ff0]
call fcn.140006858
mov r13, rdi
mov eax, dword [0x140009f10]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r12, qword [rax + 8]
test r12, r12
jne 0x14000165f
mov rax, qword [0x140009ff8]
cmp rax, 0xffffffffffffffff
je 0x140001c66
lea r12, [rax + 1]
lock cmpxchg qword [0x140009ff8], r12
jne 0x14000162c
mov eax, dword [0x140009f10]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 8], r12
mov rax, qword [0x140009fb8]
cmp rax, r12
jne 0x140001688
mov eax, dword [0x140009fc0]
cmp eax, 0xffffffff
movabs r15, 0x8000000000000000
je 0x140001c66
inc eax
jmp 0x1400016ae
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x140009fc4], cl
jne 0x1400019c6
mov qword [0x140009fb8], r12
push 1
pop rax
movabs r15, 0x8000000000000000
mov dword [0x140009fc0], eax
lea rax, [0x140009fb8]
mov qword [rbp + 0xc0], rax
lea rsi, [rbp + 0x20]
mov qword [rsi], rbx
and qword [rsi + 8], 0
lea rdx, [0x140007058]
lea r8, [rbp + 0x80]
mov rcx, rsi
call fcn.1400027b1
mov ebx, eax
mov rcx, qword [rsi + 8]
test al, al
je 0x1400016f8
test rcx, rcx
jne 0x1400016fd
jmp 0x140001c66
call fcn.140002ece
mov rcx, qword [rbp + 0xc0]
dec dword [rcx + 8]
jne 0x140001722
mov qword [rcx], 0
xor eax, eax
xchg byte [rcx + 0xc], al
cmp al, 2
jne 0x140001722
add rcx, 0xc
call fcn.140006848
test bl, bl
jne 0x140001c66
xor ecx, ecx
call fcn.140002ece
call fcn.140006878
and qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 8
and qword [rbp + 0x78], 0
test rax, rax
je 0x1400017b3
mov rbx, rax
movzx edx, word [rax]
test dx, dx
je 0x1400017b3
lea rsi, [rbp + 0xc0]
and qword [rsi], 0
mov qword [rsi + 8], 2
and qword [rsi + 0x10], 0
add rbx, 2
xor edi, edi
test dx, dx
je 0x140001824
cmp dx, 9
je 0x140001798
movzx eax, dx
cmp eax, 0x20
je 0x140001798
cmp eax, 0x22
jne 0x1400017a2
xor dil, 1
jmp 0x1400017aa
test dil, 1
je 0x14000182e
mov rcx, rsi
call fcn.140003c43
movzx edx, word [rbx]
add rbx, 2
jmp 0x140001776
lea rsi, [rbp + 0x80]
mov rcx, rsi
call fcn.140003c8d
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
cmp rax, r15
jne 0x1400017e9
and qword [rbp + 0x100], 0
mov byte [rbp + 0x108], 1
call fcn.140002ca0
push 1
pop rcx
xor eax, eax
jmp 0x1400017fa
lea rdx, [rbp + 0x100]
movups xmm0, xmmword [rbp + 0x90]
movups xmmword [rdx], xmm0
lea rdx, [rbp + 0xf0]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rsi, [rbp + 0x68]
mov rcx, rsi
call fcn.140003dbc
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x140001a9f
add rbx, 0xfffffffffffffffe
jmp 0x14000182e
add rbx, 2
movzx eax, word [rbx]
cmp eax, 0x20
je 0x14000182a
cmp eax, 9
je 0x14000182a
mov rdx, qword [rbp + 0xc8]
mov r8, qword [rbp + 0xd0]
lea r14, [rbp + 0x80]
mov rcx, r14
call fcn.1400039f7
lea r15, [rbp + 0x68]
mov rcx, r15
mov rdx, r14
call fcn.140003dbc
lea r12, [rbp + 0xf0]
and qword [r12], 0
mov qword [r12 + 8], 2
and qword [r12 + 0x10], 0
xor eax, eax
mov edi, eax
movzx edx, word [rbx]
test edx, edx
je 0x140001991
mov rsi, rbx
add rbx, 2
cmp edx, 9
je 0x1400018c3
cmp edx, 0x20
je 0x1400018c3
cmp edx, 0x22
je 0x140001911
cmp edx, 0x5c
jne 0x1400018c9
xor esi, esi
movzx eax, word [rbx]
lea rdx, [rsi + 1]
cmp eax, 0x5c
jne 0x140001931
add rbx, 2
mov rsi, rdx
jmp 0x1400018ae
test dil, 1
je 0x1400018d5
mov rcx, r12
call fcn.140003c43
mov eax, edi
jmp 0x140001884
mov rdx, qword [rbp + 0xf8]
mov r8, qword [rbp + 0x100]
mov rcx, r14
call fcn.1400039f7
mov rcx, r15
mov rdx, r14
call fcn.140003dbc
and qword [rbp + 0x100], 0
movzx eax, word [rbx]
cmp eax, 0x20
je 0x14000190b
cmp eax, 9
jne 0x1400018d1
add rbx, 2
jmp 0x1400018fe
mov al, 1
test dil, 1
je 0x140001884
movzx ecx, word [rbx]
cmp ecx, 0x22
je 0x140001973
xor eax, eax
test ecx, ecx
jne 0x140001884
jmp 0x140001991
cmp eax, 0x22
jne 0x140001966
shr rdx, 1
mov rcx, r12
call fcn.140003b68
mov eax, edi
test sil, 1
jne 0x140001884
xor eax, eax
cmp word [rbx], 0
setne al
lea rbx, [rbx + rax*2]
mov rcx, r12
mov dx, 0x22
jmp 0x1400018cc
mov rcx, r12
call fcn.140003b68
jmp 0x1400018d1
mov rcx, r12
mov dx, 0x22
call fcn.140003c43
cmp word [rsi + 2], 0
lea rax, [rsi + 4]
cmovne rbx, rax
jmp 0x1400018d1
mov r8, qword [rbp + 0x100]
test r8, r8
je 0x140001a38
mov rsi, qword [rbp + 0xf8]
lea rcx, [rbp + 0x80]
mov rdx, rsi
call fcn.1400039f7
movabs r15, 0x8000000000000000
jmp 0x140001a61
lea rcx, [0x140009fc4]
call fcn.140003c77
test al, al
jne 0x1400019e8
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x140009fc4], cl
je 0x14000169a
lea rsi, [0x140009fc4]
lea rdi, [rbp + 0x20]
push 1
pop r14
push 0xffffffffffffffff
pop r15
cmp al, 2
je 0x140001a0f
mov al, 2
xchg byte [0x140009fc4], al
test al, al
je 0x14000169a
mov byte [rbp + 0x20], 2
mov rcx, rsi
mov rdx, rdi
mov r8, r14
mov r9d, r15d
call fcn.140006838
cmp eax, 1
je 0x140001a2e
call fcn.140006898
mov rcx, rsi
call fcn.140003c77
jmp 0x1400019fb
mov rsi, qword [rbp + 0xf8]
test dil, 1
movabs r15, 0x8000000000000000
je 0x140001a71
lea rcx, [rbp + 0x80]
mov rdx, rsi
xor r8d, r8d
call fcn.1400039f7
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x80]
call fcn.140003dbc
mov rdi, qword [rbp + 0x68]
mov r14, qword [rbp + 0x70]
mov rbx, qword [rbp + 0x78]
mov rcx, qword [rbp + 0xf0]
mov rdx, rsi
call fcn.140002d11
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
call fcn.140002d11
shl rbx, 5
add rbx, r14
lea rdx, [rbp + 0x20]
mov qword [rdx], r14
mov qword [rdx + 8], r14
mov qword [rdx + 0x10], rdi
mov qword [rdx + 0x18], rbx
mov qword [rdx + 0x20], 1
lea rsi, [rbp + 0xc0]
mov rcx, rsi
call fcn.14000121c
cmp qword [rsi], r15
jne 0x140001af4
lea rcx, [rbp + 0x20]
call fcn.140003bef
push 1
pop rax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x18], 0
xor ebx, ebx
jmp 0x140001d0c
push 1
pop rbx
push 4
pop rsi
lea r14, [rbp + 0x80]
lea rdi, [rbp + 0x20]
mov rcx, r14
mov rdx, rdi
call fcn.1400012a3
mov rcx, qword [r14]
inc rcx
push 0xffffffffffffffff
pop rax
cmove rcx, rax
cmp rcx, 5
cmovb rcx, rsi
push 8
pop r15
push 0x18
pop rsi
mov rdx, r15
mov r8, rsi
call fcn.1400012da
mov r13, rdx
mov rcx, qword [rbp + 0xd0]
movups xmm0, xmmword [rbp + 0xc0]
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], rcx
lea r12, [rbp + 0x68]
mov qword [r12], rax
mov qword [r12 + 8], rdx
mov qword [r12 + 0x10], 1
mov rax, qword [rdi + 0x20]
mov qword [r14 + 0x20], rax
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [r14 + 0x10], xmm1
movaps xmmword [r14], xmm0
lea rdi, [rbp - 0x48]
mov rcx, rdi
mov rdx, r14
call fcn.14000121c
movabs rax, 0x8000000000000000
cmp qword [rbp - 0x48], rax
je 0x140001bff
cmp rbx, qword [rbp + 0x68]
je 0x140001bc2
movups xmm0, xmmword [rbp - 0x48]
mov rax, qword [rbp - 0x38]
mov qword [r13 + rsi + 0x10], rax
movups xmmword [r13 + rsi], xmm0
inc rbx
mov qword [rbp + 0x78], rbx
add rsi, 0x18
jmp 0x140001b81
lea rcx, [rbp + 0xf0]
mov rdx, r14
call fcn.1400012a3
mov r8, qword [rbp + 0xf0]
inc r8
push 0xffffffffffffffff
pop rax
cmove r8, rax
mov qword [rsp + 0x20], 0x18
mov rcx, r12
mov rdx, rbx
mov r9, r15
call fcn.140002509
mov r13, qword [rbp + 0x70]
jmp 0x140001ba2
mov rdx, qword [rbp - 0x40]
movabs r15, 0x8000000000000000
mov rcx, r15
call fcn.1400012cd
lea rcx, [rbp + 0x80]
call fcn.140003bef
mov r8, qword [rbp + 0x68]
mov r13, qword [rbp + 0x70]
test rbx, rbx
mov qword [rbp + 0x18], r8
je 0x140001d03
imul rax, rbx, 0x18
lea rdi, [rsi - 0x18]
add rax, 0xffffffffffffffe8
push 0x18
pop rcx
xor edx, edx
div rcx
mov r14, rax
mov rax, r13
test rsi, rsi
je 0x140001c68
lea rcx, [rax + 0x18]
add rsi, 0xffffffffffffffe8
add r14, qword [rax + 0x10]
mov rax, rcx
jae 0x140001c50
ud2
push 1
pop rdx
mov rcx, r14
mov r8, rdx
call fcn.1400012da
lea rsi, [rbp + 0x80]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
and qword [rsi + 0x10], 0
mov rdx, qword [r13 + 8]
mov r8, qword [r13 + 0x10]
add r8, rdx
mov rcx, rsi
call fcn.14000249f
mov rcx, qword [rsi + 8]
mov rax, qword [rsi + 0x10]
mov qword [rbp + 0x60], rcx
add rcx, rax
mov rsi, r14
sub rsi, rax
lea r15, [r13 + 0x28]
test rdi, rdi
je 0x140001ced
test rsi, rsi
je 0x140001c66
mov rdx, qword [r15 - 8]
mov r8, qword [r15]
dec rsi
mov byte [rcx], 0x20
sub rsi, r8
jb 0x140001c66
lea r12, [rcx + r8]
inc r12
inc rcx
call fcn.140006a78
add r15, 0x18
add rdi, 0xffffffffffffffe8
mov rcx, r12
jmp 0x140001cb5
sub r14, rsi
mov r12, qword [rbp + 0x80]
movabs r15, 0x8000000000000000
jmp 0x140001d12
xor ebx, ebx
push 1
pop rax
mov qword [rbp + 0x60], rax
xor r14d, r14d
xor r12d, r12d
mov qword [rbp - 0x30], r13
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x58], rax
lea rsi, [rbp + 0x80]
mov rcx, rsi
call fcn.140003c8d
mov rax, qword [rsi]
mov qword [rbp + 0xd8], rax
cmp rax, r15
je 0x140001c66
lea rdi, [rbp + 0x80]
mov rsi, qword [rdi + 8]
mov r13, qword [rdi + 0x10]
mov rcx, rdi
mov rdx, rsi
mov r8, r13
xor r9d, r9d
call fcn.140002d22
test byte [rdi], 1
mov qword [rbp - 0x28], r12
je 0x140001e20
mov r15, qword [rbp + 0x88]
lea rcx, [rbp + 0x20]
mov rdx, r13
call fcn.140003b38
cmp r15, r13
ja 0x140001c66
lea r8, [rsi + r15]
lea rdi, [rbp + 0x20]
mov rcx, rdi
mov rdx, rsi
call fcn.14000249f
lea rdx, [0x140007130]
lea r8, [0x140007133]
mov rcx, rdi
call fcn.14000249f
mov r12, r15
add r12, 3
lea rcx, [rbp + 0x80]
mov rdx, rsi
mov r8, r13
mov r9, r12
call fcn.140002d22
test byte [rbp + 0x80], 1
je 0x140001e2c
mov r15, qword [rbp + 0x88]
cmp r15, r12
jb 0x140001c66
cmp r15, r13
ja 0x140001c66
add r12, rsi
lea r8, [rsi + r15]
mov rcx, rdi
mov rdx, r12
call fcn.14000249f
mov rcx, rdi
lea rdx, [0x140007130]
lea r8, [0x140007133]
jmp 0x140001db8
mov qword [rbp + 0xe8], r15
mov r15, rsi
jmp 0x140001e5f
cmp r12, r13
ja 0x140001c66
add r12, rsi
add r13, rsi
lea rdi, [rbp + 0x20]
mov rcx, rdi
mov rdx, r12
mov r8, r13
call fcn.14000249f
mov rax, qword [rdi]
mov qword [rbp + 0xe8], rax
mov r15, qword [rdi + 8]
mov r13, qword [rdi + 0x10]
lea rdi, [rbp + 0x80]
mov rcx, rdi
mov rdx, r13
call fcn.140002774
mov rcx, qword [rdi + 8]
mov rdx, r15
mov r8, r13
call fcn.140006a78
lea r12, [rbp + 0x20]
mov qword [r12 + 0x10], r13
movups xmm0, xmmword [rdi]
movaps xmmword [r12], xmm0
lea rdx, [0x140006f50]
lea r8, [0x140006f51]
mov rcx, r12
call fcn.14000249f
mov rax, qword [r12 + 0x10]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [r12]
movaps xmmword [rdi], xmm0
mov rdx, qword [rbp + 0x60]
add r14, rdx
mov rcx, rdi
mov r8, r14
call fcn.14000249f
mov rax, qword [rdi]
mov qword [rbp - 0x20], rax
mov rax, qword [rdi + 8]
mov qword [rbp + 0x10], rax
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x18], rax
mov rcx, qword [rbp + 0xe8]
movabs rax, 0x8000000000000000
cmp rcx, rax
je 0x140001eff
mov rdx, r15
call fcn.1400026c3
mov rcx, qword [rbp + 0xd8]
mov rdx, rsi
call fcn.1400026c3
mov r14, qword [rbp + 0xe0]
cmp word [r14], 0x5a4d
mov r15, qword [rbp + 0x58]
jne case.0x14000210e.4
movsxd rcx, dword [r14 + 0x3c]
cmp dword [rcx + r14], 0x4550
jne case.0x14000210e.4
mov rsi, rcx
add rsi, r14
lea rdi, [rsi + 0x108]
mov edx, dword [rsi + 0x50]
mov eax, dword [rsi + 0x90]
mov qword [rbp + 0xd8], rax
mov r12d, dword [rsi + 0x94]
mov eax, dword [rsi + 0xb0]
mov qword [rbp - 0x10], rax
mov eax, dword [rsi + 0xd0]
mov qword [rbp + 8], rax
mov eax, dword [rsi + 0xd4]
mov dword [rbp + 0x54], eax
mov eax, dword [rsi + 0xa0]
mov qword [rbp], rax
mov eax, dword [rsi + 0xa4]
mov dword [rbp + 0xbc], eax
push 4
pop r9
xor ecx, ecx
mov r8d, 0x3000
call fcn.140006988
mov r13, rax
mov qword [rbp + 0xe8], rsi
movzx esi, word [rsi + 6]
mov qword [rbp - 8], rdi
sub si, 1
jb 0x140001fdf
mov r8d, dword [rdi + 0x10]
mov edx, dword [rdi + 0x14]
lea rax, [r8 + rdx]
cmp rax, r15
ja case.0x14000210e.4
mov ecx, dword [rdi + 0xc]
add rdx, r14
add rcx, r13
call fcn.140006a78
add rdi, 0x28
jmp 0x140001fb1
xor r8d, r8d
push 0x14
pop rcx
mov eax, r12d
xor edx, edx
div ecx
mov rdi, qword [rbp + 0xd8]
add rdi, r13
lea r14, [r13 + 2]
mov qword [rbp + 0xd8], rdi
mov qword [rbp + 0x58], rax
cmp r8, rax
je 0x1400020b2
imul rdx, r8, 0x14
mov esi, dword [rdi + rdx]
mov r15d, dword [rdi + rdx + 0x10]
mov ecx, r15d
or ecx, esi
je 0x1400020b2
mov qword [rbp + 0xe0], r8
add rdx, rdi
mov ecx, dword [rdx + 0xc]
add rcx, r13
call fcn.140006918
mov r12, rax
test rax, rax
jne 0x140002052
call fcn.140004391
test eax, eax
jne 0x1400021ec
xor r12d, r12d
inc qword [rbp + 0xe0]
mov rcx, r12
xor edx, edx
call fcn.140002b7e
mov rdi, r13
mov rdx, qword [rdi + rsi]
test rdx, rdx
je 0x140002076
jns 0x14000207d
movzx edx, dx
jmp 0x140002080
cmp qword [rdi + r15], 0
je 0x14000209b
add rdx, r14
mov rcx, r12
call fcn.1400068b8
test rax, rax
je case.0x14000210e.4
mov qword [rdi + r15], rax
add rdi, 8
jmp 0x140002066
mov rdi, qword [rbp + 0xd8]
mov r8, qword [rbp + 0xe0]
mov rax, qword [rbp + 0x58]
jmp 0x140002005
mov rax, r13
mov rcx, qword [rbp + 0xe8]
sub rax, qword [rcx + 0x30]
mov rsi, qword [rbp - 0x10]
add rsi, r13
mov ecx, eax
shr ecx, 0x10
lea rdx, [0x140007284]
cmp dword [rsi], 0
je 0x140002138
lea r8, [rsi + 8]
mov r9d, dword [rsi + 4]
add r9, rsi
cmp r8, r9
jae 0x140002133
movzx r10d, word [r8]
mov r11d, r10d
shr r11d, 0xc
cmp r11d, 0xa
ja case.0x14000210e.4
and r10d, 0xfff
add r10d, dword [rsi]
movsxd r11, dword [rdx + r11*4]
add r11, rdx
jmp r11
add word [r13 + r10], cx
jmp case.0x14000210e.0
add dword [r13 + r10], eax
jmp case.0x14000210e.0
add word [r13 + r10], ax
jmp case.0x14000210e.0
add qword [r13 + r10], rax
add r8, 2
jmp 0x1400020e3
mov rsi, r8
jmp 0x1400020d3
mov rax, qword [rbp + 0xe8]
movzx r14d, word [rax + 6]
xor r12d, r12d
lea rsi, [rbp + 0x80]
mov rax, qword [rbp - 8]
cmp r12w, r14w
jae 0x1400021fa
mov edx, dword [rax + 0x10]
test rdx, rdx
je 0x14000216c
mov ecx, dword [rax + 0xc]
test rcx, rcx
jne 0x140002171
inc r12d
jmp 0x140002152
mov rdi, rax
mov eax, dword [rax + 0x24]
xor r8d, r8d
test eax, eax
js 0x140002195
cmp eax, 0x40000000
setae r8b
lea r9d, [r8 + r8]
shl r8d, 4
add r8d, 0x10
jmp 0x1400021ad
bt eax, 0x1e
setae r8b
lea r9d, [r8*4 + 4]
shl r8d, 6
add r8d, 0x40
bt eax, 0x1d
cmovae r8d, r9d
and dword [rbp + 0x80], 0
add rcx, r13
mov r9, rsi
call fcn.140006998
test eax, eax
jne 0x1400021d4
call fcn.140004391
test eax, eax
jne 0x1400021ec
inc r12d
xor ecx, ecx
xor edx, edx
call fcn.140002b7e
mov rax, rdi
add rax, 0x28
jmp 0x140002152
xor ecx, ecx
mov edx, eax
call fcn.140002b7e
jmp case.0x14000210e.4
cmp dword [rbp + 0xbc], 0
je 0x14000222b
mov rcx, qword [rbp]
add rcx, r13
push 0xc
pop r8
mov eax, dword [rbp + 0xbc]
xor edx, edx
div r8d
mov edx, eax
mov r8, r13
call fcn.140006958
test al, al
je case.0x14000210e.4
cmp dword [rbp + 0x54], 0
je 0x140002255
mov rax, qword [rbp + 8]
mov rdi, qword [r13 + rax + 0x18]
push 1
pop rsi
mov rax, qword [rdi]
test rax, rax
je 0x140002255
mov rcx, r13
mov edx, esi
xor r8d, r8d
call rax
add rdi, 8
jmp 0x14000223d
push 0x30
pop rax
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov r14, qword [rax + 0x20]
mov rcx, qword [r14 + 0x78]
movzx r8d, word [r14 + 0x70]
add r8d, r8d
xor edx, edx
call fcn.140006a98
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x18]
add rdx, rax
lea rcx, [rbp + 0xf0]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
and word [rcx + 0x10], 0
call fcn.140002bca
test ax, ax
je 0x14000239a
mov r12d, edx
mov qword [rbp + 0xe0], r14
mov rax, qword [rbp + 0xf8]
sub rax, qword [rbp + 0xf0]
movzx ecx, word [rbp + 0x100]
add rax, 2
push 3
pop r8
xor edx, edx
div r8
cmp cx, 1
sbb rax, 0xffffffffffffffff
cmp rax, 4
cmovb rax, r8
lea rcx, [rax + 1]
push 2
pop rdx
mov r8, rdx
call fcn.1400012da
mov rsi, rdx
mov word [rdx], r12w
lea rcx, [rbp + 0x20]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
mov r14, rcx
mov qword [rcx + 0x10], 1
mov rax, qword [rbp + 0x100]
lea rcx, [rbp + 0x80]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp + 0xf0]
mov r15, rcx
movaps xmmword [rcx], xmm0
push 1
pop rdi
mov rcx, r15
call fcn.140002bca
cmp ax, 1
jne 0x14000238d
mov r12d, edx
cmp rdi, qword [rbp + 0x20]
jne 0x14000237f
mov rax, qword [rbp + 0x88]
sub rax, qword [rbp + 0x80]
movzx ecx, word [rbp + 0x90]
add rax, 2
xor edx, edx
push 3
pop r8
div r8
cmp cx, 1
sbb rax, 0xffffffffffffffff
lea rdx, [rax + 1]
mov rcx, r14
call fcn.140002b94
mov rsi, qword [rbp + 0x28]
mov word [rsi + rdi*2], r12w
inc rdi
mov qword [rbp + 0x30], rdi
jmp 0x14000232e
mov r12, qword [rbp + 0x20]
mov r14, qword [rbp + 0xe0]
jmp 0x1400023a2
push 2
pop rsi
xor r12d, r12d
xor edi, edi
mov rcx, qword [r14 + 0x78]
lea r8, [rdi + rdi]
mov rdx, rsi
call fcn.140006a78
add edi, edi
mov word [r14 + 0x70], di
mov word [r14 + 0x72], di
mov rax, qword [rbp + 0xe8]
mov eax, dword [rax + 0x28]
add r13, rax
call r13
mov rcx, r12
mov rdx, rsi
call fcn.140002d11
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp + 0x10]
call fcn.1400026c3
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp + 0x60]
call fcn.1400026c3
mov rdi, qword [rbp - 0x30]
lea rsi, [rdi + 8]
sub rbx, 1
jb 0x140002413
mov rcx, qword [rsi - 8]
mov rdx, qword [rsi]
call fcn.1400026c3
add rsi, 0x18
jmp 0x1400023fb
push 8
pop r8
push 0x18
pop r9
mov rcx, qword [rbp + 0x18]
mov rdx, rdi
call fcn.1400026d4
nop
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret