Function at 0x14000d590
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rsi, qword [0x1401765d0]
mov qword [rax + 0x10], rbp
mov rbx, rsi
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r13
mov edi, dword [rsi + 0x5338]
sub edi, 1
mov qword [rax - 0x20], r14
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
js 0x14000d627
movsxd rbp, edi
shl rbp, 5
mov r14, rbp
mov rax, qword [rsi + 0x5340]
cmp dword [rax + rbp + 4], 7
jne 0x14000d61a
movsxd r8, dword [rsi + 0x5338]
mov rcx, rax
mov rdx, r14
sub rdx, rax
add rdx, rax
sar rdx, 5
sub r8, rdx
mov rax, rdx
shl rax, 5
add rcx, rax
shl r8, 5
sub r8, 0x20
lea rdx, [rcx + 0x20]
call sub.VCRUNTIME140.dll_memmove
dec dword [rsi + 0x5338]
sub r14, 0x20
sub rbp, 0x20
sub edi, 1
jns 0x14000d5d1
mov rdi, qword [rsi + 0x5340]
movsxd rbp, dword [rsi + 0x5338]
shl rbp, 5
add rbp, rdi
cmp rdi, rbp
je 0x14000d660
cmp dword [rdi + 4], 0
jne 0x14000d650
mov rdx, rdi
mov rcx, rbx
call qword [rdi + 0x10]
add rdi, 0x20
cmp rdi, rbp
jne 0x14000d641
mov rsi, qword [0x1401765d0]
cmp qword [rsi + 0x38d0], 0
je 0x14000d690
mov rax, qword [rsi + 0x38e8]
test rax, rax
je 0x14000d682
lea rcx, [0x140020f40]
cmp rax, rcx
jne 0x14000d690
lea rax, [0x1400191d0]
mov qword [rsi + 0x38e8], rax
cmp qword [rsi + 0x38d8], 0
je 0x14000d6c0
mov rax, qword [rsi + 0x38f0]
test rax, rax
je 0x14000d6b2
lea rcx, [0x140021070]
cmp rax, rcx
jne 0x14000d6c0
lea rax, [0x1400191f0]
mov qword [rsi + 0x38f0], rax
cmp byte [rsi + 0x52f0], 0
mov r12d, 1
jne 0x14000d7bd
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000d7b6
lea rdx, [0x140118868]
call fcn.140006610
mov rdi, rax
test rax, rax
je 0x14000d7b6
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r14d, eax
cmp eax, 0xffffffff
je 0x14000d7ad
xor edx, edx
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000d7ad
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x14000d7ad
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000d7ad
cmp rbp, 0xffffffffffffffff
je 0x14000d7ad
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x14000d7ad
mov r9, rdi
mov r8, rbp
mov edx, r12d
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rbp
je 0x14000d78c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000d7b6
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rbp, rbp
je 0x14000d7a2
mov rdx, rbp
mov rcx, r14
call fcn.1400204b0
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000d7b6
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov byte [rsi + 0x52f0], r12b
movss xmm0, dword [rsi + 0x52f4]
xorps xmm6, xmm6
xor r13d, r13d
comiss xmm0, xmm6
jbe 0x14000d800
subss xmm0, dword [rsi + 0x18]
comiss xmm6, xmm0
movss dword [rsi + 0x52f4], xmm0
jb 0x14000d800
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000d7f2
call fcn.1400206f0
jmp 0x14000d7f9
mov byte [rsi + 0xb4], r12b
mov dword [rsi + 0x52f4], r13d
movss xmm0, dword [rbx + 0x18]
lea rcx, [rbx + 0x5258]
inc dword [rbx + 0x4010]
xor edx, edx
cvtps2pd xmm0, xmm0
mov byte [rbx + 0x401c], r12b
mov word [rbx + 0x5240], r13w
mov dword [rbx + 0x40b8], r13d
addsd xmm0, qword [rbx + 0x4008]
movsd qword [rbx + 0x4008], xmm0
call fcn.140022270
movsxd rax, dword [rbx + 0x55ac]
movss xmm1, dword [rbx + 0x18]
movss xmm7, dword [0x140121298]
movaps xmm0, xmm1
subss xmm0, dword [rbx + rax*4 + 0x54bc]
addss xmm0, dword [rbx + 0x55b4]
movss dword [rbx + 0x55b4], xmm0
movss dword [rbx + rax*4 + 0x54bc], xmm1
mov eax, 0x88888889
mov ecx, dword [rbx + 0x55ac]
movss xmm2, dword [rbx + 0x55b4]
inc ecx
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3c
sub ecx, eax
mov eax, dword [rbx + 0x55b0]
inc eax
mov dword [rbx + 0x55ac], ecx
mov ecx, 0x3c
cmp eax, ecx
cmovl ecx, eax
comiss xmm2, xmm6
mov dword [rbx + 0x55b0], ecx
jbe 0x14000d8df
movss xmm1, dword [0x140121148]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
divss xmm1, xmm2
jmp 0x14000d8e2
movaps xmm1, xmm7
lea rcx, [rbx + 0x4050]
movss dword [rbx + 0xb8], xmm1
call fcn.140021cb0
movzx ecx, byte [rbx + 0x5b]
call fcn.140018690
mov rdi, qword [0x1401765d0]
mov rax, qword [rdi + 0x4bf8]
mov rcx, qword [rax]
mov qword [rcx + 4], 5
mov dword [rcx + 0xc], r13d
movsd xmm0, qword [rdi + 0x10]
movsd qword [rcx + 0x10], xmm0
mov rcx, qword [rdi + 0x4bf8]
movsxd rax, dword [rdi + 0x4bf0]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x14000d9de
mov rax, qword [rcx]
add rcx, 8
movsd xmm4, qword [rax + 0xc0]
movsd xmm3, qword [rax + 0xc8]
movaps xmm0, xmm4
movss xmm1, dword [rax + 0xc]
movaps xmm2, xmm4
shufps xmm0, xmm0, 0x55
mov qword [rax + 0xc8], r13
addss xmm1, xmm0
movss xmm0, dword [rax + 0x10]
mov qword [rax + 0xc0], r13
subss xmm0, xmm4
movsd qword [rax + 0xb8], xmm3
movsd qword [rax + 0xb0], xmm4
movss dword [rax + 0x1c], xmm1
movss xmm1, dword [rax + 0x14]
subss xmm0, xmm3
addss xmm2, dword [rax + 8]
movss dword [rax + 0x18], xmm2
movaps xmm2, xmm6
maxss xmm2, xmm0
movaps xmm0, xmm4
shufps xmm0, xmm0, 0x55
subss xmm1, xmm0
movaps xmm0, xmm6
subss xmm1, dword [rax + 0xbc]
movss dword [rax + 0x20], xmm2
maxss xmm0, xmm1
movss dword [rax + 0x24], xmm0
cmp rcx, rdx
jne 0x14000d941
mov rax, qword [rbx + 0x38]
mov byte [rax + 0x18], r12b
call fcn.14000d360
mov rcx, qword [rdi + 0x48]
test rcx, rcx
jne 0x14000d9ff
mov rax, qword [rdi + 0x38]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx]
call fcn.140015970
mov rcx, qword [rbx + 0x4bf8]
movsxd rax, dword [rbx + 0x4bf0]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x14000da30
nop dword [rax + rax]
mov rax, qword [rcx]
add rcx, 8
mov byte [rax + 0x50], r13b
cmp rcx, rdx
jne 0x14000da20
cmp byte [rbx + 0x4e1c], r13b
je 0x14000da64
mov eax, dword [rbx + 0x4e3c]
cmp eax, dword [rbx + 0x413c]
jne 0x14000da64
cmp dword [rdi + 0x413c], eax
jne 0x14000da55
mov dword [rdi + 0x4140], eax
cmp dword [rdi + 0x416c], eax
jne 0x14000da64
mov byte [rdi + 0x4170], r12b
mov dword [rbx + 0x411c], r13d
cmp byte [rbx + 0x7d], r13b
je 0x14000da86
cmp dword [rbx + 0x412c], r12d
jle 0x14000da86
mov eax, dword [rbx + 0x4128]
mov dword [rbx + 0x411c], eax
cmp dword [rbx + 0x4128], r13d
jne 0x14000da98
mov dword [rbx + 0x4130], r13d
jmp 0x14000daaa
mov eax, dword [rbx + 0x4124]
test eax, eax
je 0x14000dab1
cmp dword [rbx + 0x413c], eax
jne 0x14000dab1
mov dword [rbx + 0x4134], r13d
mov eax, dword [rbx + 0x4124]
test eax, eax
je 0x14000daeb
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x4130]
movss dword [rbx + 0x4130], xmm0
cmp dword [rbx + 0x413c], eax
je 0x14000daeb
addss xmm1, dword [rbx + 0x4134]
movss dword [rbx + 0x4134], xmm1
mov dword [rbx + 0x4128], eax
mov eax, dword [rbx + 0x413c]
mov dword [rbx + 0x412c], r13d
mov dword [rbx + 0x4124], r13d
mov word [rbx + 0x4138], r13w
test eax, eax
je 0x14000db26
cmp dword [rbx + 0x4140], eax
je 0x14000db26
cmp dword [rbx + 0x416c], eax
jne 0x14000db26
call fcn.14000c350
mov ecx, dword [rbx + 0x413c]
test ecx, ecx
je 0x14000db45
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x4144]
movss dword [rbx + 0x4144], xmm0
mov rax, qword [rbx + 0x4160]
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x4184]
mov qword [rbx + 0x4178], rax
movzx eax, byte [rbx + 0x414c]
mov byte [rbx + 0x4171], al
mov eax, dword [rbx + 0x51a0]
movss dword [rbx + 0x4184], xmm0
mov dword [rbx + 0x416c], ecx
mov dword [rbx + 0x4140], r13d
mov byte [rbx + 0x414d], r13b
mov byte [rbx + 0x4170], r13b
mov byte [rbx + 0x4148], r13b
test eax, eax
je 0x14000dbac
cmp ecx, eax
je 0x14000dbac
mov dword [rbx + 0x51a0], r13d
test ecx, ecx
jne 0x14000dbbe
mov dword [rbx + 0x4a48], r13d
mov byte [rbx + 0x4a4c], r13b
mov ecx, dword [rbx + 0x5050]
test ecx, ecx
je 0x14000dbe1
movss xmm0, dword [rbx + 0x506c]
comiss xmm0, dword [rbx + 0x3db4]
jb 0x14000dbe8
mov dword [rbx + 0x5060], ecx
jmp 0x14000dbe8
mov dword [rbx + 0x5060], r13d
mov rax, qword [rbx + 0x40d0]
test rax, rax
je 0x14000dc10
movss xmm0, dword [rbx + 0x506c]
comiss xmm0, dword [rbx + 0x3db4]
jb 0x14000dc17
mov eax, dword [rax + 0x10]
mov dword [rbx + 0x5064], eax
jmp 0x14000dc17
mov dword [rbx + 0x5064], r13d
movss xmm0, dword [rbx + 0x5058]
mov dword [rbx + 0x5054], ecx
test ecx, ecx
je 0x14000dc46
addss xmm0, dword [rbx + 0x18]
mov dword [rbx + 0x505c], r13d
mov dword [rbx + 0x5050], r13d
movss dword [rbx + 0x5058], xmm0
jmp 0x14000dc7f
comiss xmm0, xmm6
jbe 0x14000dc7f
movss xmm2, dword [rbx + 0x18]
movss xmm0, dword [0x1401210e4]
movaps xmm1, xmm2
addss xmm1, dword [rbx + 0x505c]
addss xmm2, xmm2
movss dword [rbx + 0x505c], xmm1
maxss xmm0, xmm2
comiss xmm1, xmm0
jb 0x14000dc7f
mov qword [rbx + 0x5058], r13
mov eax, dword [rbx + 0x4e9c]
mov dword [rbx + 0x4ea0], eax
mov qword [rbx + 0x4e98], 0x7f7fffff
mov word [rbx + 0x4e1d], r13w
mov dword [rbx + 0x4ea8], r13d
call fcn.140017440
call fcn.14001c990
call fcn.140017ba0
call fcn.14000cee0
mov r10, qword [0x1401765d0]
mov rcx, qword [r10 + 0x40e8]
test rcx, rcx
je 0x14000dd7f
mov eax, dword [r10 + 0x413c]
mov dword [r10 + 0x4140], eax
cmp dword [r10 + 0x416c], eax
jne 0x14000dcee
mov byte [r10 + 0x4170], r12b
mov r9, qword [rcx + 0x390]
cmp byte [r10 + 0xe8], r13b
je 0x14000dd76
lea rax, [r10 + 0xe0]
mov rcx, rax
test rax, rax
jne 0x14000dd14
lea rcx, [r10 + 0xe0]
movss xmm0, dword [rcx]
movss xmm1, dword [0x1401212d8]
comiss xmm0, xmm1
movss xmm2, dword [rcx + 4]
jb 0x14000dd76
comiss xmm2, xmm1
jb 0x14000dd76
movss xmm0, dword [rax]
lea rdx, [rsp + 0x70]
movss xmm1, dword [rax + 4]
mov r8d, r12d
subss xmm0, dword [r10 + 0x4154]
subss xmm1, dword [r10 + 0x4158]
mov rcx, r9
movss dword [rsp + 0x70], xmm0
movss dword [rsp + 0x74], xmm1
call fcn.140015cc0
mov rcx, qword [r10 + 0x40e8]
xor edx, edx
call fcn.140015540
jmp 0x14000ddbf
mov qword [r10 + 0x40e8], r13
jmp 0x14000ddba
mov rcx, qword [r10 + 0x4160]
test rcx, rcx
je 0x14000ddbf
mov eax, dword [r10 + 0x413c]
cmp dword [rcx + 0x8c], eax
jne 0x14000ddbf
mov dword [r10 + 0x4140], eax
cmp dword [r10 + 0x416c], eax
jne 0x14000ddb1
mov byte [r10 + 0x4170], r12b
cmp byte [r10 + 0xe8], r13b
jne 0x14000ddbf
call fcn.14000c350
mov r8, qword [0x1401765d0]
mov eax, dword [r8 + 0x4bc0]
sub eax, r12d
js 0x14000de01
mov r8, qword [r8 + 0x4bc8]
movsxd rdx, eax
add r8, 8
imul rcx, rdx, 0x38
add r8, rcx
mov rax, qword [r8]
test rax, rax
je 0x14000ddf8
test dword [rax + 0x14], 0x8000000
jne 0x14000de17
sub r8, 0x38
sub rdx, r12
jns 0x14000dde7
cmp qword [rbx + 0x4de0], r13
je 0x14000de36
movss xmm0, dword [rbx + 0x4dfc]
comiss xmm0, xmm6
jbe 0x14000de36
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x1401211ac]
addss xmm1, dword [rbx + 0x4e18]
minss xmm1, dword [0x140121148]
jmp 0x14000de53
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x1401211c4]
movss xmm1, dword [rbx + 0x4e18]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x4e18], xmm1
mov eax, 0xffffffff
movups xmm0, xmmword [rbx + 0x52d0]
mov dword [rbx + 0x5068], r13d
mov qword [rbx + 0x55bc], 0xffffffffffffffff
movups xmmword [rbx + 0x52e0], xmm0
mov dword [rbx + 0x55b8], eax
mov byte [rbx + 0x52d0], r13b
call fcn.1400180b0
cmp byte [rbx + 0x401f], r13b
jne 0x14000deb5
movss xmm0, dword [rbx + 0x64]
comiss xmm6, xmm0
ja 0x14000deb5
movsd xmm7, qword [rbx + 0x4008]
cvtpd2ps xmm7, xmm7
subss xmm7, xmm0
mov rsi, qword [rbx + 0x4070]
movsxd rax, dword [rbx + 0x4068]
lea rbp, [rsi + rax*8]
cmp rsi, rbp
je 0x14000dfdf
mov rdi, qword [rsi]
movzx ecx, byte [rdi + 0xca]
movzx eax, word [rdi + 0xd8]
mov byte [rdi + 0xcb], cl
mov byte [rdi + 0xca], r13b
mov byte [rdi + 0xcc], r13b
mov word [rdi + 0xda], ax
mov word [rdi + 0xd8], r13w
test cl, cl
jne 0x14000dfd2
cmp byte [rdi + 0x404], r13b
jne 0x14000dfd2
comiss xmm7, dword [rdi + 0x27c]
jbe 0x14000dfd2
mov rcx, qword [rdi + 0x2b0]
mov byte [rdi + 0x404], r12b
mov eax, dword [rcx + 0x14]
mov dword [rdi + 0x3fc], eax
mov eax, dword [rcx + 0x24]
mov dword [rdi + 0x400], eax
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x14000df66
mov qword [rdi + 0x108], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x110], r13
mov rcx, qword [rdi + 0x2b0]
call fcn.140023580
mov rcx, qword [rdi + 0x1b0]
test rcx, rcx
je 0x14000df92
mov qword [rdi + 0x1a8], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1b0], r13
mov rcx, qword [rdi + 0x1e8]
test rcx, rcx
je 0x14000dfb2
mov qword [rdi + 0x1e0], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1e8], r13
mov rcx, qword [rdi + 0x1f8]
test rcx, rcx
je 0x14000dfd2
mov qword [rdi + 0x1f0], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1f8], r13
add rsi, 8
cmp rsi, rbp
jne 0x14000ded0
mov esi, r13d
cmp dword [rbx + 0x4f30], r13d
jle 0x14000e106
mov r14, r13
mov qword [rsp + 0x40], r15
mov rbp, r13
movabs r12, 0x3759f22983759f23
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx + 0x4f38]
movss xmm0, dword [rax + rbp]
comiss xmm0, xmm6
jb 0x14000e0e2
comiss xmm7, xmm0
jbe 0x14000e0e2
mov rdi, qword [rbx + 0x4f10]
mov r15, qword [0x1401765d0]
add rdi, r14
mov qword [rdi + 0x1f0], r13
mov rcx, qword [rdi + 0x1e8]
test rcx, rcx
je 0x14000e066
mov qword [rdi + 0x1e0], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1e8], r13
mov byte [rdi + 0x239], 1
mov rcx, qword [rdi + 0x198]
test rcx, rcx
je 0x14000e08d
mov qword [rdi + 0x190], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x198], r13
mov edx, r13d
mov byte [rdi + 0x248], 1
cmp dword [rdi + 0x6c], r13d
jle 0x14000e0b6
mov rcx, r13
mov rax, qword [rdi + 0x18]
lea rcx, [rcx + 0x74]
inc edx
mov word [rcx + rax - 0x20], 0xffff
cmp edx, dword [rdi + 0x6c]
jl 0x14000e0a0
sub rdi, qword [r15 + 0x4f10]
mov rax, r12
imul rdi
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r15 + 0x4f38]
movsxd rcx, edx
mov dword [rax + rcx*4], 0xbf800000
inc esi
add rbp, 4
add r14, 0x250
cmp esi, dword [rbx + 0x4f30]
jl 0x14000e010
mov r15, qword [rsp + 0x40]
mov r12d, 1
mov rdi, qword [rbx + 0x4f00]
movsxd rax, dword [rbx + 0x4ef8]
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x78]
imul rsi, rax, 0x88
add rsi, rdi
cmp rdi, rsi
je 0x14000e15b
nop dword [rax]
movss xmm0, dword [rdi + 4]
comiss xmm0, xmm6
jb 0x14000e14f
comiss xmm7, xmm0
jbe 0x14000e14f
lea rcx, [rdi + 0x28]
call fcn.140027ba0
mov dword [rdi + 4], 0xbf800000
add rdi, 0x88
cmp rdi, rsi
jne 0x14000e130
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm6, xmmword [rsp + 0x30]
cmp byte [rbx + 0x401f], r13b
je 0x14000e1cd
mov rdi, qword [0x1401765d0]
mov rcx, qword [rdi + 0x4ba8]
test rcx, rcx
je 0x14000e195
mov qword [rdi + 0x4ba0], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4ba8], r13
mov rcx, qword [rdi + 0x4bb8]
test rcx, rcx
je 0x14000e1b5
mov qword [rdi + 0x4bb0], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bb8], r13
lea rcx, [rdi + 0x5018]
mov dword [rdi + 0x5010], r13d
call fcn.1400212f0
call fcn.140033aa0
mov rax, qword [rbx + 0x4c00]
mov byte [rbx + 0x401f], r13b
test rax, rax
je 0x14000e244
cmp byte [rax + 0xcb], r13b
jne 0x14000e244
mov rcx, qword [0x1401765d0]
mov eax, dword [rcx + 0x4078]
sub eax, 1
js 0x14000e23a
movsxd rdx, eax
mov rax, qword [rcx + 0x4080]
lea r8, [rax + rdx*8]
nop dword [rax]
mov rcx, qword [r8]
test rcx, rcx
je 0x14000e230
cmp byte [rcx + 0xcb], r13b
je 0x14000e230
mov eax, dword [rcx + 0x14]
and eax, 0x10200
cmp eax, 0x10200
jne 0x14000e23c
sub r8, 8
sub rdx, 1
jns 0x14000e210
xor ecx, ecx
mov edx, r12d
call fcn.140015540
mov ecx, dword [rbx + 0x409c]
test ecx, ecx
jns 0x14000e2ac
mov eax, ecx
mov edi, r13d
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg edi, eax
cmp edi, ecx
jle 0x14000e2ac
movsxd rax, edi
imul rcx, rax, 0x70
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 0x40a0]
mov rsi, rax
test rdx, rdx
je 0x14000e29f
movsxd rcx, dword [rbx + 0x4098]
imul r8, rcx, 0x70
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x40a0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x40a0], rsi
mov dword [rbx + 0x409c], edi
lea rcx, [rbx + 0x4bd0]
mov dword [rbx + 0x4098], r13d
xor edx, edx
call fcn.140021730
mov ecx, dword [rbx + 0x4ba4]
mov eax, ecx
mov r8d, ecx
test ecx, ecx
jns 0x14000e333
cdq
mov edi, r13d
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg edi, eax
mov eax, ecx
cmp edi, ecx
jle 0x14000e333
movsxd rcx, edi
shl rcx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 0x4ba8]
mov rsi, rax
test rdx, rdx
je 0x14000e321
movsxd r8, dword [rbx + 0x4ba0]
mov rcx, rax
shl r8, 2
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x4ba8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4ba8], rsi
mov eax, edi
mov dword [rbx + 0x4ba4], edi
mov r8d, edi
mov dword [rbx + 0x4ba0], r13d
mov r13, qword [rsp + 0x88]
test eax, eax
jne 0x14000e3b4
test r8d, r8d
je 0x14000e364
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
cmp eax, 1
cmovg r12d, eax
cmp r12d, r8d
jle 0x14000e3b4
jmp 0x14000e36a
mov r12d, 8
movsxd rcx, r12d
shl rcx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 0x4ba8]
mov rdi, rax
test rdx, rdx
je 0x14000e3a6
movsxd r8, dword [rbx + 0x4ba0]
mov rcx, rax
shl r8, 2
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x4ba8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4ba8], rdi
mov dword [rbx + 0x4ba4], r12d
movsxd rcx, dword [rbx + 0x4ba0]
xor edx, edx
mov rax, qword [rbx + 0x4ba8]
mov dword [rax + rcx*4], 0x10
movsxd rcx, dword [rbx + 0x4ba0]
lea eax, [rcx + 1]
mov dword [rbx + 0x4ba0], eax
mov rax, qword [rbx + 0x4ba8]
mov ecx, dword [rax + rcx*4]
mov dword [rbx + 0x4a58], ecx
lea rcx, [rbx + 0x4bb0]
call fcn.140021730
mov rax, qword [0x1401765d0]
lea rcx, str.DebugDefault
mov byte [rbx + 0x401d], 1
xor r8d, r8d
xor edx, edx
or dword [rax + 0x4ae8], 2
mov dword [rax + 0x4b08], 0x43c80000
mov dword [rax + 0x4b0c], 0x43c80000
mov dword [rax + 0x4af0], 4
call fcn.140012e30
mov rdi, qword [rbx + 0x5340]
movsxd rsi, dword [rbx + 0x5338]
mov r12, qword [rsp + 0x80]
shl rsi, 5
add rsi, rdi
cmp rdi, rsi
je 0x14000e478
nop dword [rax]
cmp dword [rdi + 4], 1
jne 0x14000e46f
mov rdx, rdi
mov rcx, rbx
call qword [rdi + 0x10]
add rdi, 0x20
cmp rdi, rsi
jne 0x14000e460
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret