Function at 0x140021ba0
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.140026a70
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 0x140021ec9
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 0x140021c35
lea rdx, [rbp + 0x200]
lea rcx, [rbp + 0x90]
call fcn.140003f80
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 0x140021d60
mov r12d, 0x100
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 0xf0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140029ed8]
lea rdx, [0x140029eda]
movzx eax, word [rcx]
cmp ax, r12w
jae 0x140021cff
movzx eax, al
mov byte [rbp + rax + 0xf0], 1
add rcx, 2
cmp rcx, rdx
jne 0x140021ca5
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 0x140021cf4
cmp byte [rbp + rax + 0xf0], 0
jne 0x140021d58
cmp r8, rbx
je 0x140021d60
sub r8, 2
jmp 0x140021ce0
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, [0x140029ed8]
cmp r9w, dx
je 0x140021d58
cmp rcx, 1
je 0x140021d4d
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x140021d36
test rax, rax
jne 0x140021d58
cmp r8, rbx
je 0x140021d60
sub r8, 2
jmp 0x140021d20
sub r8, rbx
sar r8, 1
jmp 0x140021d67
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.140003f80
mov r14d, 0x20
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x140021de7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021de2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021de2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400266ac
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.14000b610
mov rsi, rax
mov qword [rbp + 0x70], rax
cmp r13, rax
je 0x140021e77
mov rdx, qword [rax + 0x10]
mov r9, rax
cmp qword [rax + 0x18], 7
jbe 0x140021e2d
mov r9, qword [rax]
mov rax, qword [0x140034048]
cmp rdx, rax
ja 0x140021e68
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 0x140021e77
movzx r8d, byte [rsp + 0x30]
mov rcx, r13
call fcn.140017170
nop
mov rcx, rsi
call fcn.140010420
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x140021ec9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021ec4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021ec4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400266ac
lea r8, str._tof_sih.json
mov rdx, r13
lea rcx, [rbp + 0x50]
call fcn.140002200
mov rdx, rax
lea rdi, [0x140034050]
mov rcx, rdi
call fcn.14000d1a0
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x140021f31
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021f2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021f2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400266ac
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.140003f80
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.14002623c
mov r8d, eax
test eax, eax
jne 0x140021fed
mov edx, dword [rbp + 0xc0]
test dl, 1
mov ecx, 0x1ff
mov eax, 0x16d
cmovne ecx, eax
mov dword [rbp + 0x54], ecx
mov ecx, edx
shr ecx, 0xa
test cl, 1
je 0x140021fe2
mov eax, dword [rbp + 0xc4]
cmp eax, 0xa000000c
jne 0x140021fd4
mov edx, 4
jmp 0x140022010
cmp eax, 0xa0000003
jne 0x140021fe2
mov edx, 0xa
jmp 0x140022010
shr edx, 4
and edx, 1
or edx, 2
jmp 0x140022010
mov dword [rbp + 0x54], 0xffff
sub eax, 2
je 0x14002200b
sub eax, 1
je 0x14002200b
sub eax, 0x32
je 0x14002200b
cmp eax, 0x46
mov edx, r15d
jne 0x140022010
mov edx, 1
mov dword [rbp + 0x50], r8d
lea rax, [0x140034018]
mov qword [rbp + 0x58], rax
movaps xmm0, xmmword [rbp + 0x50]
movdqa xmmword [rbp + 0x50], xmm0
test edx, edx
je 0x140022073
cmp edx, 1
sete bl
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x140022085
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022080
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022080
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 0x140022574
jmp 0x140022032
call fcn.1400266ac
test bl, bl
je 0x14002213e
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
mov rdx, rdi
lea rcx, [rbp + 0xf0]
call fcn.14001ce20
nop
lea rcx, [rbp + 0xf8]
call fcn.140010ea0
test rax, rax
jne 0x1400220e6
mov rax, qword [rbp + 0xf0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xf0]
add rcx, rax
xor r8d, r8d
mov edx, 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.14000c990
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.140003f80
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.14002623c
test eax, eax
jne 0x140022589
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x1400221e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400221e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400221e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400266ac
cmp qword [rbp + 0xb8], 0
jne 0x14002224a
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x70], xmm0
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x50]
call fcn.14001ca50
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.140011320
nop
mov cl, 1
call fcn.14001ee40
jmp 0x1400224b3
cmp qword [0x140034068], 7
cmova rdi, qword [0x140034050]
lea rax, [0x140029e58]
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
mov r8d, 1
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140012600
test rax, rax
jne 0x140022334
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
mov edx, 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.14001a490
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.140011320
nop
lea rcx, [rsp + 0x50]
cmp qword [rbp - 0x30], 0
je 0x140022432
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 0x1400223dd
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.14000f440
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 0x140022473
jmp 0x140022453
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
mov edx, 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.14000c990
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.140026670
test rax, rax
je 0x1400224dc
lea rcx, [0x140023af0]
mov qword [rax], rcx
jmp 0x1400224df
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, [0x140017140]
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 0x140022565
cmp dword [rbp + 0x78], 0
je 0x14002259c
movaps xmm0, xmmword [rbp + 0x70]
movdqa xmmword [rbp + 0x50], xmm0
lea rcx, [rbp + 0x50]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x14002259c
mov byte [0x140034a28], 1
mov rcx, qword [rbp + 0x1200]
xor rcx, rsp
call fcn.140026650
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.14001ecb0
nop
lea r8, [rbp + 0x50]
mov edx, eax
lea rcx, str.file_size
call fcn.14001ed10
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3