Function at 0x140001040
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov r12, rdx
mov rsi, rcx
mov qword [rsp + 0x180], rcx
mov qword [rsp + 0x180], rdx
xor r13d, r13d
cmp qword [rdx + 0x18], 0xf
jbe 0x14000108c
mov rdx, qword [rdx]
lea rcx, [rsp + 0x70]
call fcn.140002ad0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
cmp qword [rsp + 0x100], 0
jne 0x1400010f8
lea rdx, str.Error_opening_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002dc0
lea rdx, [0x140002f90]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x50], r13
mov word [rsp + 0x58], 1
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov rax, qword [rsp + rcx + 0xb8]
mov qword [rsp + 0x40], rax
test rax, rax
sete byte [rsp + 0x48]
mov byte [rsp + 0x49], 0
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
mov qword [rsp + 0x68], rsi
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
movzx r14d, byte [rsp + 0x49]
mov rbx, qword [rsp + 0x40]
movzx r15d, byte [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
test rax, rax
jne 0x14000116f
movzx ebp, byte [rsp + 0x48]
jmp 0x140001190
test rbx, rbx
je 0x140001188
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140001188
movzx r14d, al
jmp 0x14000118b
mov rbx, r13
mov bpl, 1
nop
test r15b, r15b
jne 0x1400011ae
test rdi, rdi
je 0x1400011a8
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
jne 0x1400011ab
mov rdi, r13
mov r15b, 1
test rbx, rbx
jne 0x14000128f
test rdi, rdi
jne 0x140001298
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x80]
call fcn.1400027c0
lea rcx, [rsp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x120]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [r12 + 0x18]
cmp rdx, 0xf
jbe 0x14000124e
inc rdx
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x140001249
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001303
mov rcx, r8
call fcn.140003ad0
mov qword [r12 + 0x10], r13
mov qword [r12 + 0x18], 0xf
mov byte [r12], 0
mov rax, rsi
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140003ab0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test rdi, rdi
jne 0x1400011c0
test bpl, bpl
jne 0x1400012b9
test rbx, rbx
je 0x1400012b6
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x1400012b6
movzx r14d, al
jmp 0x1400012b9
mov rbx, r13
mov byte [rsp + 0x30], r14b
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x1400012d1
mov byte [rdx], r14b
inc qword [rsi + 8]
jmp 0x1400012de
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.140003540
test rbx, rbx
je 0x140001188
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x140001188
mov byte [rsp + 0x48], 0
jmp 0x14000116f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3