Function at 0x14004476c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x258]
sub rsp, 0x320
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
mov rax, qword [0x140103040]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov dword [rsp + 0x6c], r8d
mov rdi, rdx
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rcx
mov rcx, rdx
call fcn.140041dac
xor r12d, r12d
mov qword [rdi + 8], r12
mov qword [rdi + 0x40], r12
mov qword [rdi + 0x48], r12
mov qword [rdi + 0x50], r12
mov rcx, rdi
call fcn.14003f260
mov byte [rsp + 0x68], r12b
mov dword [rbp - 0xc], r12d
mov r15d, r12d
mov qword [rbp - 0x40], r12
mov qword [rbp - 8], r12
mov dword [rbp - 0x1c], r12d
mov r14d, r12d
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x18], r12
mov r13d, dword [rdi + 0x78]
mov dword [rbp - 0x78], r13d
lea eax, [r12 + 8]
lea ebx, [rax - 7]
test r13d, r13d
jle 0x140044869
mov esi, r13d
cmp r13d, eax
cmovl esi, eax
test esi, esi
jle 0x140044869
mov rax, qword [0x1401047e0]
test rax, rax
je 0x140044849
add dword [rax + 0xf4], ebx
movsxd rax, esi
imul rcx, rax, 0x70
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], esi
mov eax, 8
mov dword [rbp - 0x10], r13d
mov r12d, dword [rdi + 0x58]
mov dword [rbp - 0x80], r12d
test r12d, r12d
jle 0x1400448b4
mov esi, r12d
cmp r12d, eax
cmovl esi, eax
test esi, esi
jle 0x1400448b4
mov rax, qword [0x1401047e0]
test rax, rax
je 0x140044899
add dword [rax + 0xf4], ebx
movsxd rcx, esi
shl rcx, 5
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x1c], esi
mov dword [rbp - 0x20], r12d
imul ecx, r13d, 0x70
movsxd r8, ecx
xor edx, edx
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov ecx, r12d
shl ecx, 5
movsxd r8, ecx
xor edx, edx
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_memset]
xor r10d, r10d
mov dword [rsp + 0x70], r10d
or r11d, 0xffffffff
cmp dword [rdi + 0x78], r10d
jle 0x140044a06
mov ecx, r10d
mov qword [rsp + 0x78], rcx
lea rsi, [r15 + 0x44]
mov r14, qword [rdi + 0x80]
add r14, rcx
mov dword [rsi - 4], r11d
mov r8d, r10d
cmp dword [rdi + 0x58], r10d
jle 0x140044a4e
mov edx, r11d
mov r9, r10
mov eax, edx
cmp edx, r11d
jne 0x140044952
mov edx, r11d
mov rax, qword [rdi + 0x60]
mov rcx, qword [r9 + rax]
cmp qword [r14 + 0x80], rcx
jne 0x140044943
mov dword [rsi - 4], r8d
mov edx, r8d
add r8d, ebx
add r9, 8
mov eax, edx
cmp r8d, dword [rdi + 0x58]
jl 0x140044921
cmp eax, r11d
je 0x140044a4e
lea rcx, [rsi - 0x44]
mov r9d, dword [rsp + 0x6c]
mov r8, r14
mov rdx, qword [rbp - 0x48]
call fcn.140044054
xor r10d, r10d
test al, al
je 0x140044a4e
mov eax, dword [r14 + 0x4c]
shr eax, 8
and al, bl
or byte [rsp + 0x68], al
movsxd rdx, dword [rsi - 4]
shl rdx, 5
add rdx, qword [rbp - 0x70]
lea rcx, [0x1400efcd4]
cmp qword [r14 + 0x38], r10
cmovne rcx, qword [r14 + 0x38]
mov qword [rsi - 0xc], rcx
jmp 0x1400449c0
cmp word [rcx + 2], r10w
je 0x1400449c6
movzx eax, word [rcx + 2]
cmp dword [rsi], eax
cmovge eax, dword [rsi]
mov dword [rsi], eax
add rcx, 4
cmp word [rcx], r10w
jne 0x1400449aa
add dword [rdx], ebx
mov eax, dword [rsi]
cmp dword [rdx + 4], eax
cmovge eax, dword [rdx + 4]
mov dword [rdx + 4], eax
mov edx, dword [rsp + 0x70]
add edx, ebx
mov dword [rsp + 0x70], edx
add rsi, 0x70
mov rcx, qword [rsp + 0x78]
add rcx, 0x88
mov qword [rsp + 0x78], rcx
cmp edx, dword [rdi + 0x78]
mov r11d, 0xffffffff
jl 0x140044900
mov r14, qword [rbp - 0x70]
mov dword [rsp + 0x64], r10d
test r13d, r13d
jle 0x140044cf1
lea rsi, [r15 + 0x58]
mov qword [rsp + 0x78], r13
mov edi, r10d
movsxd r15, dword [rsi - 0x18]
shl r15, 5
add r15, r14
mov r14d, dword [rsi - 0x14]
add r14d, 0x20
sar r14d, 5
mov ecx, dword [rsi - 4]
cmp r14d, ecx
jle 0x140044a72
test ecx, ecx
je 0x140044a56
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140044a5b
mov bl, r10b
jmp 0x140045799
mov eax, 8
lea r12, [rsi - 8]
mov edx, r14d
cmp eax, r14d
cmovg edx, eax
mov rcx, r12
call fcn.140031f54
jmp 0x140044a76
lea r12, [rsi - 8]
mov dword [r12], r14d
movsxd r8, r14d
shl r8, 2
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea r12, [r15 + 0x10]
xor r10d, r10d
cmp dword [r12], r10d
jne 0x140044aef
mov r14d, dword [r15 + 4]
add r14d, 0x20
sar r14d, 5
mov ecx, dword [r12 + 4]
cmp r14d, ecx
jle 0x140044ad4
test ecx, ecx
je 0x140044abe
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140044ac3
mov eax, 8
mov edx, r14d
cmp eax, r14d
cmovg edx, eax
mov rcx, r12
call fcn.140031f54
mov dword [r12], r14d
movsxd r8, r14d
shl r8, 2
xor edx, edx
mov rcx, qword [r12 + 8]
call qword [sym.imp.VCRUNTIME140.dll_memset]
xor r10d, r10d
mov r14, qword [rsi - 0x20]
cmp word [r14], r10w
je 0x140044b80
cmp word [r14 + 2], r10w
je 0x140044b7b
movzx r12d, word [r14]
movzx eax, word [r14 + 2]
cmp r12d, eax
ja 0x140044b71
movsxd r13, r12d
sar r13, 5
mov ecx, r12d
and ecx, 0x1f
mov edx, ebx
shl edx, cl
mov dword [rsp + 0x6c], edx
mov rax, qword [r15 + 0x18]
test dword [rax + r13*4], edx
jne 0x140044b60
mov edx, r12d
mov rcx, qword [rsi - 0x40]
call fcn.140066930
xor r10d, r10d
test eax, eax
je 0x140044b60
add dword [rsi - 0x10], ebx
add dword [r15 + 8], ebx
mov rax, qword [rsi]
mov ecx, dword [rsp + 0x6c]
or dword [rax + r13*4], ecx
mov rax, qword [r15 + 0x18]
or dword [rax + r13*4], ecx
add edi, ebx
add r12d, ebx
movzx eax, word [r14 + 2]
cmp r12d, eax
jle 0x140044b12
mov dword [rsp + 0x64], edi
add r14, 4
cmp word [r14], r10w
jne 0x140044afd
mov r13, qword [rsp + 0x78]
add rsi, 0x70
sub r13, rbx
mov qword [rsp + 0x78], r13
mov r14, qword [rbp - 0x70]
jne 0x140044a20
mov rsi, qword [rbp - 0x40]
add rsi, 0x60
mov r13d, dword [rbp - 0x78]
mov r14d, r13d
mov qword [rsp + 0x78], r13
mov rdi, qword [rbp - 0x50]
mov edx, dword [rsi - 0x18]
mov rcx, rsi
call fcn.140045938
mov rcx, qword [rsi - 8]
movsxd rax, dword [rsi - 0x10]
lea rax, [rcx + rax*4]
mov r12, rcx
cmp rcx, rax
jae 0x140044ca2
mov r15, rcx
mov r13, rax
mov eax, dword [r12]
mov dword [rsp + 0x6c], eax
test eax, eax
je 0x140044c90
xor r14d, r14d
bt eax, r14d
jae 0x140044c83
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rbp + 0x80]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [r12*8]
lea rax, [r15*8]
sub ecx, eax
and ecx, 0xffffffe0
add ecx, r14d
movzx eax, cx
mov dword [rbp + 0x98], eax
mov ecx, dword [rsi]
mov r8d, dword [rsi + 4]
cmp ecx, r8d
jne 0x140044c5b
inc ecx
test r8d, r8d
je 0x140044c47
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140044c4c
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rsi
call fcn.140045938
movsxd rax, dword [rsi]
lea rcx, [rax + rax*4]
mov rax, qword [rsi + 8]
lea rcx, [rax + rcx*8]
mov r8d, 0x28
lea rdx, [rbp + 0x80]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
add dword [rsi], ebx
mov eax, dword [rsp + 0x6c]
add r14d, ebx
cmp r14d, 0x20
jb 0x140044bea
add r12, 4
cmp r12, r13
jb 0x140044bd7
mov r14, qword [rsp + 0x78]
mov rcx, qword [rsi - 8]
xor r10d, r10d
test rcx, rcx
je 0x140044cd1
mov qword [rsi - 0x10], r10
mov rax, qword [0x1401047e0]
test rax, rax
je 0x140044cc4
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r10d, r10d
mov qword [rsi - 8], r10
add rsi, 0x70
sub r14, rbx
mov qword [rsp + 0x78], r14
jne 0x140044bae
mov r15, qword [rbp - 0x40]
mov r12d, dword [rbp - 0x80]
mov r13d, dword [rbp - 0x78]
jmp 0x140044cf6
mov dword [rsp + 0x64], r10d
test r12d, r12d
jle 0x140044d3a
mov rsi, qword [rbp - 0x70]
add rsi, 0x18
mov r14d, r12d
mov rcx, qword [rsi]
test rcx, rcx
je 0x140044d31
and qword [rsi - 8], 0
mov rax, qword [0x1401047e0]
test rax, rax
je 0x140044d25
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r10d, r10d
mov qword [rsi], r10
add rsi, 0x20
sub r14, rbx
jne 0x140044d06
mov rsi, qword [rbp - 0x70]
test rsi, rsi
je 0x140044d6e
and qword [rbp - 0x20], 0
mov rax, qword [0x1401047e0]
test rax, rax
je 0x140044d5a
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r10d, r10d
mov qword [rbp - 0x70], r10
mov qword [rbp - 0x18], r10
and qword [rbp], 0
mov qword [rbp + 8], r10
mov edx, dword [rsp + 0x64]
lea rcx, [rbp]
call fcn.140043cc0
mov eax, dword [rbp]
lea ecx, [rax + rax*2]
shl ecx, 3
movsxd r8, ecx
xor edx, edx
mov r12, qword [rbp + 8]
mov qword [rbp - 0x48], r12
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_memset]
xor ecx, ecx
mov dword [rbp - 0x80], ecx
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rcx
mov rax, qword [0x1401047e0]
test rax, rax
je 0x140044dc2
add dword [rax + 0xf4], ebx
mov ecx, 0x40000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x20]
call fcn.1400319a8
xor r11d, r11d
mov ecx, r11d
mov dword [rsp + 0x64], ecx
mov r9d, r11d
movss xmm6, dword [0x1400f143c]
test r13d, r13d
jle 0x14004510d
mov r8d, r11d
mov qword [rsp + 0x78], r11
lea rsi, [r15 + 0x60]
mov r10d, r13d
mov qword [rbp - 0x30], r10
mov r15d, 0xff
mov r14, qword [rbp + 0x28]
mov qword [rbp - 0x38], r14
mov r14d, dword [rbp + 0x20]
mov dword [rsp + 0x70], r14d
mov rdx, qword [rdi + 0x80]
cmp dword [rsi - 0x18], r11d
je 0x1400450ea
movsxd rax, r9d
lea rcx, [rax + rax*2]
lea rax, [r12 + rcx*8]
mov qword [rsi - 0x30], rax
add r9d, dword [rsi - 0x18]
mov dword [rbp - 0x60], r9d
movss xmm1, dword [r8 + rdx + 0x50]
ucomiss xmm1, xmm6
jp 0x140044e63
jne 0x140044e63
mov byte [rsp + 0x60], r11b
jmp 0x140044ea3
mov byte [rsp + 0x60], bl
mov edx, r11d
lea r8, [rbp + 0xb0]
mov eax, edx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, xmm1
cvttss2si rax, xmm0
movzx ecx, al
cmp eax, r15d
cmova ecx, r15d
mov byte [r8], cl
add edx, ebx
add r8, rbx
cmp edx, 0x100
jb 0x140044e71
mov r8, qword [rsp + 0x78]
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x6c], eax
mov r15d, r11d
cmp dword [rsi], r11d
jle 0x1400450e0
mov r13, r11
mov qword [rbp - 0x58], r11
mov r14, r11
mov edi, dword [rbp - 0x80]
mov r12, qword [rsi + 8]
mov edx, dword [r14 + r12 + 0x18]
mov rcx, qword [rsi - 0x48]
call fcn.140066930
xor r11d, r11d
test eax, eax
je 0x1400450aa
mov r8d, dword [rsi - 0x3c]
mov edx, eax
mov rcx, qword [rsi - 0x48]
call fcn.140067850
xor r11d, r11d
test eax, eax
jne 0x1400450aa
mov rax, qword [rsi - 0x48]
mov r13, qword [rax + 0x78]
test byte [rsi - 0x40], 0x20
je 0x140044f13
mov rcx, r13
call fcn.14006ffd0
xor r11d, r11d
test byte [rsi - 0x40], 0x40
je 0x140044f24
mov rcx, r13
call fcn.1400700d0
xor r11d, r11d
lea rax, [r13 + 0x30]
test rax, rax
je 0x1400450a6
mov rax, qword [rsi - 0x48]
mov rax, qword [rax + 0x78]
mov qword [rbp - 0x68], rax
mov edx, dword [rsi - 0x38]
mov rcx, rax
call fcn.14006a300
xor r11d, r11d
test eax, eax
jne 0x1400450a6
mov rax, qword [rsi - 0x48]
mov r9, qword [rax + 0x78]
add r9, 0x68
mov qword [rbp - 0x80], r9
mov r8d, dword [r9 + 4]
mov dword [r14 + r12], r8d
mov r13d, dword [r9]
mov dword [r14 + r12 + 4], r13d
mov rax, qword [rsi - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x90]
mov dword [r14 + r12 + 8], eax
mov rax, qword [rsi - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x94]
neg eax
mov dword [r14 + r12 + 0xc], eax
mov rax, qword [rbp - 0x68]
mov eax, dword [rax + 0x58]
add eax, 0x3f
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [r14 + r12 + 0x10], xmm0
cmp byte [r9 + 0x1a], 7
sete al
mov byte [r14 + r12 + 0x14], al
imul r13d, r8d
shl r13d, 2
lea eax, [rdi + r13]
mov ecx, 0x40000
cmp eax, ecx
jle 0x14004501e
mov edi, r11d
mov rax, qword [0x1401047e0]
test rax, rax
je 0x140044ff6
add dword [rax + 0xf4], ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x20]
call fcn.1400319a8
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x38], rax
mov eax, dword [rbp + 0x20]
mov dword [rsp + 0x70], eax
jmp 0x140045022
mov eax, dword [rsp + 0x70]
dec eax
cdqe
movsxd rcx, edi
mov rdx, qword [rbp - 0x38]
mov r8, qword [rdx + rax*8]
add r8, rcx
mov qword [r14 + r12 + 0x20], r8
add edi, r13d
mov al, byte [rsp + 0x60]
neg al
sbb rcx, rcx
lea rax, [rbp + 0xb0]
and rcx, rax
mov qword [rsp + 0x20], rcx
mov r9d, dword [r14 + r12]
mov rdx, qword [rbp - 0x80]
call fcn.140044248
mov ecx, dword [r14 + r12]
add ecx, dword [rsp + 0x6c]
mov rax, qword [rsi - 0x30]
mov r13, qword [rbp - 0x58]
mov dword [rax + r13 + 4], ecx
mov ecx, dword [r14 + r12 + 4]
add ecx, dword [rsp + 0x6c]
mov rax, qword [rsi - 0x30]
mov dword [rax + r13 + 8], ecx
mov rcx, qword [rsi - 0x30]
mov eax, dword [rcx + r13 + 8]
imul eax, dword [rcx + r13 + 4]
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov dword [rsp + 0x64], ecx
xor r11d, r11d
jmp 0x1400450ae
mov r13, qword [rbp - 0x58]
mov ecx, dword [rsp + 0x64]
add r15d, ebx
add r14, 0x28
add r13, 0x18
mov qword [rbp - 0x58], r13
cmp r15d, dword [rsi]
jl 0x140044ec3
mov dword [rbp - 0x80], edi
mov rdi, qword [rbp - 0x50]
mov r8, qword [rsp + 0x78]
mov r9d, dword [rbp - 0x60]
mov r10, qword [rbp - 0x30]
mov r12, qword [rbp - 0x48]
jmp 0x1400450e4
mov ecx, dword [rsp + 0x64]
mov r15d, 0xff
add rsi, 0x70
add r8, 0x88
mov qword [rsp + 0x78], r8
sub r10, rbx
mov qword [rbp - 0x30], r10
jne 0x140044e26
mov r15, qword [rbp - 0x40]
jmp 0x14004511c
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x38], rax
mov eax, dword [rbp + 0x20]
mov dword [rsp + 0x70], eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_sqrtf]
cvttss2si eax, xmm0
add eax, ebx
xor r12d, r12d
mov dword [rdi + 0x44], r12d
mov esi, dword [rdi + 0x10]
test esi, esi
jg 0x140045176
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov esi, 0x200
mov eax, 0x400
comiss xmm0, dword [0x1400f1540]
cmovae esi, eax
mov eax, 0x800
comiss xmm0, dword [0x1400f1550]
cmovae esi, eax
mov eax, 0x1000
comiss xmm0, dword [0x1400f1554]
cmovae esi, eax
mov dword [rdi + 0x40], esi
sub esi, dword [rdi + 0x14]
mov dword [rbp + 0x14], r12d
mov r13, r12
mov qword [rbp + 0x18], r12
test esi, esi
jle 0x1400451c8
mov r14d, esi
mov eax, 8
cmp esi, eax
cmovl r14d, eax
test r14d, r14d
jle 0x1400451c8
mov rax, qword [0x1401047e0]
test rax, rax
je 0x1400451b0
add dword [rax + 0xf4], ebx
movsxd rcx, r14d
shl rcx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x14], r14d
mov dword [rbp + 0x10], esi
mov r10d, 0x8000
sub r10d, dword [rdi + 0x14]
mov ecx, dword [rdi + 0x40]
sub ecx, dword [rdi + 0x14]
lea eax, [rsi - 1]
mov r11d, r12d
movsxd r9, eax
test eax, eax
jle 0x140045209
mov edx, ebx
lea r8, [r13 + 8]
mov r11d, eax
movsxd rax, edx
shl rax, 4
add rax, r13
mov qword [r8], rax
add edx, ebx
lea r8, [r8 + 0x10]
sub r9, rbx
jne 0x1400451f1
movsxd rax, r11d
add rax, rax
mov qword [r13 + rax*8 + 8], r12
mov qword [rbp + 0x3c], 1
mov qword [rbp + 0x50], r13
lea rax, [rbp + 0x58]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x30], ecx
mov dword [rbp + 0x34], r10d
mov dword [rbp + 0x44], esi
lea eax, [rsi - 1]
add eax, ecx
cdq
idiv esi
mov dword [rbp + 0x38], eax
mov qword [rbp + 0x58], r12
lea rax, [rbp + 0x68]
mov qword [rbp + 0x60], rax
mov dword [rbp + 0x68], ecx
mov dword [rbp + 0x6c], 0x40000000
mov qword [rbp + 0x70], r12
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.1400410d4
mov r14d, dword [rbp - 0x78]
test r14d, r14d
jle 0x1400452c8
lea rsi, [r15 + 0x48]
mov r12d, r14d
xor eax, eax
mov r8d, dword [rsi]
test r8d, r8d
je 0x1400452bf
mov rdx, qword [rsi - 0x18]
lea rcx, [rbp + 0x30]
call fcn.1400445a8
xor eax, eax
mov edx, eax
cmp dword [rsi], eax
jle 0x1400452bf
mov ecx, eax
mov r8, qword [rsi - 0x18]
cmp dword [r8 + rcx + 0x14], eax
je 0x1400452b5
mov eax, dword [r8 + rcx + 0x10]
add eax, dword [r8 + rcx + 8]
cmp dword [rdi + 0x44], eax
cmovge eax, dword [rdi + 0x44]
mov dword [rdi + 0x44], eax
xor eax, eax
add edx, ebx
add rcx, 0x18
cmp edx, dword [rsi]
jl 0x140045294
add rsi, 0x70
sub r12, rbx
jne 0x140045275
mov eax, dword [rdi + 0x44]
test byte [rdi], bl
jne 0x1400452f4
lea ecx, [rax - 1]
mov eax, ecx
sar eax, 1
or ecx, eax
mov eax, ecx
sar eax, 2
or ecx, eax
mov eax, ecx
sar eax, 4
or ecx, eax
mov eax, ecx
sar eax, 8
or ecx, eax
mov eax, ecx
sar eax, 0x10
or eax, ecx
inc eax
mov dword [rdi + 0x44], eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movaps xmm1, xmm6
divss xmm1, xmm0
movd xmm0, dword [rdi + 0x40]
cvtdq2ps xmm0, xmm0
divss xmm6, xmm0
movss dword [rdi + 0x48], xmm6
movss dword [rdi + 0x4c], xmm1
movsxd rsi, eax
movsxd rax, dword [rdi + 0x40]
imul rsi, rax
mov rax, qword [0x1401047e0]
cmp byte [rsp + 0x68], r12b
je 0x140045354
shl rsi, 2
test rax, rax
je 0x140045345
add dword [rax + 0xf4], ebx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x38], rax
jmp 0x14004536c
test rax, rax
je 0x14004535f
add dword [rax + 0xf4], ebx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x30], rax
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov al, r12b
mov byte [rsp + 0x60], al
test r14d, r14d
jle 0x1400456ab
mov qword [rbp - 0x58], r12
lea rsi, [r15 + 8]
mov r15, r14
mov qword [rbp - 0x68], r14
xor r9d, r9d
cmp dword [rsi + 0x40], r9d
je 0x14004567c
mov r14, qword [rdi + 0x80]
add r14, r12
mov qword [rbp - 0x28], r14
mov r13, qword [r14 + 0x80]
mov qword [rbp - 0x30], r13
movss xmm0, dword [rsi]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [rsi - 4]
mov r8, r14
mov rdx, r13
mov rcx, rdi
call fcn.140041050
movss xmm11, dword [r14 + 0x2c]
movss xmm0, dword [r13 + 0x68]
addss xmm0, dword [0x1400f13f4]
cvttss2si eax, xmm0
movd xmm10, eax
cvtdq2ps xmm10, xmm10
addss xmm10, dword [r14 + 0x30]
mov r8d, dword [rdi + 0x14]
mov dword [rsp + 0x64], r8d
xor r9d, r9d
mov dword [rsp + 0x6c], r9d
cmp dword [rsi + 0x40], r9d
jle 0x140045678
mov r15d, r9d
mov r14d, r9d
mov r13, qword [rbp - 0x28]
mov r12, qword [rsi + 0x60]
mov rcx, qword [rsi + 0x28]
cmp dword [r15 + rcx + 4], r9d
jne 0x140045442
cmp dword [r15 + rcx + 8], r9d
je 0x140045655
mov edx, dword [r15 + rcx + 0xc]
add edx, r8d
mov dword [rbp - 0x80], edx
add r8d, dword [r15 + rcx + 0x10]
mov dword [rbp - 0x60], r8d
movd xmm3, dword [r14 + r12 + 8]
cvtdq2ps xmm3, xmm3
addss xmm3, xmm11
movd xmm9, dword [r14 + r12 + 0xc]
cvtdq2ps xmm9, xmm9
addss xmm9, xmm10
mov eax, dword [r14 + r12]
movd xmm8, eax
cvtdq2ps xmm8, xmm8
addss xmm8, xmm3
mov ecx, dword [r14 + r12 + 4]
movd xmm7, ecx
cvtdq2ps xmm7, xmm7
addss xmm7, xmm9
movd xmm0, dword [rdi + 0x40]
cvtdq2ps xmm0, xmm0
movd xmm6, edx
cvtdq2ps xmm6, xmm6
divss xmm6, xmm0
movd xmm2, dword [rdi + 0x44]
cvtdq2ps xmm2, xmm2
movd xmm5, r8d
cvtdq2ps xmm5, xmm5
divss xmm5, xmm2
add eax, edx
movd xmm4, eax
cvtdq2ps xmm4, xmm4
divss xmm4, xmm0
lea eax, [rcx + r8]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, xmm2
movss xmm0, dword [r14 + r12 + 0x10]
movss dword [rsp + 0x58], xmm0
movss dword [rsp + 0x50], xmm1
movss dword [rsp + 0x48], xmm4
movss dword [rsp + 0x40], xmm5
movss dword [rsp + 0x38], xmm6
movss dword [rsp + 0x30], xmm7
movss dword [rsp + 0x28], xmm8
movss dword [rsp + 0x20], xmm9
movzx r8d, word [r14 + r12 + 0x18]
mov rdx, r13
mov rcx, qword [rbp - 0x30]
call fcn.1400426e8
mov rdx, qword [rbp - 0x30]
movsxd rax, dword [rdx + 0x28]
lea rcx, [rax + rax*4]
mov rax, qword [rdx + 0x30]
xor r9d, r9d
cmp byte [r14 + r12 + 0x14], r9b
je 0x140045548
mov byte [rsp + 0x60], bl
or dword [rax + rcx*8 - 0x28], ebx
movsxd rdx, dword [r14 + r12]
mov r10, rdx
movsxd r11, dword [rdi + 0x40]
mov qword [rbp - 0x50], r11
mov r8, qword [r14 + r12 + 0x20]
movsxd rax, dword [rbp - 0x60]
imul rax, r11
movsxd rcx, dword [rbp - 0x80]
add rcx, rax
cmp qword [rdi + 0x30], r9
je 0x1400455e2
add rcx, qword [rdi + 0x30]
mov eax, r9d
mov dword [rbp - 0x80], eax
cmp dword [r14 + r12 + 4], r9d
jle 0x140045650
lea r9, [rdx*4]
mov qword [rsp + 0x78], r9
mov r9, r11
mov r10, qword [rsp + 0x78]
xor r11d, r11d
test edx, edx
jle 0x1400455ce
mov r9, rcx
lea r10, [r8 + 3]
mov al, byte [r10]
mov byte [r9], al
add r11d, ebx
lea r10, [r10 + 4]
add r9, rbx
mov edx, dword [r14 + r12]
cmp r11d, edx
jl 0x1400455a9
mov eax, dword [rbp - 0x80]
mov r9, qword [rbp - 0x50]
mov r10, qword [rsp + 0x78]
add eax, ebx
mov dword [rbp - 0x80], eax
add rcx, r9
add r8, r10
cmp eax, dword [r14 + r12 + 4]
jl 0x14004559b
jmp 0x14004564d
mov rax, qword [rdi + 0x38]
lea r9, [rax + rcx*4]
xor eax, eax
mov dword [rbp - 0x80], eax
cmp dword [r14 + r12 + 4], eax
jle 0x14004564d
lea rcx, [r11*4]
mov qword [rbp - 0x28], rcx
shl r10, 2
mov qword [rbp - 0x50], r10
xor r11d, r11d
test edx, edx
jle 0x14004563b
mov rcx, r9
mov r10, r8
sub r10, r9
mov eax, dword [rcx + r10]
mov dword [rcx], eax
add r11d, ebx
lea rcx, [rcx + 4]
mov edx, dword [r14 + r12]
cmp r11d, edx
jl 0x14004561a
mov eax, dword [rbp - 0x80]
mov rcx, qword [rbp - 0x28]
mov r10, qword [rbp - 0x50]
add eax, ebx
mov dword [rbp - 0x80], eax
add r9, rcx
add r8, r10
cmp eax, dword [r14 + r12 + 4]
jl 0x14004560a
xor r9d, r9d
mov r8d, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x6c]
add ecx, ebx
mov dword [rsp + 0x6c], ecx
add r14, 0x28
add r15, 0x18
cmp ecx, dword [rsi + 0x40]
jl 0x140045428
mov r12, qword [rbp - 0x58]
mov r15, qword [rbp - 0x68]
mov qword [rsi + 0x28], r9
add rsi, 0x70
add r12, 0x88
mov qword [rbp - 0x58], r12
sub r15, rbx
mov qword [rbp - 0x68], r15
jne 0x14004539c
mov r15, qword [rbp - 0x40]
mov r13, qword [rbp + 0x18]
mov r14d, dword [rbp - 0x78]
mov al, byte [rsp + 0x60]
xor r12d, r12d
mov byte [rdi + 0x29], al
mov eax, dword [rsp + 0x70]
test eax, eax
jle 0x1400456e6
mov rsi, qword [rbp - 0x38]
mov r12d, eax
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400456d7
mov rax, qword [0x1401047e0]
test rax, rax
je 0x1400456d7
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rsi, 8
sub r12, rbx
jne 0x1400456bd
test r14d, r14d
jle 0x1400456ff
mov rsi, r15
mov rcx, rsi
call fcn.1400459cc
add rsi, 0x70
sub r14, rbx
jne 0x1400456ee
test r15, r15
je 0x14004572b
and qword [rbp - 0x10], 0
mov rax, qword [0x1401047e0]
test rax, rax
je 0x14004571b
dec dword [rax + 0xf4]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r15, r12
mov qword [rbp - 8], r12
mov rcx, rdi
call fcn.140041e70
nop
test r13, r13
je 0x140045755
mov rax, qword [0x1401047e0]
test rax, rax
je 0x14004574b
dec dword [rax + 0xf4]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140045777
mov rax, qword [0x1401047e0]
test rax, rax
je 0x140045770
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140045799
mov rax, qword [0x1401047e0]
test rax, rax
je 0x140045792
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400457bb
mov rax, qword [0x1401047e0]
test rax, rax
je 0x1400457b4
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
test r15, r15
je 0x1400457dc
mov rax, qword [0x1401047e0]
test rax, rax
je 0x1400457d2
dec dword [rax + 0xf4]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov al, bl
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140064820
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret