Function at 0x140021000
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.140025fc0
sub rsp, rax
mov rax, qword [0x140034180]
xor rax, rsp
mov qword [rbp + 0x1200], rax
xor r15d, r15d
mov r14d, r15d
mov dword [rbp + 0x70], r15d
lea r13, [0x140034030]
cmp qword [0x140034040], r14
jne 0x140021329
mov r8d, 0x1000
lea rdx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r15
mov qword [rbp + 0xa8], r15
lea rax, [rbp + 0x200]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140021095
lea rdx, [rbp + 0x200]
lea rcx, [rbp + 0x90]
call fcn.140003f40
nop
lea rbx, [rbp + 0x90]
mov rsi, qword [rbp + 0x90]
mov r14, qword [rbp + 0xa8]
cmp r14, 7
cmova rbx, rsi
mov rdi, qword [rbp + 0xa0]
test rdi, rdi
je 0x1400211c0
mov r12d, 0x100
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 0xf0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140029d68]
lea rdx, [0x140029d6a]
movzx eax, word [rcx]
cmp ax, r12w
jae 0x14002115f
movzx eax, al
mov byte [rbp + rax + 0xf0], 1
add rcx, 2
cmp rcx, rdx
jne 0x140021105
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
nop dword [rax + rax]
movzx eax, word [r8]
cmp ax, r12w
jae 0x140021154
cmp byte [rbp + rax + 0xf0], 0
jne 0x1400211b8
cmp r8, rbx
je 0x1400211c0
sub r8, 2
jmp 0x140021140
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
mov r9d, 0x5c
nop dword [rax + rax]
mov ecx, 1
movzx edx, word [r8]
lea rax, [0x140029d68]
cmp r9w, dx
je 0x1400211b8
cmp rcx, 1
je 0x1400211ad
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x140021196
test rax, rax
jne 0x1400211b8
cmp r8, rbx
je 0x1400211c0
sub r8, 2
jmp 0x140021180
sub r8, rbx
sar r8, 1
jmp 0x1400211c7
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
inc r8
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rbp + 0x90]
cmp r14, 7
cmova rdx, rsi
lea rcx, [rbp + 0x50]
call fcn.140003f40
mov r14d, 0x20
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x140021247
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021242
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021242
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025bfc
movups xmm0, xmmword [rbp + 0x50]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rbp + 0x60]
movups xmmword [rbp + 0xa0], xmm1
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xb0]
call fcn.14000b010
mov rsi, rax
mov qword [rbp + 0x70], rax
cmp r13, rax
je 0x1400212d7
mov rdx, qword [rax + 0x10]
mov r9, rax
cmp qword [rax + 0x18], 7
jbe 0x14002128d
mov r9, qword [rax]
mov rax, qword [0x140034048]
cmp rdx, rax
ja 0x1400212c8
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 0x1400212d7
movzx r8d, byte [rsp + 0x30]
mov rcx, r13
call fcn.140016440
nop
mov rcx, rsi
call fcn.14000fb60
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x140021329
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021324
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021324
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025bfc
lea r8, str._tof_sih.json
mov rdx, r13
lea rcx, [rbp + 0x50]
call fcn.1400021b0
mov rdx, rax
lea rdi, [0x140034050]
mov rcx, rdi
call fcn.14000cb40
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x140021391
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002138c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002138c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025bfc
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.140003f40
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.14002578c
mov r8d, eax
test eax, eax
jne 0x14002144b
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 0x14002143d
mov eax, dword [rbp + 0xc4]
cmp eax, 0xa000000c
jne 0x14002142f
lea eax, [r8 + 4]
jmp 0x14002146e
cmp eax, 0xa0000003
jne 0x14002143d
mov eax, 0xa
jmp 0x14002146e
movzx eax, dl
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x14002146e
mov dword [rbp + 0x54], 0xffff
sub eax, 2
je 0x140021469
sub eax, 1
je 0x140021469
sub eax, 0x32
je 0x140021469
cmp eax, 0x46
mov eax, r15d
jne 0x14002146e
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 0x1400214d1
cmp eax, 1
sete bl
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x1400214e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400214de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400214de
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 0x1400219cb
jmp 0x140021490
call fcn.140025bfc
test bl, bl
je 0x140021599
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, rdi
lea rcx, [rbp + 0xf0]
call fcn.14001c270
nop
lea rcx, [rbp + 0xf8]
call fcn.140010550
test rax, rax
jne 0x140021541
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.14000c330
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 + 0x50], xmm0
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], r15
mov r8, qword [0x140034060]
lea rcx, [rbp + 0x50]
call fcn.140003f40
or r14d, 0x18
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rcx, qword [rbp + 0x50]
mov r9d, 0xffffffff
mov r8d, 9
lea rdx, [rbp + 0xb0]
call fcn.14002578c
test eax, eax
jne 0x1400219e0
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x140021640
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002163b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002163b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025bfc
cmp qword [rbp + 0xb8], 0
jne 0x1400216a5
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x70], xmm0
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x50]
call fcn.14001bea0
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.140010a30
nop
mov cl, 1
call fcn.14001e250
jmp 0x14002190a
cmp qword [0x140034068], 7
cmova rdi, qword [0x140034050]
lea rax, [0x140029ce8]
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 + 0x70], 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.140011d80
test rax, rax
jne 0x14002178c
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 + 0xe8], r15
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [rbp + 0xb0]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x50]
call fcn.140019730
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.140010a30
nop
lea rcx, [rsp + 0x50]
cmp qword [rbp - 0x30], 0
je 0x14002188a
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 0x140021835
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.14000ebe0
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 0x1400218ca
jmp 0x1400218ab
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.14000c330
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.140025bc0
test rax, rax
je 0x140021933
lea rcx, [0x140022f40]
mov qword [rax], rcx
jmp 0x140021936
mov rax, r15
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140016410]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x70], rax
test rax, rax
je 0x1400219bc
cmp dword [rbp + 0x78], 0
je 0x1400219f3
movaps xmm0, xmmword [rbp + 0x70]
movdqa xmmword [rbp + 0x50], xmm0
lea rcx, [rbp + 0x50]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x1400219f3
mov byte [0x140034a28], 1
mov rcx, qword [rbp + 0x1200]
xor rcx, rsp
call fcn.140025ba0
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 + 0x78], 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.14001e0c0
nop
lea r8, [rbp + 0x50]
mov edx, eax
lea rcx, str.file_size
call fcn.14001e120
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3