Function at 0x140019bf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rsi, rcx
xor r13d, r13d
mov dword [rbp + 0x240], r13d
mov rax, qword [rcx]
call qword [rax + 0x108]
mov r14, rax
lea rax, [0x1401a4fb0]
mov qword [rbp - 0x10], rax
lea rcx, [rbp + 0x98]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov r12d, 1
mov dword [rbp + 0x240], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x10], rax
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x14], edx
lea rax, [rbp - 8]
mov qword [rbp + 0x250], rax
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 8], rax
mov byte [rbp + 0x74], r13b
mov byte [rbp + 0x69], r13b
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x78], r13
mov rax, qword [0x14023add8]
mov qword [rbp + 0x6c], rax
mov qword [rbp + 0x60], r13
lea r15, [0x14022d300]
mov rdx, r15
cmp qword [0x14022d318], 0x10
cmovae rdx, qword [0x14022d300]
lea r9d, [r13 + 0x40]
lea r8d, [r13 + 2]
lea rcx, [rbp - 8]
call fcn.14000de70
xor r8d, r8d
test rax, rax
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x10]
je 0x140019d1b
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140019d29
add rcx, rax
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]
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], socket
test byte [rbp + rcx], 6
lea rcx, [rsp + 0x30]
je 0x14001a01d
mov r8d, 0x2f
lea rdx, str.Ensure_it_is_not_open_in_any_other_application.
call fcn.140009b80
lea rax, [rsp + 0x30]
mov qword [rbp + 0x240], rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.140007cc0
mov rbx, rax
mov qword [rbp + 0x250], rax
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140007cc0
mov byte [rbp - 0x20], 0xa
mov dword [rbp - 0x1c], r13d
mov byte [rbp - 0x18], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140019dd8
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140019dd3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140019e22
mov rcx, r8
call fcn.1401896b8
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140019e2e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019e29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140019e29
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1401896b8
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], socket
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], socket
mov r8d, 0x2f
lea rdx, str.Couldnt_open_transactions.csv_file_for_saving_
lea rcx, [rsp + 0x50]
call fcn.140009b80
lea rax, [rsp + 0x50]
mov qword [rbp + 0x240], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140007cc0
mov rbx, rax
mov qword [rbp + 0x250], rax
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140007cc0
mov byte [rbp - 0x70], 0xa
mov dword [rbp - 0x6c], r13d
mov byte [rbp - 0x68], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140019ede
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140019ed9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140019f28
mov rcx, r8
call fcn.1401896b8
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140019f34
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019f2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140019f2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1401896b8
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], socket
mov byte [rsp + 0x50], 0
lea rdx, [rsp + 0x70]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008950
lea rdx, [0x140007220]
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]
lea rdx, [rbp - 0x40]
mov rcx, rax
call fcn.140008950
lea rdx, [0x140007220]
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]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140019fc4
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019fbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140019fbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401896b8
movdqa xmm0, xmmword [0x1401a5050]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x14001aa81
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a013
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001a013
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401896b8
jmp 0x14001aa81
mov r8d, socket
lea rdx, str.Saving_CSV_file...
call fcn.140009b80
lea rax, [rsp + 0x30]
mov qword [rbp + 0x240], rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.140007cc0
mov rbx, rax
mov qword [rbp + 0x250], rax
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140007cc0
mov byte [rbp - 0x20], ntohl
mov dword [rbp - 0x1c], r13d
mov byte [rbp - 0x18], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14001a0a1
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14001a09c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001a0eb
mov rcx, r8
call fcn.1401896b8
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001a0f7
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a0f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001a0f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1401896b8
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], socket
mov byte [rsp + 0x30], 0
lea rdx, [rbp - 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008950
lea rdx, [0x140007220]
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]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x14001a169
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a164
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001a164
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401896b8
lea rdx, str.Timestamp_Block_Height_Hash_Amount_In_Out
lea rcx, [rbp - 0x10]
call fcn.140006860
lea rdx, [0x140007220]
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 rdi, r13
test r14, r14
je 0x14001a4e4
lea rbx, [0x1401a577c]
nop dword [rax]
mov rax, qword [rsi]
mov r8, rdi
lea rdx, [rbp + 0x160]
mov rcx, rsi
call qword [rax + pe_nt_image_headers64]
nop
mov rax, qword [rbp + 0x1b8]
test rax, rax
jne 0x14001a20d
mov rdx, qword [rbp + 0x1f0]
cmp rdx, 0x10
jb 0x14001a4d8
inc rdx
mov rcx, qword [rbp + 0x1d8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a203
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a564
call fcn.1401896b8
jmp 0x14001a4d8
cqo
xor rax, rdx
sub rax, rdx
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140041d50
nop
lea rdx, [0x1401a5780]
cmp qword [rbp + 0x1b8], 0
cmovg rdx, rbx
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], socket
mov byte [rsp + 0x50], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14001a255
lea rcx, [rsp + 0x50]
call fcn.140009b80
nop
mov rdx, qword [rbp + 0x168]
lea rcx, [rbp - 0x60]
call fcn.140043820
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001a289
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140006d90
lea rdx, [0x1401a5784]
mov rcx, rax
call fcn.140006860
mov edx, dword [rbp + 0x170]
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___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1401a5784]
call fcn.140006860
mov rbx, rax
mov r8d, 0x20
lea rdx, [rbp + 0x174]
lea rcx, [rsp + 0x70]
call fcn.14017f3c0
or r12d, 2
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
mov rcx, rbx
call fcn.140006d90
lea rdx, [0x1401a5784]
mov rcx, rax
call fcn.140006860
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, rax
call fcn.140006d90
lea rdx, [0x1401a5784]
mov rcx, rax
call fcn.140006860
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
call fcn.140006d90
lea rdx, [0x140007220]
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]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14001a3a3
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a39e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a548
call fcn.1401896b8
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], setsockopt
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x14001a3f0
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a3ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a54f
call fcn.1401896b8
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001a42d
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a428
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a556
call fcn.1401896b8
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], socket
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001a47d
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a478
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a55d
call fcn.1401896b8
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], socket
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp + 0x1f0]
cmp rdx, 0x10
jb 0x14001a4d1
inc rdx
mov rcx, qword [rbp + 0x1d8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a4cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a564
call fcn.1401896b8
lea rbx, [0x1401a577c]
inc rdi
cmp rdi, r14
jb 0x14001a1a0
cmp qword [rbp + 0x78], 0
je 0x14001a631
mov rax, qword [rbp + 0x10]
lea rcx, [rbp + 0x68]
cmp qword [rax], rcx
jne 0x14001a51e
mov r8, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x80]
mov qword [rax], rcx
mov rax, qword [rbp + 0x30]
mov qword [rax], rcx
sub r8d, ecx
mov rax, qword [rbp + 0x48]
mov dword [rax], r8d
cmp qword [rbp + 0x60], 0
je 0x14001a5a4
cmp byte [rbp + 0x69], 0
je 0x14001a5a4
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
lea rcx, [rbp - 8]
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14001a56b
xor al, al
jmp 0x14001a5a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rax, [rbp + 0x240]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x6c]
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001a5f0
sub eax, 1
je 0x14001a5f4
cmp eax, 2
je 0x14001a5a0
xor al, al
jmp 0x14001a5a6
mov byte [rbp + 0x69], 0
mov al, 1
lea rbx, [rbp - 8]
test al, al
cmove rbx, r13
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rbx, r13
mov byte [rbp + 0x74], 0
mov byte [rbp + 0x69], 0
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x78], r13
mov rax, qword [0x14023add8]
mov qword [rbp + 0x6c], rax
mov qword [rbp + 0x60], r13
test rbx, rbx
jne 0x14001a672
jmp 0x14001a656
mov byte [rbp + 0x69], 0
lea rax, [rsp + 0x70]
mov rbx, qword [rbp + 0x240]
sub rbx, rax
je 0x14001a625
mov r9, qword [rbp + 0x78]
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x14001a625
xor al, al
jmp 0x14001a5a6
cmp byte [rbp + 0x69], 0
sete al
jmp 0x14001a5a6
mov byte [rbp + 0x74], 0
mov byte [rbp + 0x69], 0
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x78], r13
mov rax, qword [0x14023add8]
mov qword [rbp + 0x6c], rax
mov qword [rbp + 0x60], r13
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x10]
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]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x48], socket
mov qword [rsp + 0x40], 1
mov word [rsp + 0x30], 0x21
lea rax, [rsp + 0x30]
mov qword [rbp + 0x240], rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.140007cc0
mov rbx, rax
mov qword [rbp + 0x250], rax
mov rdx, rax
lea rcx, [rbp + 0x130]
call fcn.140007cc0
mov byte [rbp + 0x150], 2
mov dword [rbp + 0x154], r13d
mov byte [rbp + 0x158], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14001a70e
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14001a709
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001a758
mov rcx, r8
call fcn.1401896b8
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001a764
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a75f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001a75f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1401896b8
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], socket
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov rdi, qword [0x14022d310]
cmp qword [0x14022d318], 0x10
cmovae r15, qword [0x14022d300]
cmp rdi, 0x10
jae 0x14001a7b3
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x50], xmm0
mov ebx, 0xf
jmp 0x14001a82d
mov rbx, rdi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14001a80a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001aae2
mov rcx, rax
call fcn.14018967c
mov rcx, rax
test rax, rax
je 0x14001a803
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14001a819
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14001a816
call fcn.14018967c
jmp 0x14001a819
mov rax, r13
mov qword [rsp + 0x50], rax
lea r8, [rdi + 1]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rbx
lea rax, [rsp + 0x50]
mov qword [rbp + 0x240], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140007cc0
mov rbx, rax
mov qword [rbp + 0x250], rax
mov rdx, rax
lea rcx, [rbp + 0x100]
call fcn.140007cc0
mov byte [rbp + 0x120], 2
mov dword [rbp + 0x124], r13d
mov byte [rbp + 0x128], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14001a8b5
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14001a8b0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001a8ff
mov rcx, r8
call fcn.1401896b8
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001a90b
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a906
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001a906
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1401896b8
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], socket
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x70], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], setsockopt
mov r8d, 0x1c
lea rdx, str.CSV_successfully_written_to
lea rcx, [rsp + 0x70]
call fcn.140009b80
lea rax, [rsp + 0x70]
mov qword [rbp + 0x240], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x60]
call fcn.140007cc0
mov rbx, rax
mov qword [rbp + 0x250], rax
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140007cc0
mov byte [rbp - 0x20], 2
mov dword [rbp - 0x1c], r13d
mov byte [rbp - 0x18], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14001a9b8
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14001a9b3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001aa01
mov rcx, r8
call fcn.1401896b8
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14001aa0d
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001aa08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001aa08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1401896b8
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], setsockopt
mov byte [rsp + 0x70], 0
lea rdx, [rbp - 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008950
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.140008950
lea rdx, [rbp + 0x130]
mov rcx, rax
call fcn.140008950
lea rdx, [0x140007220]
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]
nop
lea rcx, [rbp - 0x40]
call fcn.140008440
nop
lea rcx, [rbp + 0x100]
call fcn.140008440
nop
lea rcx, [rbp + 0x130]
call fcn.140008440
nop
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x10], rax
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x14], edx
lea rcx, [rbp - 8]
call fcn.1400084f0
lea rcx, [rbp]
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 + 0x98]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rbx, qword [rsp + 0x348]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140008fb0
nop
int3