Function at 0x14000dd40
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rsi, qword [0x14017c5f0]
mov qword [rax + 0x10], rbp
mov rbx, rsi
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r13
mov ebp, dword [rsi + 0x5338]
sub ebp, 1
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
js 0x14000ddd2
movsxd rdi, ebp
shl rdi, 5
nop word [rax + rax]
mov rax, qword [rsi + 0x5340]
cmp dword [rdi + rax + 4], 7
jne 0x14000ddc9
movsxd r8, dword [rsi + 0x5338]
mov rcx, rax
mov rdx, rdi
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 rdi, 0x20
sub ebp, 1
jns 0x14000dd80
mov rdi, qword [rsi + 0x5340]
movsxd rbp, dword [rsi + 0x5338]
shl rbp, 5
add rbp, rdi
cmp rdi, rbp
je 0x14000de0f
nop dword [rax]
cmp dword [rdi + 4], 0
jne 0x14000ddff
mov rdx, rdi
mov rcx, rbx
call qword [rdi + 0x10]
add rdi, 0x20
cmp rdi, rbp
jne 0x14000ddf0
mov rsi, qword [0x14017c5f0]
cmp qword [rsi + 0x38d0], 0
je 0x14000de3f
mov rax, qword [rsi + 0x38e8]
test rax, rax
je 0x14000de31
lea rcx, [0x1400216a0]
cmp rax, rcx
jne 0x14000de3f
lea rax, [0x1400199a0]
mov qword [rsi + 0x38e8], rax
cmp qword [rsi + 0x38d8], 0
je 0x14000de6f
mov rax, qword [rsi + 0x38f0]
test rax, rax
je 0x14000de61
lea rcx, [0x1400217d0]
cmp rax, rcx
jne 0x14000de6f
lea rax, [0x1400199c0]
mov qword [rsi + 0x38f0], rax
cmp byte [rsi + 0x52f0], 0
mov r12d, 1
mov qword [rsp + 0x48], r14
jne 0x14000df71
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000df6a
lea rdx, [0x14011d880]
call fcn.140006dd0
mov rdi, rax
test rax, rax
je 0x14000df6a
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r14d, eax
cmp eax, 0xffffffff
je 0x14000df61
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 0x14000df61
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x14000df61
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 0x14000df61
cmp rbp, 0xffffffffffffffff
je 0x14000df61
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x14000df61
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 0x14000df40
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 0x14000df6a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rbp, rbp
je 0x14000df56
mov rdx, rbp
mov rcx, r14
call fcn.140020c10
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000df6a
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 0x14000dfb4
subss xmm0, dword [rsi + 0x18]
comiss xmm6, xmm0
movss dword [rsi + 0x52f4], xmm0
jb 0x14000dfb4
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000dfa6
call fcn.140020e50
jmp 0x14000dfad
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.1400229d0
movsxd rax, dword [rbx + 0x55ac]
movss xmm1, dword [rbx + 0x18]
movss xmm7, dword [0x1401264d8]
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 0x14000e093
movss xmm1, dword [0x140126388]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
divss xmm1, xmm2
jmp 0x14000e096
movaps xmm1, xmm7
lea rcx, [rbx + 0x4050]
movss dword [rbx + 0xb8], xmm1
call fcn.140022410
movzx ecx, byte [rbx + 0x5b]
call fcn.140018e60
mov rdi, qword [0x14017c5f0]
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 0x14000e19d
nop word [rax + rax]
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 0x14000e100
mov rax, qword [rbx + 0x38]
mov byte [rax + 0x18], r12b
call fcn.14000db20
mov rcx, qword [rdi + 0x48]
test rcx, rcx
jne 0x14000e1be
mov rax, qword [rdi + 0x38]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx]
call fcn.140016130
mov rcx, qword [rbx + 0x4bf8]
movsxd rax, dword [rbx + 0x4bf0]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x14000e1f0
nop word [rax + rax]
mov rax, qword [rcx]
add rcx, 8
mov byte [rax + 0x50], r13b
cmp rcx, rdx
jne 0x14000e1e0
cmp byte [rbx + 0x4e1c], r13b
je 0x14000e224
mov eax, dword [rbx + 0x4e3c]
cmp eax, dword [rbx + 0x413c]
jne 0x14000e224
cmp dword [rdi + 0x413c], eax
jne 0x14000e215
mov dword [rdi + 0x4140], eax
cmp dword [rdi + 0x416c], eax
jne 0x14000e224
mov byte [rdi + 0x4170], r12b
mov dword [rbx + 0x411c], r13d
cmp byte [rbx + 0x7d], r13b
je 0x14000e246
cmp dword [rbx + 0x412c], r12d
jle 0x14000e246
mov eax, dword [rbx + 0x4128]
mov dword [rbx + 0x411c], eax
cmp dword [rbx + 0x4128], r13d
jne 0x14000e258
mov dword [rbx + 0x4130], r13d
jmp 0x14000e26a
mov eax, dword [rbx + 0x4124]
test eax, eax
je 0x14000e271
cmp dword [rbx + 0x413c], eax
jne 0x14000e271
mov dword [rbx + 0x4134], r13d
mov eax, dword [rbx + 0x4124]
test eax, eax
je 0x14000e2ab
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x4130]
movss dword [rbx + 0x4130], xmm0
cmp dword [rbx + 0x413c], eax
je 0x14000e2ab
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 0x14000e2e6
cmp dword [rbx + 0x4140], eax
je 0x14000e2e6
cmp dword [rbx + 0x416c], eax
jne 0x14000e2e6
call fcn.14000cb10
mov ecx, dword [rbx + 0x413c]
test ecx, ecx
je 0x14000e305
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 0x14000e36c
cmp ecx, eax
je 0x14000e36c
mov dword [rbx + 0x51a0], r13d
test ecx, ecx
jne 0x14000e37e
mov dword [rbx + 0x4a48], r13d
mov byte [rbx + 0x4a4c], r13b
mov ecx, dword [rbx + 0x5050]
test ecx, ecx
je 0x14000e3a1
movss xmm0, dword [rbx + 0x506c]
comiss xmm0, dword [rbx + 0x3db4]
jb 0x14000e3a8
mov dword [rbx + 0x5060], ecx
jmp 0x14000e3a8
mov dword [rbx + 0x5060], r13d
mov rax, qword [rbx + 0x40d0]
test rax, rax
je 0x14000e3d0
movss xmm0, dword [rbx + 0x506c]
comiss xmm0, dword [rbx + 0x3db4]
jb 0x14000e3d7
mov eax, dword [rax + 0x10]
mov dword [rbx + 0x5064], eax
jmp 0x14000e3d7
mov dword [rbx + 0x5064], r13d
movss xmm0, dword [rbx + 0x5058]
mov dword [rbx + 0x5054], ecx
test ecx, ecx
je 0x14000e406
addss xmm0, dword [rbx + 0x18]
mov dword [rbx + 0x505c], r13d
mov dword [rbx + 0x5050], r13d
movss dword [rbx + 0x5058], xmm0
jmp 0x14000e43f
comiss xmm0, xmm6
jbe 0x14000e43f
movss xmm2, dword [rbx + 0x18]
movss xmm0, dword [0x140126324]
movaps xmm1, xmm2
addss xmm1, dword [rbx + 0x505c]
addss xmm2, xmm2
movss dword [rbx + 0x505c], xmm1
maxss xmm0, xmm2
comiss xmm1, xmm0
jb 0x14000e43f
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.140017c00
call fcn.14001d140
call fcn.140018360
call fcn.14000d6a0
mov r10, qword [0x14017c5f0]
mov rcx, qword [r10 + 0x40e8]
test rcx, rcx
je 0x14000e53f
mov eax, dword [r10 + 0x413c]
mov dword [r10 + 0x4140], eax
cmp dword [r10 + 0x416c], eax
jne 0x14000e4ae
mov byte [r10 + 0x4170], r12b
mov r9, qword [rcx + 0x390]
cmp byte [r10 + 0xe8], r13b
je 0x14000e536
lea rax, [r10 + 0xe0]
mov rcx, rax
test rax, rax
jne 0x14000e4d4
lea rcx, [r10 + 0xe0]
movss xmm0, dword [rcx]
movss xmm1, dword [0x140126518]
comiss xmm0, xmm1
movss xmm2, dword [rcx + 4]
jb 0x14000e536
comiss xmm2, xmm1
jb 0x14000e536
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.140016480
mov rcx, qword [r10 + 0x40e8]
xor edx, edx
call fcn.140015d00
jmp 0x14000e57f
mov qword [r10 + 0x40e8], r13
jmp 0x14000e57a
mov rcx, qword [r10 + 0x4160]
test rcx, rcx
je 0x14000e57f
mov eax, dword [r10 + 0x413c]
cmp dword [rcx + 0x8c], eax
jne 0x14000e57f
mov dword [r10 + 0x4140], eax
cmp dword [r10 + 0x416c], eax
jne 0x14000e571
mov byte [r10 + 0x4170], r12b
cmp byte [r10 + 0xe8], r13b
jne 0x14000e57f
call fcn.14000cb10
mov r8, qword [0x14017c5f0]
mov eax, dword [r8 + 0x4bc0]
sub eax, r12d
js 0x14000e5c1
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 0x14000e5b8
test dword [rax + 0x14], 0x8000000
jne 0x14000e5d7
sub r8, 0x38
sub rdx, r12
jns 0x14000e5a7
cmp qword [rbx + 0x4de0], r13
je 0x14000e5f6
movss xmm0, dword [rbx + 0x4dfc]
comiss xmm0, xmm6
jbe 0x14000e5f6
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x1401263ec]
addss xmm1, dword [rbx + 0x4e18]
minss xmm1, dword [0x140126388]
jmp 0x14000e613
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x140126404]
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.140018870
cmp byte [rbx + 0x401f], r13b
jne 0x14000e675
movss xmm0, dword [rbx + 0x64]
comiss xmm6, xmm0
ja 0x14000e675
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 0x14000e79f
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 0x14000e792
cmp byte [rdi + 0x404], r13b
jne 0x14000e792
comiss xmm7, dword [rdi + 0x27c]
jbe 0x14000e792
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 0x14000e726
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.140023d10
mov rcx, qword [rdi + 0x1b0]
test rcx, rcx
je 0x14000e752
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 0x14000e772
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 0x14000e792
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 0x14000e690
mov esi, r13d
cmp dword [rbx + 0x4f30], r13d
jle 0x14000e8c6
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 0x14000e8a2
comiss xmm7, xmm0
jbe 0x14000e8a2
mov rdi, qword [rbx + 0x4f10]
mov r15, qword [0x14017c5f0]
add rdi, r14
mov qword [rdi + 0x1f0], r13
mov rcx, qword [rdi + 0x1e8]
test rcx, rcx
je 0x14000e826
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 0x14000e84d
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 0x14000e876
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 0x14000e860
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 0x14000e7d0
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 0x14000e91b
nop dword [rax]
movss xmm0, dword [rdi + 4]
comiss xmm0, xmm6
jb 0x14000e90f
comiss xmm7, xmm0
jbe 0x14000e90f
lea rcx, [rdi + 0x28]
call fcn.1400283a0
mov dword [rdi + 4], 0xbf800000
add rdi, 0x88
cmp rdi, rsi
jne 0x14000e8f0
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm6, xmmword [rsp + 0x30]
cmp byte [rbx + 0x401f], r13b
je 0x14000e98d
mov rdi, qword [0x14017c5f0]
mov rcx, qword [rdi + 0x4ba8]
test rcx, rcx
je 0x14000e955
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 0x14000e975
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.140021a50
call fcn.140034270
mov rax, qword [rbx + 0x4c00]
mov byte [rbx + 0x401f], r13b
test rax, rax
je 0x14000ea04
cmp byte [rax + 0xcb], r13b
jne 0x14000ea04
mov rcx, qword [0x14017c5f0]
mov eax, dword [rcx + 0x4078]
sub eax, 1
js 0x14000e9fa
movsxd rdx, eax
mov rax, qword [rcx + 0x4080]
lea r8, [rax + rdx*8]
nop dword [rax]
mov rcx, qword [r8]
test rcx, rcx
je 0x14000e9f0
cmp byte [rcx + 0xcb], r13b
je 0x14000e9f0
mov eax, dword [rcx + 0x14]
and eax, 0x10200
cmp eax, 0x10200
jne 0x14000e9fc
sub r8, 8
sub rdx, 1
jns 0x14000e9d0
xor ecx, ecx
mov edx, r12d
call fcn.140015d00
mov ecx, dword [rbx + 0x409c]
test ecx, ecx
jns 0x14000ea6c
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 0x14000ea6c
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 0x14000ea5f
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.140021e90
mov ecx, dword [rbx + 0x4ba4]
mov eax, ecx
mov r8d, ecx
test ecx, ecx
jns 0x14000eaf3
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 0x14000eaf3
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 0x14000eae1
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 0x14000eb74
test r8d, r8d
je 0x14000eb24
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
cmp eax, 1
cmovg r12d, eax
cmp r12d, r8d
jle 0x14000eb74
jmp 0x14000eb2a
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 0x14000eb66
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.140021e90
mov rax, qword [0x14017c5f0]
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.1400135f0
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 0x14000ec38
nop dword [rax]
cmp dword [rdi + 4], 1
jne 0x14000ec2f
mov rdx, rdi
mov rcx, rbx
call qword [rdi + 0x10]
add rdi, 0x20
cmp rdi, rsi
jne 0x14000ec20
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret