Function at 0x1400495e4
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 [0x14010b040]
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.140046c24
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.1400440d8
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 0x1400496e1
mov esi, r13d
cmp r13d, eax
cmovl esi, eax
test esi, esi
jle 0x1400496e1
mov rax, qword [0x14010c960]
test rax, rax
je 0x1400496c1
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 0x14004972c
mov esi, r12d
cmp r12d, eax
cmovl esi, eax
test esi, esi
jle 0x14004972c
mov rax, qword [0x14010c960]
test rax, rax
je 0x140049711
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 0x14004987e
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 0x1400498c6
mov edx, r11d
mov r9, r10
mov eax, edx
cmp edx, r11d
jne 0x1400497ca
mov edx, r11d
mov rax, qword [rdi + 0x60]
mov rcx, qword [r9 + rax]
cmp qword [r14 + 0x80], rcx
jne 0x1400497bb
mov dword [rsi - 4], r8d
mov edx, r8d
add r8d, ebx
add r9, 8
mov eax, edx
cmp r8d, dword [rdi + 0x58]
jl 0x140049799
cmp eax, r11d
je 0x1400498c6
lea rcx, [rsi - 0x44]
mov r9d, dword [rsp + 0x6c]
mov r8, r14
mov rdx, qword [rbp - 0x48]
call fcn.140048ecc
xor r10d, r10d
test al, al
je 0x1400498c6
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, [0x1400f6784]
cmp qword [r14 + 0x38], r10
cmovne rcx, qword [r14 + 0x38]
mov qword [rsi - 0xc], rcx
jmp 0x140049838
cmp word [rcx + 2], r10w
je 0x14004983e
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 0x140049822
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 0x140049778
mov r14, qword [rbp - 0x70]
mov dword [rsp + 0x64], r10d
test r13d, r13d
jle 0x140049b69
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 0x1400498ea
test ecx, ecx
je 0x1400498ce
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1400498d3
mov bl, r10b
jmp 0x14004a611
mov eax, 8
lea r12, [rsi - 8]
mov edx, r14d
cmp eax, r14d
cmovg edx, eax
mov rcx, r12
call fcn.140036dcc
jmp 0x1400498ee
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 0x140049967
mov r14d, dword [r15 + 4]
add r14d, 0x20
sar r14d, 5
mov ecx, dword [r12 + 4]
cmp r14d, ecx
jle 0x14004994c
test ecx, ecx
je 0x140049936
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x14004993b
mov eax, 8
mov edx, r14d
cmp eax, r14d
cmovg edx, eax
mov rcx, r12
call fcn.140036dcc
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 0x1400499f8
cmp word [r14 + 2], r10w
je 0x1400499f3
movzx r12d, word [r14]
movzx eax, word [r14 + 2]
cmp r12d, eax
ja 0x1400499e9
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 0x1400499d8
mov edx, r12d
mov rcx, qword [rsi - 0x40]
call fcn.14006c210
xor r10d, r10d
test eax, eax
je 0x1400499d8
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 0x14004998a
mov dword [rsp + 0x64], edi
add r14, 4
cmp word [r14], r10w
jne 0x140049975
mov r13, qword [rsp + 0x78]
add rsi, 0x70
sub r13, rbx
mov qword [rsp + 0x78], r13
mov r14, qword [rbp - 0x70]
jne 0x140049898
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.14004a7b0
mov rcx, qword [rsi - 8]
movsxd rax, dword [rsi - 0x10]
lea rax, [rcx + rax*4]
mov r12, rcx
cmp rcx, rax
jae 0x140049b1a
mov r15, rcx
mov r13, rax
mov eax, dword [r12]
mov dword [rsp + 0x6c], eax
test eax, eax
je 0x140049b08
xor r14d, r14d
bt eax, r14d
jae 0x140049afb
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 0x140049ad3
inc ecx
test r8d, r8d
je 0x140049abf
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140049ac4
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rsi
call fcn.14004a7b0
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 0x140049a62
add r12, 4
cmp r12, r13
jb 0x140049a4f
mov r14, qword [rsp + 0x78]
mov rcx, qword [rsi - 8]
xor r10d, r10d
test rcx, rcx
je 0x140049b49
mov qword [rsi - 0x10], r10
mov rax, qword [0x14010c960]
test rax, rax
je 0x140049b3c
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 0x140049a26
mov r15, qword [rbp - 0x40]
mov r12d, dword [rbp - 0x80]
mov r13d, dword [rbp - 0x78]
jmp 0x140049b6e
mov dword [rsp + 0x64], r10d
test r12d, r12d
jle 0x140049bb2
mov rsi, qword [rbp - 0x70]
add rsi, 0x18
mov r14d, r12d
mov rcx, qword [rsi]
test rcx, rcx
je 0x140049ba9
and qword [rsi - 8], 0
mov rax, qword [0x14010c960]
test rax, rax
je 0x140049b9d
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 0x140049b7e
mov rsi, qword [rbp - 0x70]
test rsi, rsi
je 0x140049be6
and qword [rbp - 0x20], 0
mov rax, qword [0x14010c960]
test rax, rax
je 0x140049bd2
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.140048b38
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 [0x14010c960]
test rax, rax
je 0x140049c3a
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.140036820
xor r11d, r11d
mov ecx, r11d
mov dword [rsp + 0x64], ecx
mov r9d, r11d
movss xmm6, dword [0x1400f805c]
test r13d, r13d
jle 0x140049f85
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 0x140049f62
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 0x140049cdb
jne 0x140049cdb
mov byte [rsp + 0x60], r11b
jmp 0x140049d1b
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 0x140049ce9
mov r8, qword [rsp + 0x78]
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x6c], eax
mov r15d, r11d
cmp dword [rsi], r11d
jle 0x140049f58
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.14006c210
xor r11d, r11d
test eax, eax
je 0x140049f22
mov r8d, dword [rsi - 0x3c]
mov edx, eax
mov rcx, qword [rsi - 0x48]
call fcn.14006d130
xor r11d, r11d
test eax, eax
jne 0x140049f22
mov rax, qword [rsi - 0x48]
mov r13, qword [rax + 0x78]
test byte [rsi - 0x40], 0x20
je 0x140049d8b
mov rcx, r13
call fcn.1400758b0
xor r11d, r11d
test byte [rsi - 0x40], 0x40
je 0x140049d9c
mov rcx, r13
call fcn.1400759b0
xor r11d, r11d
lea rax, [r13 + 0x30]
test rax, rax
je 0x140049f1e
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.14006fbe0
xor r11d, r11d
test eax, eax
jne 0x140049f1e
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 0x140049e96
mov edi, r11d
mov rax, qword [0x14010c960]
test rax, rax
je 0x140049e6e
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.140036820
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x38], rax
mov eax, dword [rbp + 0x20]
mov dword [rsp + 0x70], eax
jmp 0x140049e9a
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.1400490c0
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 0x140049f26
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 0x140049d3b
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 0x140049f5c
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 0x140049c9e
mov r15, qword [rbp - 0x40]
jmp 0x140049f94
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 0x140049fee
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov esi, 0x200
mov eax, 0x400
comiss xmm0, dword [0x1400f8188]
cmovae esi, eax
mov eax, 0x800
comiss xmm0, dword [0x1400f8198]
cmovae esi, eax
mov eax, 0x1000
comiss xmm0, dword [0x1400f819c]
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 0x14004a040
mov r14d, esi
mov eax, 8
cmp esi, eax
cmovl r14d, eax
test r14d, r14d
jle 0x14004a040
mov rax, qword [0x14010c960]
test rax, rax
je 0x14004a028
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 0x14004a081
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 0x14004a069
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.140045f4c
mov r14d, dword [rbp - 0x78]
test r14d, r14d
jle 0x14004a140
lea rsi, [r15 + 0x48]
mov r12d, r14d
xor eax, eax
mov r8d, dword [rsi]
test r8d, r8d
je 0x14004a137
mov rdx, qword [rsi - 0x18]
lea rcx, [rbp + 0x30]
call fcn.140049420
xor eax, eax
mov edx, eax
cmp dword [rsi], eax
jle 0x14004a137
mov ecx, eax
mov r8, qword [rsi - 0x18]
cmp dword [r8 + rcx + 0x14], eax
je 0x14004a12d
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 0x14004a10c
add rsi, 0x70
sub r12, rbx
jne 0x14004a0ed
mov eax, dword [rdi + 0x44]
test byte [rdi], bl
jne 0x14004a16c
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 [0x14010c960]
cmp byte [rsp + 0x68], r12b
je 0x14004a1cc
shl rsi, 2
test rax, rax
je 0x14004a1bd
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 0x14004a1e4
test rax, rax
je 0x14004a1d7
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 0x14004a523
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 0x14004a4f4
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.140045ec8
movss xmm11, dword [r14 + 0x2c]
movss xmm0, dword [r13 + 0x68]
addss xmm0, dword [0x1400f8010]
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 0x14004a4f0
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 0x14004a2ba
cmp dword [r15 + rcx + 8], r9d
je 0x14004a4cd
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.140047560
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 0x14004a3c0
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 0x14004a45a
add rcx, qword [rdi + 0x30]
mov eax, r9d
mov dword [rbp - 0x80], eax
cmp dword [r14 + r12 + 4], r9d
jle 0x14004a4c8
lea r9, [rdx*4]
mov qword [rsp + 0x78], r9
mov r9, r11
mov r10, qword [rsp + 0x78]
xor r11d, r11d
test edx, edx
jle 0x14004a446
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 0x14004a421
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 0x14004a413
jmp 0x14004a4c5
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 0x14004a4c5
lea rcx, [r11*4]
mov qword [rbp - 0x28], rcx
shl r10, 2
mov qword [rbp - 0x50], r10
xor r11d, r11d
test edx, edx
jle 0x14004a4b3
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 0x14004a492
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 0x14004a482
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 0x14004a2a0
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 0x14004a214
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 0x14004a55e
mov rsi, qword [rbp - 0x38]
mov r12d, eax
mov rcx, qword [rsi]
test rcx, rcx
je 0x14004a54f
mov rax, qword [0x14010c960]
test rax, rax
je 0x14004a54f
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 0x14004a535
test r14d, r14d
jle 0x14004a577
mov rsi, r15
mov rcx, rsi
call fcn.14004a844
add rsi, 0x70
sub r14, rbx
jne 0x14004a566
test r15, r15
je 0x14004a5a3
and qword [rbp - 0x10], 0
mov rax, qword [0x14010c960]
test rax, rax
je 0x14004a593
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.140046ce8
nop
test r13, r13
je 0x14004a5cd
mov rax, qword [0x14010c960]
test rax, rax
je 0x14004a5c3
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 0x14004a5ef
mov rax, qword [0x14010c960]
test rax, rax
je 0x14004a5e8
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 0x14004a611
mov rax, qword [0x14010c960]
test rax, rax
je 0x14004a60a
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 0x14004a633
mov rax, qword [0x14010c960]
test rax, rax
je 0x14004a62c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
test r15, r15
je 0x14004a654
mov rax, qword [0x14010c960]
test rax, rax
je 0x14004a64a
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.14006a100
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