Function at 0x140020db0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1210]
mov eax, 0x1310
call fcn.140025e00
sub rsp, rax
mov rax, qword [0x140034180]
xor rax, rsp
mov qword [rbp + 0x1200], rax
xor r15d, r15d
mov r14d, r15d
mov dword [rbp + 0xb0], r15d
lea r13, [0x140034030]
cmp qword [0x140034040], r14
jne 0x1400210df
mov r8d, 0x1000
lea rdx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], r15
mov qword [rbp + 0xe8], r15
lea rax, [rbp + 0x200]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x140020e50
lea rdx, [rbp + 0x200]
lea rcx, [rbp + 0xd0]
call fcn.140004010
nop
lea rbx, [rbp + 0xd0]
mov rsi, qword [rbp + 0xd0]
mov r14, qword [rbp + 0xe8]
cmp r14, 7
cmova rbx, rsi
mov rdi, qword [rbp + 0xe0]
test rdi, rdi
je 0x140020f70
mov r12d, 0x100
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 0xf0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140029d78]
lea rdx, [0x140029d7a]
movzx eax, word [rcx]
cmp ax, r12w
jae 0x140020f12
movzx eax, al
mov byte [rbp + rax + 0xf0], 1
add rcx, 2
cmp rcx, rdx
jne 0x140020ec0
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
movzx eax, word [r8]
cmp ax, r12w
jae 0x140020f07
cmp byte [rbp + rax + 0xf0], 0
jne 0x140020f68
cmp r8, rbx
je 0x140020f70
sub r8, 2
jmp 0x140020ef3
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
mov r9d, 0x5c
nop
mov ecx, 1
movzx edx, word [r8]
lea rax, [0x140029d78]
cmp r9w, dx
je 0x140020f68
cmp rcx, 1
je 0x140020f5d
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x140020f46
test rax, rax
jne 0x140020f68
cmp r8, rbx
je 0x140020f70
sub r8, 2
jmp 0x140020f30
sub r8, rbx
sar r8, 1
jmp 0x140020f77
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
inc r8
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rbp + 0xd0]
cmp r14, 7
cmova rdx, rsi
lea rcx, [rbp + 0x70]
call fcn.140004010
mov r14d, 0x20
mov rdx, qword [rbp + 0xe8]
cmp rdx, 7
jbe 0x140020ffa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020ff5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140020ff5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025a3c
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [rbp + 0xd0], xmm0
movups xmm1, xmmword [rbp + 0x80]
movups xmmword [rbp + 0xe0], xmm1
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x70]
call fcn.14000b120
mov rsi, rax
mov qword [rbp + 0xb0], rax
cmp r13, rax
je 0x14002108d
mov rdx, qword [rax + 0x10]
mov r9, rax
cmp qword [rax + 0x18], 7
jbe 0x140021043
mov r9, qword [rax]
mov rax, qword [0x140034048]
cmp rdx, rax
ja 0x14002107e
mov rdi, r13
cmp rax, 7
cmova rdi, qword [0x140034030]
mov qword [0x140034040], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rbx], r15w
jmp 0x14002108d
movzx r8d, byte [rsp + 0x30]
mov rcx, r13
call fcn.140016130
nop
mov rcx, rsi
call fcn.14000fc30
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 7
jbe 0x1400210df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400210da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400210da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025a3c
lea r8, str._tof_sih.json
mov rdx, r13
lea rcx, [rbp + 0x70]
call fcn.140002250
mov rdx, rax
lea rdi, [0x140034050]
mov rcx, rdi
call fcn.14000cc50
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x14002114a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021145
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021145
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025a3c
mov rdx, rdi
cmp qword [0x140034068], 7
cmova rdx, qword [0x140034050]
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], r15
mov r8, qword [0x140034060]
lea rcx, [rbp + 0x70]
call fcn.140004010
or r14d, 3
lea rcx, [rbp + 0x70]
cmp qword [rbp + 0x88], 7
cmova rcx, qword [rbp + 0x70]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp + 0xb0]
call fcn.1400255cc
mov r8d, eax
test eax, eax
jne 0x140021204
mov edx, dword [rbp + 0xc0]
test dl, 1
mov ecx, 0x1ff
mov eax, 0x16d
cmovne ecx, eax
mov dword [rbp + 0x54], ecx
bt edx, 0xa
jae 0x1400211f6
mov eax, dword [rbp + 0xc4]
cmp eax, 0xa000000c
jne 0x1400211e8
lea eax, [r8 + 4]
jmp 0x140021227
cmp eax, 0xa0000003
jne 0x1400211f6
mov eax, 0xa
jmp 0x140021227
movzx eax, dl
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x140021227
mov dword [rbp + 0x54], 0xffff
sub eax, 2
je 0x140021222
sub eax, 1
je 0x140021222
sub eax, 0x32
je 0x140021222
cmp eax, 0x46
mov eax, r15d
jne 0x140021227
mov eax, 1
mov dword [rbp + 0x50], r8d
lea rcx, [0x140034018]
mov qword [rbp + 0x58], rcx
movaps xmm0, xmmword [rbp + 0x50]
movdqa xmmword [rbp + 0x50], xmm0
test eax, eax
je 0x14002128a
cmp eax, 1
sete bl
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x14002129c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021297
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021297
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov bl, 1
test r8d, r8d
jne 0x14002179f
jmp 0x140021249
call fcn.140025a3c
test bl, bl
je 0x140021352
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, rdi
lea rcx, [rbp + 0xf0]
call fcn.14001bf90
nop
lea rcx, [rbp + 0xf8]
call fcn.140010660
test rax, rax
jne 0x1400212fa
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xf0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xf0], rax
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xec], edx
lea rcx, [rbp + 0xf8]
call fcn.14000c440
lea rcx, [rbp + 0x100]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x198]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rdx, rdi
cmp qword [0x140034068], 7
cmova rdx, qword [0x140034050]
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], r15
mov r8, qword [0x140034060]
lea rcx, [rbp + 0x70]
call fcn.140004010
or r14d, 0x18
lea rcx, [rbp + 0x70]
cmp qword [rbp + 0x88], 7
cmova rcx, qword [rbp + 0x70]
mov r9d, 0xffffffff
mov r8d, 9
lea rdx, [rbp + 0x50]
call fcn.1400255cc
test eax, eax
jne 0x1400217b4
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x140021402
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400213fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400213fd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025a3c
cmp qword [rbp + 0x58], 0
jne 0x14002146a
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xb0], xmm0
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x50]
call fcn.14001bbc0
movzx edx, byte [0x140034a30]
movzx eax, byte [rbp + 0x50]
mov byte [0x140034a30], al
mov byte [rbp + 0x50], dl
mov rax, qword [0x140034a38]
mov rcx, qword [rbp + 0x58]
mov qword [0x140034a38], rcx
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
call fcn.140010b50
nop
mov cl, 1
call fcn.14001df80
jmp 0x1400216cf
cmp qword [0x140034068], 7
cmova rdi, qword [0x140034050]
lea rax, [0x140029cf8]
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
bts r14d, 7
mov dword [rbp + 0xb0], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rsi
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x50], rax
mov byte [rbp - 0x34], 0
mov byte [rbp - 0x3f], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x30], r15
mov rax, qword [0x140034a18]
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x48], r15
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140011ea0
test rax, rax
jne 0x140021554
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x40], rsi
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x3c], edx
mov qword [rbp + 0xa8], r15
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [rbp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x50]
call fcn.140019430
movzx edx, byte [0x140034a30]
movzx ecx, byte [rax]
mov byte [0x140034a30], cl
mov byte [rax], dl
lea rcx, [rax + 8]
mov rdx, qword [0x140034a38]
mov r8, qword [rcx]
mov qword [0x140034a38], r8
mov qword [rcx], rdx
movzx edx, byte [rax]
call fcn.140010b50
nop
lea rcx, [rsp + 0x50]
cmp qword [rbp - 0x30], 0
je 0x14002164f
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rbp - 0x40]
cmp rax, rcx
jne 0x1400215fa
mov r9, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x28]
mov r8, rdx
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
lea rcx, [rsp + 0x50]
call fcn.14000ecb0
lea rbx, [rsp + 0x50]
test al, al
cmove rbx, r15
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, r15
test eax, eax
cmove rdi, rbx
mov byte [rbp - 0x34], 0
mov byte [rbp - 0x3f], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x30], r15
mov rax, qword [0x140034a18]
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x48], r15
test rdi, rdi
jne 0x14002168f
jmp 0x140021670
mov byte [rbp - 0x34], 0
mov byte [rbp - 0x3f], 0
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x30], r15
mov rax, qword [0x140034a18]
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x48], r15
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x40], rsi
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x50]
call fcn.14000c440
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov byte [0x140034a29], 0
mov byte [0x140034a28], 0
mov ecx, 8
call fcn.140025a00
test rax, rax
je 0x1400216f8
lea rcx, [0x140022d20]
mov qword [rax], rcx
jmp 0x1400216fb
mov rax, r15
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0xb8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140016100]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0xb0], rax
test rax, rax
je 0x14002178d
cmp dword [rbp + 0xb8], 0
je 0x1400217c7
movaps xmm0, xmmword [rbp + 0xb0]
movdqa xmmword [rbp + 0x50], xmm0
lea rcx, [rbp + 0x50]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x1400217c7
mov byte [0x140034a28], 1
mov rcx, qword [rbp + 0x1200]
xor rcx, rsp
call fcn.1400259e0
lea r11, [rsp + 0x1310]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rbp + 0xb8], r15d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea r8, [rbp + 0x70]
lea rdx, [rbp + 0x50]
lea rcx, str.exists
call fcn.14001ddf0
nop
lea r8, [rbp + 0x70]
mov edx, eax
lea rcx, str.file_size
call fcn.14001de50
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3