Function at 0x140021220
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140153080]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, qword [0x140433558]
xor r15d, r15d
mov rdi, rcx
mov qword [rbp - 0x39], rsi
mov r14, rsi
mov eax, dword [rsi + 0x1b18]
and byte [rcx + 0xb5], 0xfb
mov dword [rcx + 0x98], eax
mov qword [rcx + 0x90], r15
mov qword [rcx + 0x88], r15
cmp qword [rcx + 0x10], r15
jne 0x1400213c0
call fcn.140020fe0
mov edx, r15d
mov ecx, r15d
mov qword [rbp - 0x11], rdx
mov dword [rbp - 9], ecx
cmp dword [rdi + 0x28], r15d
jle 0x1400212a8
mov rdx, rdi
mov ecx, 1
mov qword [rbp - 0x11], rdx
mov dword [rbp - 9], ecx
mov eax, dword [rdi + 8]
shr eax, 0xb
test al, 1
mov rax, r15
cmovne rax, rdi
mov qword [rbp - 0x19], rax
cmp ecx, 1
jle 0x1400212c5
test rax, rax
jne 0x140021305
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x1400212e5
lea rdx, [rbp - 0x19]
mov rcx, r8
call fcn.140020f70
mov ecx, dword [rbp - 9]
mov rdx, qword [rbp - 0x11]
mov rax, qword [rbp - 0x19]
mov r8, qword [rdi + 0x20]
test r8, r8
je 0x140021305
lea rdx, [rbp - 0x19]
mov rcx, r8
call fcn.140020f70
mov ecx, dword [rbp - 9]
mov rdx, qword [rbp - 0x11]
mov rax, qword [rbp - 0x19]
mov qword [rdi + 0x88], rax
cmp ecx, 1
mov rax, r15
cmove rax, rdx
mov qword [rdi + 0x90], rax
cmp dword [rdi + 0xa4], r15d
jne 0x140021337
test rdx, rdx
je 0x1400213b9
mov eax, dword [rdx]
mov dword [rdi + 0xa4], eax
test rdx, rdx
je 0x1400213b9
mov rax, qword [rdx + 0x30]
mov r8d, 1
mov rcx, qword [rax]
movups xmm0, xmmword [rcx + 0x14]
movups xmmword [rdi + 0x5c], xmm0
movsd xmm1, qword [rcx + 0x24]
movsd qword [rdi + 0x6c], xmm1
mov eax, dword [rcx + 0x2c]
mov dword [rdi + 0x74], eax
movsxd rax, dword [rdx + 0x28]
cmp eax, r8d
jle 0x1400213b9
mov r10, qword [rdx + 0x30]
mov r9, rax
mov edx, r8d
lea rcx, [r10 + 8]
nop dword [rax + rax]
mov rax, qword [rcx]
cmp byte [rax + 0x2d], r15b
je 0x14002139a
inc r8d
inc rdx
add rcx, 8
cmp rdx, r9
jl 0x140021380
jmp 0x1400213b9
movsxd rax, r8d
mov rcx, qword [r10 + rax*8]
movups xmm0, xmmword [rcx + 0x14]
movups xmmword [rdi + 0x5c], xmm0
movsd xmm1, qword [rcx + 0x24]
movsd qword [rdi + 0x6c], xmm1
mov eax, dword [rcx + 0x2c]
mov dword [rdi + 0x74], eax
mov rsi, qword [0x140433558]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400213e3
mov eax, dword [rdi + 8]
shr eax, 0xc
test al, 1
je 0x1400213e3
call fcn.140028140
mov rsi, qword [0x140433558]
mov qword [rdi + 0x38], r15
mov r9d, dword [rdi + 0x28]
mov qword [rsp + 0xf8], rbx
cmp r9d, 1
jg 0x1400215b9
cmp qword [rdi + 0x10], r15
jne 0x1400215b9
test dword [rdi + 8], 0x400
jne 0x1400215b9
cmp qword [rdi + 0x18], r15
jne 0x1400215b9
cmp byte [r14 + 0xca], r15b
jne 0x1400215b9
test r9d, r9d
je 0x1400214dd
mov rax, qword [rdi + 0x30]
mov rcx, qword [rax]
cmp byte [rcx + 0x2c], r15b
jne 0x1400215b9
cmp r9d, 1
jne 0x1400214dd
mov rbx, qword [rax]
mov eax, dword [rdi + 0xb0]
mov rcx, qword [rdi + 0x78]
and eax, 0xfffffebf
bts eax, 7
movsd xmm0, qword [rbx + 0x48]
and eax, 0xffffffd7
or eax, 0x10
movsd qword [rdi + 0x40], xmm0
movsd xmm1, qword [rbx + 0x58]
and eax, 0xfffffffa
or eax, 2
movsd qword [rdi + 0x48], xmm1
mov dword [rdi + 0xb0], eax
mov rax, rcx
test rcx, rcx
je 0x1400214ab
cmp qword [r14 + 0x1d70], rcx
jne 0x1400214b0
mov rcx, rbx
call fcn.140016360
mov rax, qword [rdi + 0x78]
mov rsi, qword [0x140433558]
test rax, rax
je 0x1400214dd
mov rdx, qword [rax + 0x30]
mov qword [rbx + 0x30], rdx
mov rax, qword [rdi + 0x78]
mov ecx, dword [rax + 0x38]
mov dword [rbx + 0x38], ecx
mov rax, qword [rdi + 0x78]
cmp byte [rax + 0xbe], r15b
je 0x1400214dd
mov qword [rdx + 0x98], rbx
mov byte [rbx + 0xbe], 1
mov rax, qword [rdi + 0x78]
test rax, rax
je 0x1400214fa
cmp qword [rax + 0x450], rdi
jne 0x1400214f6
mov qword [rax + 0x450], r15
mov qword [rdi + 0x78], r15
cmp dword [rdi + 0x28], 1
jne 0x140021518
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov qword [rdi + 0x80], rax
mov rax, qword [rcx]
and byte [rax + 0x472], 0xfe
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140021531
call fcn.140028140
mov rsi, qword [0x140433558]
mov qword [rdi + 0x38], r15
movzx eax, byte [rdi + 0xb4]
and al, 0xdf
mov dword [rdi + 0xc], 1
and al, 0xe3
mov dword [rdi + 0xac], r15d
mov byte [rdi + 0xb4], al
mov eax, dword [r14 + 0x1b18]
mov dword [rdi + 0x9c], eax
jge 0x140021eff
cmp dword [rdi + 0x28], 1
jne 0x140021eff
mov rax, qword [rdi + 0x30]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.14000b6f0
movss xmm1, dword [rsi + 0x3c8]
movss xmm0, dword [rsi + 0x3cc]
subss xmm1, dword [rdi + 0x40]
subss xmm0, dword [rdi + 0x44]
mov qword [rsi + 0x1bb8], rbx
movss dword [rsi + 0x1c10], xmm1
movss dword [rsi + 0x1c14], xmm0
and byte [rdi + 0xb4], 0x7f
jmp 0x140021eff
movzx ecx, byte [rdi + 0xb4]
test cl, 1
je 0x140021647
cmp qword [rdi + 0x78], r15
jne 0x140021647
cmp qword [rdi + 0x10], r15
jne 0x140021647
test dword [rdi + 8], 0x400
jne 0x140021647
cmp qword [rdi + 0x18], r15
jne 0x140021647
mov r10d, dword [rdi + 0xa8]
test r10d, r10d
je 0x140021622
mov edx, r15d
test r9d, r9d
jle 0x140021622
mov r11, qword [rdi + 0x30]
mov r8, r11
nop
mov rax, qword [r8]
cmp dword [rax + 8], r10d
je 0x140021616
inc edx
add r8, 8
cmp edx, r9d
jl 0x140021600
jmp 0x140021622
movsxd rax, edx
mov rdx, qword [r11 + rax*8]
test rdx, rdx
jne 0x140021629
mov rax, qword [rdi + 0x30]
mov rdx, qword [rax]
cmp byte [rdx + 0xd4], r15b
jg 0x14002163b
cmp byte [rdx + 0xd5], r15b
jle 0x140021647
mov dword [rdi + 0xc], 2
jmp 0x140021eff
mov eax, dword [rdi + 8]
and cl, 0xef
mov qword [rsp + 0x100], r12
mov rbx, r15
mov r12d, eax
movaps xmmword [rsp + 0xb0], xmm6
or r12d, dword [rdi + 4]
shr eax, 0xa
mov byte [rbp - 0x58], bl
test al, 1
je 0x1400216a2
mov rbx, qword [rdi + 0x78]
mov eax, r12d
shr eax, 0xf
shl al, 2
not al
xor al, cl
and al, 4
xor cl, al
mov eax, r12d
shr eax, 0xe
shl al, 3
not al
xor al, cl
and al, 8
xor al, cl
mov byte [rdi + 0xb4], al
jmp 0x140021a1b
test r9d, r9d
jle 0x1400216b6
bt r12d, 0xf
jb 0x1400216b6
or cl, 4
movzx eax, cl
jmp 0x1400216c1
and cl, 0xfb
movzx eax, cl
test r9d, r9d
jle 0x1400216d2
bt r12d, 0xe
jb 0x1400216d2
or al, 8
mov byte [rdi + 0xb4], al
jmp 0x1400216e0
and cl, 0xf7
mov byte [rdi + 0xb4], cl
test r9d, r9d
jle 0x14002173e
mov r8, r15
mov r9d, r15d
nop word [rax + rax]
mov rax, qword [rdi + 0x30]
lea r8, [r8 + 8]
cmp dword [rdi + 0x28], 1
setg cl
inc r9d
mov rdx, qword [r8 + rax - 8]
movzx eax, byte [rdx + 0x472]
and al, 0xfe
or cl, al
mov byte [rdx + 0x472], cl
movzx eax, byte [rdi + 0xb4]
movzx ecx, byte [rdx + 0xc8]
shl cl, 4
or cl, al
xor cl, al
and cl, 0x10
xor cl, al
mov byte [rdi + 0xb4], cl
cmp r9d, dword [rdi + 0x28]
jl 0x1400216f0
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x1400219b1
test cl, 1
je 0x1400219ac
cmp dword [rdi + 0x28], ebx
jle 0x140021762
mov rax, qword [rdi + 0x30]
mov rcx, qword [rax]
jmp 0x140021765
mov rcx, r15
mov eax, dword [rdi + 0xb0]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x140021789
test rcx, rcx
je 0x1400217b9
or dword [rsi + 0x1c40], 1
movsd xmm0, qword [rcx + 0x48]
jmp 0x140021799
cmp eax, 1
jne 0x1400217b9
or dword [rsi + 0x1c40], eax
movsd xmm0, qword [rdi + 0x40]
mov byte [rsi + 0x1c7c], 1
mov dword [rsi + 0x1c44], 1
mov qword [rsi + 0x1c5c], r15
movsd qword [rsi + 0x1c54], xmm0
mov eax, dword [rdi + 0xb0]
shl eax, 0x1a
sar eax, 0x1d
cmp eax, 2
jne 0x1400217dc
test rcx, rcx
je 0x1400217ff
or dword [rsi + 0x1c40], eax
movsd xmm0, qword [rcx + 0x58]
jmp 0x1400217ed
cmp eax, 1
jne 0x1400217ff
or dword [rsi + 0x1c40], 2
movsd xmm0, qword [rdi + 0x48]
mov dword [rsi + 0x1c48], 1
movsd qword [rsi + 0x1c64], xmm0
mov edx, dword [rdi + 0xb0]
mov eax, edx
and al, 0x38
cmp al, 0x10
jne 0x140021836
test rcx, rcx
je 0x140021836
movzx eax, byte [rcx + 0xc2]
or dword [rsi + 0x1c40], 8
mov byte [rsi + 0x1c7d], al
mov dword [rsi + 0x1c4c], 1
mov edx, dword [rdi + 0xb0]
and edx, 0x1c0
cmp edx, 0x80
jne 0x14002185c
test rcx, rcx
je 0x14002185c
mov eax, dword [rcx + 0x38]
or dword [rsi + 0x1c40], 0x100
mov dword [rsi + 0x1ca4], eax
or dword [rsi + 0x1c40], 0x400
lea r8, str.DockNode__02X
movups xmm0, xmmword [rdi + 0x5c]
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rbp - 1]
movups xmmword [rsi + 0x1cac], xmm0
movsd xmm1, qword [rdi + 0x6c]
movsd qword [rsi + 0x1cbc], xmm1
mov eax, dword [rdi + 0x74]
mov dword [rsi + 0x1cc4], eax
mov r9d, dword [rdi]
call fcn.140008910
mov rbx, qword [0x140433558]
lea rdx, [rbp - 0x49]
mov dword [rbp - 0x49], 1
movss xmm1, dword [rbx + 0x1644]
lea rcx, [rbx + 0x1cf8]
movss xmm0, dword [rbx + 0x1648]
movss dword [rbp - 0x45], xmm1
movss dword [rbp - 0x41], xmm0
call fcn.1400278a0
xor edx, edx
mov qword [rbx + 0x1644], r15
mov r8d, 0x20081139
lea rcx, [rbp - 1]
call fcn.1400131c0
mov rsi, qword [0x140433558]
movsxd rax, dword [rsi + 0x1cf8]
mov rdx, qword [rsi + 0x1d00]
lea rcx, [rax + rax*2]
movsxd rax, dword [rdx + rcx*4 - 0xc]
lea r9, [rax + rax*2]
lea rax, [0x1400d17d0]
cmp dword [rax + r9*4], 8
mov r8d, dword [rax + r9*4 + 8]
jne 0x140021959
mov eax, dword [rax + r9*4 + 4]
cmp eax, 1
jne 0x14002193c
mov eax, dword [rdx + rcx*4 - 8]
mov dword [r8 + rsi + 0x1640], eax
jmp 0x140021959
cmp eax, 2
jne 0x140021959
mov eax, dword [rdx + rcx*4 - 8]
mov dword [r8 + rsi + 0x1640], eax
mov eax, dword [rdx + rcx*4 - 4]
mov dword [r8 + rsi + 0x1644], eax
dec dword [rsi + 0x1cf8]
mov rbx, qword [r14 + 0x1b90]
mov qword [rdi + 0x78], rbx
mov byte [rbp - 0x58], 1
movsd xmm0, qword [rbx + 0x48]
movsd qword [rbx + 0x118], xmm0
mov qword [rbx + 0x450], rdi
mov rcx, qword [rdi + 0x78]
movsd qword [rdi + 0x40], xmm0
movsd xmm0, qword [rbx + 0x50]
movsd qword [rdi + 0x48], xmm0
cmp byte [rcx + 0xc5], r15b
je 0x1400219a3
call fcn.1400162b0
movzx ecx, byte [rdi + 0xb4]
jmp 0x1400219b9
test rax, rax
je 0x1400219c3
mov rbx, qword [rax + 0x78]
mov qword [rdi + 0x78], rbx
and dword [rdi + 0xb0], 0xfffffe00
test cl, cl
jns 0x140021a1b
mov r14, qword [rdi + 0x78]
test r14, r14
je 0x140021a17
mov rcx, r14
call fcn.14000b6f0
movss xmm1, dword [rsi + 0x3c8]
movss xmm0, dword [rsi + 0x3cc]
subss xmm1, dword [rdi + 0x40]
subss xmm0, dword [rdi + 0x44]
mov qword [rsi + 0x1bb8], r14
movss dword [rsi + 0x1c10], xmm1
movss dword [rsi + 0x1c14], xmm0
and byte [rdi + 0xb4], 0x7f
mov rsi, qword [0x140433558]
mov r14, qword [rbp - 0x39]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
jne 0x140021a9f
mov rax, qword [r14 + 0x1d70]
test rax, rax
je 0x140021a54
mov rdx, qword [rax + 0x3f0]
mov rax, qword [rdx + 0x448]
test rax, rax
je 0x140021a54
cmp qword [rdx + 0x3e0], rbx
jne 0x140021a54
mov eax, dword [rax]
mov dword [rdi + 0xa4], eax
test rbx, rbx
je 0x140021a9f
mov r15d, r12d
and r15d, 8
je 0x140021a9f
mov rdx, qword [rbx + 0x318]
mov byte [rbp - 0x59], 1
lea rcx, [rdx + 0xa8]
call fcn.140032310
mov rdx, qword [rbx + 0x318]
mov r8d, 1
lea rcx, [rdx + 0xa8]
call fcn.1400328a0
mov rcx, qword [rdi + 0x10]
mov rsi, qword [0x140433558]
jmp 0x140021aaa
mov r15d, r12d
mov byte [rbp - 0x59], 0
and r15d, 8
mov r14, qword [rdi + 0x88]
xorps xmm6, xmm6
mov qword [rsp + 0x108], r13
test rcx, rcx
jne 0x140021c22
test rbx, rbx
je 0x140021c22
test r15d, r15d
je 0x140021c22
test r14, r14
je 0x140021c22
cmp qword [r14 + 0x18], rcx
jne 0x140021c22
cmp dword [r14 + 0x28], ecx
jne 0x140021c22
cmp byte [rsi + 0x1ef4], cl
lea r12, [rsi + 0x1f08]
mov r13b, 1
mov rax, rcx
cmove r12, rcx
test r12, r12
je 0x140021b44
cmp dword [r12 + 0x14], 0xffffffff
je 0x140021b44
lea rdx, [r12 + 0x18]
lea rcx, str._IMWINDOW
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140021b44
mov rdx, qword [r12]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.140023020
test al, al
jne 0x140021c25
movss xmm2, dword [r14 + 0x40]
movss xmm1, dword [r14 + 0x44]
movaps xmm4, xmm2
addss xmm2, dword [r14 + 0x48]
subss xmm4, dword [0x140140160]
movaps xmm3, xmm1
addss xmm1, dword [r14 + 0x4c]
subss xmm3, dword [0x140140160]
subss xmm2, dword [0x140140044]
subss xmm1, dword [0x140140044]
comiss xmm4, xmm2
ja 0x140021c1c
comiss xmm3, xmm1
ja 0x140021c1c
mov rcx, qword [rbx + 0x3e0]
subss xmm1, xmm3
subss xmm2, xmm4
movaps xmm0, xmm4
cvttss2si edx, xmm1
cvttss2si r8d, xmm2
mov word [rbp - 0x47], dx
movaps xmm1, xmm3
mov word [rbp - 0x49], r8w
mov eax, dword [rbp - 0x49]
mov dword [rbx + 0x2d0], eax
subss xmm0, dword [rbx + 0x48]
subss xmm1, dword [rbx + 0x4c]
cvttss2si eax, xmm0
mov word [rbp - 0x49], ax
cvttss2si eax, xmm1
mov word [rbp - 0x47], ax
mov eax, dword [rbp - 0x49]
mov dword [rbx + 0x2d4], eax
mov word [rbp - 0x49], r8w
mov word [rbp - 0x47], dx
mov eax, dword [rbp - 0x49]
mov dword [rcx + 0x2d0], eax
subss xmm4, dword [rcx + 0x48]
subss xmm3, dword [rcx + 0x4c]
cvttss2si eax, xmm4
mov word [rbp - 0x49], ax
cvttss2si eax, xmm3
mov word [rbp - 0x47], ax
mov eax, dword [rbp - 0x49]
mov dword [rcx + 0x2d4], eax
mov rax, qword [rdi + 0x10]
jmp 0x140021c32
xor r13b, r13b
mov rax, qword [rdi + 0x10]
test rbx, rbx
je 0x140021cdc
test rax, rax
jne 0x140021c59
mov r8, qword [rbx + 0x50]
xor r9d, r9d
mov rdx, qword [rbx + 0x48]
mov rcx, rdi
call fcn.1400248e0
mov rcx, rdi
call fcn.140024ca0
mov rsi, qword [0x140433558]
cmp qword [rdi + 0x18], 0
jne 0x140021cdc
cmp dword [rdi + 0x28], 0
jne 0x140021cdc
test byte [rdi + 0xb4], 1
je 0x140021cdc
test r15d, r15d
jne 0x140021cdc
movups xmm0, xmmword [rsi + 0x196c]
lea rcx, [rbp - 0x29]
movss xmm1, dword [rdi + 0x4c]
addss xmm1, dword [rdi + 0x44]
movups xmmword [rbp - 0x29], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rsi + 0x1640]
movss dword [rbp - 0x45], xmm1
movss dword [rbp - 0x1d], xmm0
movss xmm0, dword [rdi + 0x40]
addss xmm0, dword [rdi + 0x48]
movss dword [rbp - 0x49], xmm0
call fcn.140008fd0
mov rcx, qword [rbx + 0x318]
lea rdx, [rdi + 0x40]
mov r9d, eax
mov dword [rsp + 0x28], reloc.WS2_32.dll_ntohs
lea r8, [rbp - 0x49]
movss dword [rsp + 0x20], xmm6
call fcn.140031d30
cmp byte [rbp - 0x59], 0
mov r12, qword [rsp + 0x100]
je 0x140021e0b
test byte [rdi + 0xb4], 1
je 0x140021e0b
mov rdx, qword [rbx + 0x318]
xor r8d, r8d
lea rcx, [rdx + 0xa8]
call fcn.1400328a0
mov rax, qword [0x140433558]
lea rcx, [rbp - 0x19]
movups xmm0, xmmword [rax + 0x171c]
movups xmmword [rbp - 0x19], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x1640]
movss dword [rbp - 0xd], xmm0
movss xmm0, dword [rdi + 0x40]
test r13b, r13b
je 0x140021db5
movss xmm1, dword [r14 + 0x40]
movss xmm2, dword [r14 + 0x44]
movss xmm3, dword [rdi + 0x44]
movss dword [rbp - 0x49], xmm1
addss xmm1, dword [r14 + 0x48]
movss dword [rbp - 0x45], xmm2
addss xmm2, dword [r14 + 0x4c]
movss dword [rbp - 0x25], xmm3
addss xmm3, dword [rdi + 0x4c]
movss dword [rbp - 0x29], xmm0
addss xmm0, dword [rdi + 0x48]
movss dword [rbp - 0x41], xmm1
movss dword [rbp - 0x3d], xmm2
movss dword [rbp - 0x1d], xmm3
movss dword [rbp - 0x21], xmm0
call fcn.140008fd0
mov rcx, qword [rbx + 0x318]
lea rdx, [rbp - 0x29]
mov r9d, eax
movss dword [rsp + 0x20], xmm6
lea r8, [rbp - 0x49]
call fcn.1400370f0
jmp 0x140021df8
movss xmm1, dword [rdi + 0x4c]
addss xmm1, dword [rdi + 0x44]
addss xmm0, dword [rdi + 0x48]
movss dword [rbp - 0x45], xmm1
movss dword [rbp - 0x49], xmm0
call fcn.140008fd0
mov rcx, qword [rbx + 0x318]
lea rdx, [rdi + 0x40]
mov r9d, eax
mov dword [rsp + 0x28], reloc.WS2_32.dll_ntohs
lea r8, [rbp - 0x49]
movss dword [rsp + 0x20], xmm6
call fcn.140031d30
mov rdx, qword [rbx + 0x318]
lea rcx, [rdx + 0xa8]
call fcn.1400324f0
movaps xmm6, xmmword [rsp + 0xb0]
mov r13, qword [rsp + 0x108]
test rbx, rbx
je 0x140021e33
cmp dword [rdi + 0x28], 0
jle 0x140021e33
mov rdx, rbx
mov rcx, rdi
call fcn.140022150
jmp 0x140021e4e
movzx eax, byte [rdi + 0xb4]
and al, 0xdf
mov dword [rdi + 0xac], 0
and al, 0xfd
mov byte [rdi + 0xb4], al
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x140021e5e
mov eax, dword [rax + 0x18]
test eax, eax
jne 0x140021e6e
cmp dword [rdi + 0x28], 0
jle 0x140021e74
mov rax, qword [rdi + 0x30]
mov rcx, qword [rax]
mov eax, dword [rcx + 8]
mov dword [rdi + 0xa8], eax
mov rsi, qword [rbp - 0x39]
test rbx, rbx
je 0x140021eb8
test byte [rdi + 0xb4], 1
je 0x140021eb8
cmp qword [rdi + 0x10], 0
jne 0x140021eb8
mov rax, qword [rsi + 0x1bb8]
test rax, rax
je 0x140021ea2
cmp qword [rax + 0x3e8], rbx
je 0x140021eb8
mov rcx, rbx
call fcn.140025dd0
mov eax, dword [rsi + 0x1b18]
mov dword [rdi + 0x9c], eax
jmp 0x140021ec9
mov eax, dword [rsi + 0x1b18]
mov dword [rdi + 0x9c], eax
test rbx, rbx
je 0x140021ef4
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140021ed7
call fcn.140021220
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140021ee5
call fcn.140021220
cmp qword [rdi + 0x10], 0
jne 0x140021ef4
mov rcx, rbx
call fcn.140011d50
cmp byte [rbp - 0x58], 0
je 0x140021eff
call fcn.1400160e0
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400bd4c0
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret