Function at 0x140012350
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push r14
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xb8
mov rax, qword [0x14025dcd8]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r14, qword [0x14025dfb0]
xor r15d, r15d
mov rdi, rcx
mov qword [rbp - 0x21], r14
mov eax, dword [r14 + 0x3f60]
and byte [rcx + 0xc8], 0xfb
mov dword [rcx + 0xac], eax
mov qword [rcx + 0xa0], r15
mov qword [rcx + 0x98], r15
cmp qword [rcx + 0x18], r15
jne 0x140012510
call fcn.1400130c0
xor eax, eax
xorps xmm0, xmm0
mov r8d, eax
mov qword [rbp + 7], rax
movups xmmword [rbp - 9], xmm0
cmp dword [rdi + 0x30], eax
jle 0x1400123d8
mov rdx, rdi
inc r8d
mov qword [rbp - 1], rdx
mov dword [rbp + 7], r8d
jmp 0x1400123dc
mov rdx, qword [rbp - 1]
mov rcx, qword [rbp - 9]
mov eax, dword [rdi + 0x10]
shr eax, 0xb
test al, 1
cmovne rcx, rdi
mov qword [rbp - 9], rcx
cmp r8d, 1
jle 0x1400123fb
test rcx, rcx
jne 0x14001243d
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x14001241c
lea rdx, [rbp - 9]
mov rcx, rax
call fcn.14000f710
mov rdx, qword [rbp - 1]
mov rcx, qword [rbp - 9]
mov r8d, dword [rbp + 7]
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x14001243d
lea rdx, [rbp - 9]
mov rcx, rax
call fcn.14000f710
mov rdx, qword [rbp - 1]
mov rcx, qword [rbp - 9]
mov r8d, dword [rbp + 7]
cmp r8d, 1
mov qword [rdi + 0x98], rcx
mov rax, r15
mov dword [rdi + 0xa8], r8d
cmove rax, rdx
mov qword [rdi + 0xa0], rax
cmp dword [rdi + 0xb8], r15d
jne 0x140012477
test rdx, rdx
je 0x1400124f9
mov eax, dword [rdx]
mov dword [rdi + 0xb8], eax
test rdx, rdx
je 0x1400124f9
mov rax, qword [rdx + 0x38]
mov r9d, 1
mov rax, qword [rax]
movups xmm0, xmmword [rax + 0x1c]
movups xmmword [rdi + 0x64], xmm0
movsd xmm1, qword [rax + 0x2c]
movsd qword [rdi + 0x74], xmm1
mov eax, dword [rax + 0x34]
mov dword [rdi + 0x7c], eax
movsxd rax, dword [rdx + 0x30]
cmp eax, r9d
jle 0x1400124f9
mov r11, qword [rdx + 0x38]
mov r10, rax
mov r8d, r9d
lea rdx, [r11 + 8]
nop dword [rax + rax]
mov rax, qword [rdx]
cmp byte [rax + 0x35], r15b
je 0x1400124da
inc r9d
inc r8
add rdx, 8
cmp r8, r10
jl 0x1400124c0
jmp 0x1400124f9
movsxd rax, r9d
mov rax, qword [r11 + rax*8]
movups xmm0, xmmword [rax + 0x1c]
movups xmmword [rdi + 0x64], xmm0
movsd xmm1, qword [rax + 0x2c]
movsd qword [rdi + 0x74], xmm1
mov eax, dword [rax + 0x34]
mov dword [rdi + 0x7c], eax
test rcx, rcx
je 0x140012510
nop
or byte [rcx + 0xc8], 0x20
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140012500
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x14001252c
mov eax, dword [rdi + 0x10]
shr eax, 0xc
test al, 1
je 0x14001252c
call fcn.140002a60
mov qword [rdi + 0x40], r15
mov r9, qword [rdi + 0x18]
xor r8b, r8b
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rsi
test r9, r9
jne 0x140012695
test dword [rdi + 0x10], 0x400
jne 0x140012695
mov edx, dword [rdi + 0x30]
lea rsi, [rdi + 0x30]
cmp edx, 1
jg 0x140012585
cmp qword [rdi + 0x20], r15
jne 0x140012585
cmp byte [r14 + 0x7a], r8b
jne 0x140012585
test edx, edx
je 0x140012582
mov rax, qword [rdi + 0x38]
mov rcx, qword [rax]
cmp byte [rcx + 0x34], r8b
jne 0x140012585
mov r8b, 1
cmp dword [rdi + 0xa8], r15d
je 0x140012597
test r8b, r8b
je 0x140012699
cmp edx, 1
jne 0x140012637
mov rax, qword [rdi + 0x38]
mov rbx, qword [rax]
mov eax, dword [rdi + 0xc4]
and eax, 0xfffffebf
bts eax, 7
movsd xmm0, qword [rbx + 0x50]
and eax, 0xffffffd7
or eax, 0x10
movsd qword [rdi + 0x48], xmm0
movsd xmm1, qword [rbx + 0x60]
and eax, 0xfffffffa
or eax, 2
movsd qword [rdi + 0x50], xmm1
mov dword [rdi + 0xc4], eax
mov rax, qword [rdi + 0x88]
test rax, rax
je 0x1400125fb
cmp qword [r14 + 0x4a68], rax
jne 0x1400125fb
xor edx, edx
mov rcx, rbx
call fcn.1400174b0
mov rax, qword [rdi + 0x88]
test rax, rax
je 0x140012637
mov rdx, qword [rax + 0x38]
mov qword [rbx + 0x38], rdx
mov rax, qword [rdi + 0x88]
mov ecx, dword [rax + 0x40]
mov dword [rbx + 0x40], ecx
mov rax, qword [rdi + 0x88]
cmp byte [rax + 0xea], r15b
je 0x140012637
mov qword [rdx + 0x60], rbx
mov byte [rbx + 0xea], 1
mov rcx, rdi
call fcn.14000f780
movzx eax, byte [rdi + 0xc8]
and al, 0xbf
mov dword [rdi + 0x14], 1
and al, 0xe7
mov dword [rdi + 0xc0], r15d
test byte [rdi + 0xc9], 1
mov byte [rdi + 0xc8], al
mov eax, dword [r14 + 0x3f60]
mov dword [rdi + 0xb0], eax
je 0x140013087
cmp dword [rsi], 1
jne 0x140013087
mov rdx, qword [rdi + 0x38]
mov rcx, rdi
mov rdx, qword [rdx]
call fcn.140010f50
jmp 0x140013087
lea rsi, [rdi + 0x30]
movzx r8d, byte [rdi + 0xc8]
mov qword [rsp + 0xb0], r13
mov r13, rsi
test r8b, 1
je 0x14001274b
cmp qword [rdi + 0x88], r15
jne 0x14001274b
test r9, r9
jne 0x14001274b
test dword [rdi + 0x10], 0x400
jne 0x14001274b
cmp qword [rdi + 0x20], r15
jne 0x14001274b
mov r9d, dword [rdi + 0xbc]
test r9d, r9d
je 0x140012722
mov r10d, dword [rdi + 0x30]
lea r13, [rdi + 0x30]
mov ecx, r15d
test r10d, r10d
jle 0x140012722
mov r11, qword [rdi + 0x38]
mov rdx, r11
nop
mov rax, qword [rdx]
cmp dword [rax + 0x10], r9d
je 0x140012716
inc ecx
add rdx, 8
cmp ecx, r10d
jl 0x140012700
jmp 0x140012722
movsxd rax, ecx
mov rcx, qword [r11 + rax*8]
test rcx, rcx
jne 0x14001272d
mov rax, qword [rdi + 0x38]
lea r13, [rdi + 0x30]
mov rcx, qword [rax]
cmp byte [rcx + 0x108], r15b
jg 0x14001273f
cmp byte [rcx + 0x109], r15b
jle 0x14001274b
mov dword [rdi + 0x14], 2
jmp 0x14001307f
mov ecx, dword [r13]
mov qword [rsp + 0xf8], r12
mov r12d, dword [rdi + 0x10]
mov dword [rbp - 0x41], r12d
movaps xmmword [rsp + 0xa0], xmm6
test ecx, ecx
jle 0x140012786
bt r12d, 0xe
jb 0x140012786
and r8b, 0xf7
or r8b, 0x10
mov byte [rdi + 0xc8], r8b
mov r8d, r15d
jmp 0x14001279b
and r8b, 0xe7
mov eax, r12d
mov byte [rdi + 0xc8], r8b
mov r8d, r15d
test ecx, ecx
jle 0x1400127f2
mov r9, r15
nop
mov rax, qword [rdi + 0x38]
lea r9, [r9 + 8]
mov rdx, qword [r9 + rax - 8]
movzx eax, byte [rdi + 0xc8]
movzx ecx, byte [rdx + 0xf5]
shl cl, 3
or cl, al
and al, 0xf7
and cl, 8
xor cl, al
cmp dword [r13], 1
mov byte [rdi + 0xc8], cl
movzx eax, byte [rdx + 0x42d]
setg cl
and al, 0xfe
inc r8d
or cl, al
mov byte [rdx + 0x42d], cl
cmp r8d, dword [r13]
jl 0x1400127a0
mov eax, dword [rdi + 0x10]
bt r12d, 0xf
jae 0x140012800
and byte [rdi + 0xc8], 0xf7
shr eax, 0xa
mov rsi, r15
mov byte [rbp - 0x48], sil
test al, 1
je 0x14001281a
mov rsi, qword [rdi + 0x88]
jmp 0x140012ad2
mov rax, qword [rdi + 0x18]
test rax, rax
jne 0x140012a9d
test byte [rdi + 0xc8], 1
je 0x140012ab5
cmp dword [r13], esi
jle 0x140012843
mov rax, qword [rdi + 0x38]
mov rdx, qword [rax]
jmp 0x140012846
mov rdx, r15
mov eax, dword [rdi + 0xc4]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x140012871
test rdx, rdx
je 0x1400128a9
mov rax, qword [0x14025dfb0]
or dword [rax + 0x48e0], 1
movsd xmm0, qword [rdx + 0x50]
jmp 0x140012889
cmp eax, 1
jne 0x1400128a9
mov rax, qword [0x14025dfb0]
or dword [rax + 0x48e0], 1
movsd xmm0, qword [rdi + 0x48]
mov byte [rax + 0x491c], 1
mov dword [rax + 0x48e4], 1
mov qword [rax + 0x48fc], r15
movsd qword [rax + 0x48f4], xmm0
mov eax, dword [rdi + 0xc4]
shl eax, 0x1a
sar eax, 0x1d
cmp eax, 2
jne 0x1400128d4
test rdx, rdx
je 0x1400128fe
mov rax, qword [0x14025dfb0]
or dword [rax + 0x48e0], 2
movsd xmm0, qword [rdx + 0x60]
jmp 0x1400128ec
cmp eax, 1
jne 0x1400128fe
mov rax, qword [0x14025dfb0]
or dword [rax + 0x48e0], 2
movsd xmm0, qword [rdi + 0x50]
mov dword [rax + 0x48e8], 1
movsd qword [rax + 0x4904], xmm0
mov eax, dword [rdi + 0xc4]
and al, 0x38
cmp al, 0x10
jne 0x140012934
test rdx, rdx
je 0x140012934
mov rcx, qword [0x14025dfb0]
movzx eax, byte [rdx + 0xee]
or dword [rcx + 0x48e0], 8
mov byte [rcx + 0x491d], al
mov dword [rcx + 0x48ec], 1
mov eax, dword [rdi + 0xc4]
and eax, 0x1c0
cmp eax, 0x80
jne 0x140012965
test rdx, rdx
je 0x140012965
mov rax, qword [0x14025dfb0]
mov ecx, dword [rdx + 0x40]
or dword [rax + 0x48e0], 0x100
mov dword [rax + 0x4944], ecx
mov rcx, qword [0x14025dfb0]
lea r8, str.DockNode__02X
mov edx, 0x14
or dword [rcx + 0x48e0], 0x400
movups xmm0, xmmword [rdi + 0x64]
movups xmmword [rcx + 0x494c], xmm0
movsd xmm1, qword [rdi + 0x74]
movsd qword [rcx + 0x495c], xmm1
mov eax, dword [rdi + 0x7c]
mov dword [rcx + 0x4964], eax
lea rcx, [rbp - 9]
mov r9d, dword [rdi]
call fcn.140018c90
mov rax, qword [0x14025dfb0]
lea rdx, [rbp - 0x31]
mov dword [rbp - 0x31], 2
or dword [rax + 0x48e0], 0x40
mov dword [rax + 0x4940], r15d
mov rbx, qword [0x14025dfb0]
movss xmm1, dword [rbx + 0x38e8]
lea rcx, [rbx + 0x4980]
movss xmm0, dword [rbx + 0x38ec]
movss dword [rbp - 0x2d], xmm1
movss dword [rbp - 0x29], xmm0
call fcn.14002cfd0
xor edx, edx
mov qword [rbx + 0x38e8], r15
mov r8d, 0x20081139
lea rcx, [rbp - 9]
call fcn.1400066a0
mov ecx, 1
call fcn.1400207f0
mov rax, qword [rdi + 0x88]
mov rsi, qword [r14 + 0x4008]
mov byte [rbp - 0x48], 1
test rax, rax
je 0x140012a4a
cmp rax, rsi
je 0x140012a4a
cmp qword [rax + 0x450], rdi
jne 0x140012a4a
mov qword [rax + 0x450], r15
mov qword [rsi + 0x450], rdi
mov qword [rdi + 0x88], rsi
movss xmm0, dword [rsi + 0x50]
movss xmm1, dword [rsi + 0x54]
movss dword [rsi + 0x138], xmm0
movss dword [rsi + 0x13c], xmm1
mov rcx, qword [rdi + 0x88]
movss dword [rdi + 0x48], xmm0
movss dword [rdi + 0x4c], xmm1
movsd xmm0, qword [rsi + 0x58]
movsd qword [rdi + 0x50], xmm0
cmp byte [rcx + 0xf1], r15b
je 0x140012aab
call fcn.14000a790
jmp 0x140012aab
mov rsi, qword [rax + 0x88]
mov qword [rdi + 0x88], rsi
and dword [rdi + 0xc4], 0xfffffe00
test byte [rdi + 0xc9], 1
je 0x140012ad2
mov rdx, qword [rdi + 0x88]
test rdx, rdx
je 0x140012ad2
mov rcx, rdi
call fcn.140010f50
mov r8, qword [rdi + 0x18]
test r8, r8
jne 0x140012b53
mov rax, qword [r14 + 0x4a68]
test rax, rax
je 0x140012b39
mov rax, qword [rax + 0x3b8]
test rax, rax
je 0x140012b53
mov rdx, qword [rax + 0x448]
test rdx, rdx
je 0x140012b53
mov rax, qword [rdx + 0x18]
mov rcx, rdx
test rax, rax
je 0x140012b1c
nop dword [rax + rax]
mov rcx, rax
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x140012b10
cmp rcx, rdi
je 0x140012b42
mov rax, qword [rcx + 0x88]
test rax, rax
je 0x140012b39
mov rax, qword [rax + 0x3b8]
test rax, rax
jne 0x140012af3
mov rbx, qword [rdi + 0x98]
jmp 0x140012b63
mov eax, dword [rdx]
mov rbx, qword [rdi + 0x98]
mov dword [rdi + 0xb8], eax
jmp 0x140012b63
mov rbx, qword [rdi + 0x98]
test r8, r8
jne 0x140012d23
test rsi, rsi
je 0x140012d23
mov r14d, r12d
and r14d, 8
je 0x140012d23
test rbx, rbx
je 0x140012d23
cmp qword [rbx + 0x20], r15
jne 0x140012d23
cmp dword [rbx + 0x30], r15d
jne 0x140012d23
mov r12, qword [0x14025dfb0]
mov byte [rbp - 0x49], 1
cmp byte [r12 + 0x4c0c], r15b
je 0x140012bf3
cmp dword [r12 + 0x4c34], 0xffffffff
je 0x140012bf3
add r12, 0x4c20
je 0x140012bf3
cmp dword [r12 + 0x14], 0xffffffff
je 0x140012bf3
lea rdx, [r12 + 0x18]
lea rcx, str._IMWINDOW
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140012bf3
mov rdx, qword [r12]
mov rcx, rsi
mov rdx, qword [rdx]
call fcn.14000f7f0
test al, al
jne 0x140012d2e
mov rax, qword [rbx + 0x18]
mov rcx, rbx
movaps xmmword [rsp + 0x90], xmm7
test rax, rax
je 0x140012c1c
nop word [rax + rax]
mov rcx, rax
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x140012c10
movss xmm0, dword [rcx + 0x48]
movss xmm4, dword [rbx + 0x48]
movaps xmm6, xmm0
comiss xmm4, xmm0
movss xmm3, dword [rbx + 0x4c]
movaps xmm2, xmm4
movss xmm7, dword [rcx + 0x4c]
movaps xmm1, xmm3
addss xmm6, dword [rcx + 0x50]
addss xmm2, dword [rbx + 0x50]
addss xmm1, dword [rbx + 0x54]
addss xmm7, dword [rcx + 0x54]
movss xmm5, dword [0x140249cac]
jbe 0x140012c5e
addss xmm4, xmm5
comiss xmm6, xmm2
jbe 0x140012c67
subss xmm2, xmm5
comiss xmm3, dword [rcx + 0x4c]
jbe 0x140012c71
addss xmm3, xmm5
comiss xmm7, xmm1
movaps xmm7, xmmword [rsp + 0x90]
jbe 0x140012c82
subss xmm1, xmm5
comiss xmm4, xmm2
ja 0x140012d2e
comiss xmm3, xmm1
ja 0x140012d2e
mov rcx, qword [rsi + 0x3a8]
subss xmm1, xmm3
subss xmm2, xmm4
movaps xmm0, xmm4
cvttss2si r8d, xmm1
movaps xmm1, xmm3
mov word [rbp - 0x45], r8w
cvttss2si edx, xmm2
mov word [rbp - 0x47], dx
mov eax, dword [rbp - 0x47]
mov dword [rsi + 0x290], eax
subss xmm0, dword [rsi + 0x50]
subss xmm1, dword [rsi + 0x54]
cvttss2si eax, xmm0
mov word [rbp - 0x47], ax
cvttss2si eax, xmm1
mov word [rbp - 0x45], ax
mov eax, dword [rbp - 0x47]
mov dword [rsi + 0x294], eax
test rcx, rcx
je 0x140012d2e
mov word [rbp - 0x47], dx
mov word [rbp - 0x45], r8w
mov eax, dword [rbp - 0x47]
mov dword [rcx + 0x290], eax
subss xmm4, dword [rcx + 0x50]
subss xmm3, dword [rcx + 0x54]
cvttss2si eax, xmm4
mov word [rbp - 0x47], ax
cvttss2si eax, xmm3
mov word [rbp - 0x45], ax
mov eax, dword [rbp - 0x47]
mov dword [rcx + 0x294], eax
jmp 0x140012d2e
mov r14d, r12d
mov byte [rbp - 0x49], r15b
and r14d, 8
cmp qword [rdi + 0x18], r15
xorps xmm6, xmm6
mov r15d, r14d
jne 0x140012d60
test rsi, rsi
je 0x140012e49
mov r8, qword [rsi + 0x58]
xor r9d, r9d
mov rdx, qword [rsi + 0x50]
mov rcx, rdi
call fcn.140011840
mov rcx, rdi
call fcn.140011bb0
jmp 0x140012d69
test rsi, rsi
je 0x140012e49
cmp qword [rdi + 0x20], 0
jne 0x140012e46
cmp dword [r13], 0
jne 0x140012e46
test byte [rdi + 0xc8], 1
mov r15d, r14d
je 0x140012e49
mov rdx, qword [rsi + 0x2d8]
xor r8d, r8d
lea rcx, [rdx + 0xa8]
call fcn.1400375d0
mov r15d, dword [rbp - 0x41]
and r15d, 8
je 0x140012dc5
or byte [rdi + 0xc8], 4
mov dword [rdi + 0x80], 0
jmp 0x140012e49
mov rax, qword [0x14025dfb0]
lea rcx, [rbp - 0x31]
movups xmm0, xmmword [rax + 0x3c2c]
movups xmmword [rbp - 0x31], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x38e0]
movss dword [rbp - 0x25], xmm0
call fcn.14000be50
mov dword [rdi + 0x80], eax
test eax, eax
je 0x140012e3d
movss xmm0, dword [rdi + 0x50]
lea rdx, [rdi + 0x48]
movss xmm1, dword [rdi + 0x54]
lea r8, [rbp - 0x41]
addss xmm0, dword [rdx]
addss xmm1, dword [rdx + 4]
mov rcx, qword [rsi + 0x2d8]
mov r9d, eax
mov dword [rsp + 0x28], 0
movss dword [rsp + 0x20], xmm6
movss dword [rbp - 0x41], xmm0
movss dword [rbp - 0x3d], xmm1
call fcn.140030590
or byte [rdi + 0xc8], 4
jmp 0x140012e49
mov r15d, r14d
mov r12, qword [rsp + 0xf8]
test rsi, rsi
je 0x140012fa7
cmp qword [rdi + 0x18], 0
jne 0x140012f7a
test r15d, r15d
je 0x140012f7a
test byte [rdi + 0xc8], 1
je 0x140012f7a
mov rdx, qword [rsi + 0x2d8]
xor r8d, r8d
lea rcx, [rdx + 0xa8]
call fcn.1400375d0
cmp byte [rbp - 0x49], 0
lea rcx, [rbp - 0x19]
mov rax, qword [0x14025dfb0]
movups xmm0, xmmword [rax + 0x39dc]
movups xmmword [rbp - 0x19], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x38e0]
movss dword [rbp - 0xd], xmm0
je 0x140012f32
movss xmm0, dword [rbx + 0x48]
movss xmm1, dword [rbx + 0x4c]
movss dword [rbp - 0x31], xmm0
addss xmm0, dword [rbx + 0x50]
movss dword [rbp - 0x2d], xmm1
addss xmm1, dword [rbx + 0x54]
movss dword [rbp - 0x29], xmm0
movss xmm0, dword [rdi + 0x48]
movss dword [rbp - 0x25], xmm1
movss xmm1, dword [rdi + 0x4c]
movss dword [rbp - 0x41], xmm0
addss xmm0, dword [rdi + 0x50]
movss dword [rbp - 0x3d], xmm1
addss xmm1, dword [rdi + 0x54]
movss dword [rbp - 0x39], xmm0
movss dword [rbp - 0x35], xmm1
call fcn.14000be50
mov rcx, qword [rsi + 0x2d8]
lea r8, [rbp - 0x31]
mov r9d, eax
movss dword [rsp + 0x20], xmm6
lea rdx, [rbp - 0x41]
call fcn.140036a40
jmp 0x140012f7a
movss xmm0, dword [rdi + 0x48]
movss xmm1, dword [rdi + 0x4c]
addss xmm0, dword [rdi + 0x50]
addss xmm1, dword [rdi + 0x54]
movss dword [rbp - 0x41], xmm0
movss dword [rbp - 0x3d], xmm1
call fcn.14000be50
mov rcx, qword [rsi + 0x2d8]
lea r8, [rbp - 0x41]
mov r9d, eax
mov dword [rsp + 0x28], 0
lea rdx, [rdi + 0x48]
movss dword [rsp + 0x20], xmm6
call fcn.140030590
mov rdx, qword [rsi + 0x2d8]
mov r8d, 1
lea rcx, [rdx + 0xa8]
call fcn.1400375d0
cmp dword [r13], 0
jle 0x140012fa7
mov rdx, rsi
mov rcx, rdi
call fcn.140013390
jmp 0x140012fc2
movzx eax, byte [rdi + 0xc8]
and al, 0xbf
mov dword [rdi + 0xc0], 0
and al, 0xfd
mov byte [rdi + 0xc8], al
mov rax, qword [rdi + 0x40]
movaps xmm6, xmmword [rsp + 0xa0]
test rax, rax
je 0x140012fda
mov eax, dword [rax + 0x18]
test eax, eax
jne 0x140012fee
cmp dword [r13], 0
jle 0x140012ff4
mov rax, qword [rdi + 0x38]
mov rcx, qword [rax]
mov eax, dword [rcx + 0xb0]
mov dword [rdi + 0xbc], eax
mov rbx, qword [rbp - 0x21]
test rsi, rsi
je 0x140013038
test byte [rdi + 0xc8], 1
je 0x140013038
cmp qword [rdi + 0x18], 0
jne 0x140013038
mov rax, qword [rbx + 0x4020]
test rax, rax
je 0x140013022
cmp qword [rax + 0x3c8], rsi
je 0x140013038
mov rcx, rsi
call fcn.140009500
mov eax, dword [rbx + 0x3f60]
mov dword [rdi + 0xb0], eax
jmp 0x140013049
mov eax, dword [rbx + 0x3f60]
mov dword [rdi + 0xb0], eax
test rsi, rsi
je 0x140013074
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140013057
call fcn.140012350
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x140013065
call fcn.140012350
cmp qword [rdi + 0x18], 0
jne 0x140013074
mov rcx, rsi
call fcn.140024510
cmp byte [rbp - 0x48], 0
je 0x14001307f
call fcn.140015190
mov r13, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.14008fde0
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rbp
ret