Function at 0x140022c90
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.140027b60
sub rsp, rax
mov rax, qword [0x140036180]
xor rax, rsp
mov qword [rbp + 0x1200], rax
xor r15d, r15d
mov r14d, r15d
mov dword [rbp + 0x70], r15d
lea r13, [0x140036030]
cmp qword [0x140036040], r14
jne 0x140022fb9
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 0x140022d25
lea rdx, [rbp + 0x200]
lea rcx, [rbp + 0x90]
call fcn.1400040c0
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 0x140022e50
mov r12d, 0x100
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 0xf0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x14002bed8]
lea rdx, [0x14002beda]
movzx eax, word [rcx]
cmp ax, r12w
jae 0x140022def
movzx eax, al
mov byte [rbp + rax + 0xf0], 1
add rcx, 2
cmp rcx, rdx
jne 0x140022d95
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 0x140022de4
cmp byte [rbp + rax + 0xf0], 0
jne 0x140022e48
cmp r8, rbx
je 0x140022e50
sub r8, 2
jmp 0x140022dd0
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, [0x14002bed8]
cmp r9w, dx
je 0x140022e48
cmp rcx, 1
je 0x140022e3d
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x140022e26
test rax, rax
jne 0x140022e48
cmp r8, rbx
je 0x140022e50
sub r8, 2
jmp 0x140022e10
sub r8, rbx
sar r8, 1
jmp 0x140022e57
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.1400040c0
mov r14d, 0x20
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x140022ed7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022ed2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022ed2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002779c
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.14000c030
mov rsi, rax
mov qword [rbp + 0x70], rax
cmp r13, rax
je 0x140022f67
mov rdx, qword [rax + 0x10]
mov r9, rax
cmp qword [rax + 0x18], 7
jbe 0x140022f1d
mov r9, qword [rax]
mov rax, qword [0x140036048]
cmp rdx, rax
ja 0x140022f58
mov rdi, r13
cmp rax, 7
cmova rdi, qword [0x140036030]
mov qword [0x140036040], 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 0x140022f67
movzx r8d, byte [rsp + 0x30]
mov rcx, r13
call fcn.140018260
nop
mov rcx, rsi
call fcn.140011360
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x140022fb9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022fb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022fb4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002779c
lea r8, str._tof_sih.json
mov rdx, r13
lea rcx, [rbp + 0x50]
call fcn.140002340
mov rdx, rax
lea rdi, [0x140036050]
mov rcx, rdi
call fcn.14000dd80
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x140023021
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002301c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002301c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002779c
mov rdx, rdi
cmp qword [0x140036068], 7
cmova rdx, qword [0x140036050]
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], r15
mov r8, qword [0x140036060]
lea rcx, [rbp + 0x70]
call fcn.1400040c0
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.14002732c
mov r8d, eax
test eax, eax
jne 0x1400230dd
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 0x1400230d2
mov eax, dword [rbp + 0xc4]
cmp eax, 0xa000000c
jne 0x1400230c4
mov edx, 4
jmp 0x140023100
cmp eax, 0xa0000003
jne 0x1400230d2
mov edx, 0xa
jmp 0x140023100
shr edx, 4
and edx, 1
or edx, 2
jmp 0x140023100
mov dword [rbp + 0x54], 0xffff
sub eax, 2
je 0x1400230fb
sub eax, 1
je 0x1400230fb
sub eax, 0x32
je 0x1400230fb
cmp eax, 0x46
mov edx, r15d
jne 0x140023100
mov edx, 1
mov dword [rbp + 0x50], r8d
lea rax, [0x140036020]
mov qword [rbp + 0x58], rax
movaps xmm0, xmmword [rbp + 0x50]
movdqa xmmword [rbp + 0x50], xmm0
test edx, edx
je 0x140023163
cmp edx, 1
sete bl
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x140023175
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023170
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140023170
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 0x140023664
jmp 0x140023122
call fcn.14002779c
test bl, bl
je 0x14002322e
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
mov rdx, rdi
lea rcx, [rbp + 0xf0]
call fcn.14001df10
nop
lea rcx, [rbp + 0xf8]
call fcn.140011de0
test rax, rax
jne 0x1400231d6
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.14000d510
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 [0x140036068], 7
cmova rdx, qword [0x140036050]
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], r15
mov r8, qword [0x140036060]
lea rcx, [rbp + 0x50]
call fcn.1400040c0
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.14002732c
test eax, eax
jne 0x140023679
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x1400232d5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400232d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400232d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002779c
cmp qword [rbp + 0xb8], 0
jne 0x14002333a
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x70], xmm0
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x50]
call fcn.14001db40
movzx edx, byte [0x140036ad0]
movzx eax, byte [rbp + 0x50]
mov byte [0x140036ad0], al
mov byte [rbp + 0x50], dl
mov rax, qword [0x140036ad8]
mov rcx, qword [rbp + 0x58]
mov qword [0x140036ad8], rcx
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
call fcn.140012250
nop
mov cl, 1
call fcn.14001ff30
jmp 0x1400235a3
cmp qword [0x140036068], 7
cmova rdi, qword [0x140036050]
lea rax, [0x14002be58]
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 [0x140036ab8]
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.140013530
test rax, rax
jne 0x140023424
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.14001b580
movzx edx, byte [0x140036ad0]
movzx ecx, byte [rax]
mov byte [0x140036ad0], cl
mov byte [rax], dl
lea rcx, [rax + 8]
mov rdx, qword [0x140036ad8]
mov r8, qword [rcx]
mov qword [0x140036ad8], r8
mov qword [rcx], rdx
movzx edx, byte [rax]
call fcn.140012250
nop
lea rcx, [rsp + 0x50]
cmp qword [rbp - 0x30], 0
je 0x140023522
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 0x1400234cd
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.140010360
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 [0x140036ab8]
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x48], r15
test rdi, rdi
jne 0x140023563
jmp 0x140023543
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 [0x140036ab8]
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.14000d510
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 [0x140036ac9], 0
mov byte [0x140036ac8], 0
mov ecx, 8
call fcn.140027760
test rax, rax
je 0x1400235cc
lea rcx, [0x140024be0]
mov qword [rax], rcx
jmp 0x1400235cf
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, [0x140018230]
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 0x140023655
cmp dword [rbp + 0x78], 0
je 0x14002368c
movaps xmm0, xmmword [rbp + 0x70]
movdqa xmmword [rbp + 0x50], xmm0
lea rcx, [rbp + 0x50]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x14002368c
mov byte [0x140036ac8], 1
mov rcx, qword [rbp + 0x1200]
xor rcx, rsp
call fcn.140027740
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.14001fda0
nop
lea r8, [rbp + 0x50]
mov edx, eax
lea rcx, str.file_size
call fcn.14001fe00
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3