Function at 0x14000e450
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rsi, rcx
xor r15d, r15d
mov dword [rbp + 0x1e8], r15d
xor edx, edx
lea rcx, [rbp + 0xc0]
call fcn.14017a860
mov edi, 4
mov dword [rbp + 0x1e8], edi
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
cmp rbx, r14
je 0x14000e59d
lea r12, str.friendlyName
lea r13, str.address
lea r15, str.paymentID
nop
lea rcx, [rbp + 0x120]
call fcn.140166030
nop
mov rax, qword [rbp + 0x120]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], ntohl
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rbp + 0x120]
call qword [rax + 0x30]
mov rax, qword [rbp + 0x120]
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
lea rdx, [rbx + 0x20]
lea r8, [rsp + 0x70]
lea rcx, [rbp + 0x120]
call qword [rax + 0x30]
mov rax, qword [rbp + 0x120]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 9
lea rdx, [rbx + 0x40]
lea r8, [rsp + 0x30]
lea rcx, [rbp + 0x120]
call qword [rax + 0x30]
lea rdx, [rbp + 0x128]
lea rcx, [rbp + 0xe8]
call fcn.14017a730
or edi, 8
mov dword [rbp + 0x1e8], edi
lea rcx, [rbp + 0x120]
call fcn.140166090
nop
lea rdx, [rbp + 0xe8]
lea rcx, [rbp + 0xc0]
call fcn.14017c1b0
nop
lea rcx, [rbp + 0xe8]
call fcn.14017aa90
add rbx, 0x60
cmp rbx, r14
jne 0x14000e4c0
xor r15d, r15d
and edi, 0xfffffffb
or edi, 2
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xc0]
call fcn.14017d690
or edi, 1
lea rcx, [rbp + 0xc0]
call fcn.14017aa90
nop
lea rbx, [0x14022d080]
cmp qword [0x14022d098], 0x10
cmovae rbx, qword [0x14022d080]
lea rax, [0x1401a4fb0]
mov qword [rbp - 0x50], rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or edi, 0x10
mov dword [rbp + 0x1e8], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x50]
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 - 0x50]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rdi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rax, [rbp - 0x48]
mov qword [rbp + 0x1f0], rax
lea rcx, [rbp - 0x48]
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 - 0x48], rax
mov byte [rbp + 0x34], 0
mov byte [rbp + 0x29], 0
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x38], r15
mov rax, qword [0x14023add8]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], r15
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.14000de70
test rax, rax
jne 0x14000e6b2
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
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 - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], rdi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x40], 6
jne 0x14000e8f7
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rdx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x60]
lea rcx, [rbp - 0x50]
call fcn.140006d90
cmp qword [rbp + 0x38], 0
je 0x14000e81e
mov rax, qword [rbp - 0x30]
lea rcx, [rbp + 0x28]
cmp qword [rax], rcx
jne 0x14000e731
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x40]
mov qword [rax], rcx
mov rax, qword [rbp - 0x10]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 8]
mov dword [rax], edx
cmp qword [rbp + 0x20], 0
je 0x14000e791
cmp byte [rbp + 0x29], 0
je 0x14000e791
mov rax, qword [rbp - 0x48]
mov edx, 0xffffffff
lea rcx, [rbp - 0x48]
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14000e757
xor al, al
jmp 0x14000e793
lea rax, [rbp + 0x1e8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x2c]
mov rcx, qword [rbp + 0x20]
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 0x14000e7dd
sub eax, 1
je 0x14000e7e1
cmp eax, 2
je 0x14000e78d
xor al, al
jmp 0x14000e793
mov byte [rbp + 0x29], 0
mov al, 1
lea rbx, [rbp - 0x48]
test al, al
cmove rbx, r15
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rbx, r15
mov byte [rbp + 0x34], 0
mov byte [rbp + 0x29], 0
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x38], r15
mov rax, qword [0x14023add8]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], r15
test rbx, rbx
jne 0x14000e860
jmp 0x14000e843
mov byte [rbp + 0x29], 0
lea rax, [rsp + 0x30]
mov rbx, qword [rbp + 0x1e8]
sub rbx, rax
je 0x14000e812
mov r9, qword [rbp + 0x38]
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x14000e812
xor al, al
jmp 0x14000e793
cmp byte [rbp + 0x29], 0
sete al
jmp 0x14000e793
mov byte [rbp + 0x34], 0
mov byte [rbp + 0x29], 0
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x38], r15
mov rax, qword [0x14023add8]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], r15
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
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 - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], rdi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.1400084f0
lea rcx, [rbp - 0x40]
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 + 0x58]
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 [rbp - 0x58]
cmp rdx, 0x10
jb 0x14000e8d8
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e8d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000edea
call fcn.1401896b8
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], setsockopt
mov byte [rbp - 0x70], 0
mov rcx, rsi
call fcn.140008ff0
mov al, 1
jmp 0x14000ee10
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], socket
mov r8d, socket
lea rdx, str.current_directory.
lea rcx, [rsp + 0x30]
call fcn.140009b80
lea rax, [rsp + 0x30]
mov qword [rbp + 0x1e8], rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xc0]
call fcn.140007cc0
mov rbx, rax
mov qword [rbp + 0x1f0], rax
mov rdx, rax
lea rcx, [rbp + 0x120]
call fcn.140007cc0
mov byte [rbp + 0x140], 0xa
mov dword [rbp + 0x144], r15d
mov byte [rbp + 0x148], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000e9a2
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000e99d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000e9ec
mov rcx, r8
call fcn.1401896b8
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000e9f8
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e9f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e9f3
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], r15
mov qword [rsp + 0x48], socket
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x70], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], setsockopt
mov r8d, 0x2a
lea rdx, str.Check_you_are_able_to_write_files_to_your
lea rcx, [rsp + 0x70]
call fcn.140009b80
lea rax, [rsp + 0x70]
mov qword [rbp + 0x1e8], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0xc0]
call fcn.140007cc0
mov rbx, rax
mov qword [rbp + 0x1f0], rax
mov rdx, rax
lea rcx, [rbp + 0x170]
call fcn.140007cc0
mov byte [rbp + 0x190], 0xa
mov dword [rbp + 0x194], r15d
mov byte [rbp + 0x198], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000eab4
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000eaaf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000eafd
mov rcx, r8
call fcn.1401896b8
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14000eb09
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000eb04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000eb04
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], r15
mov qword [rbp - 0x78], setsockopt
mov byte [rsp + 0x70], 0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], socket
mov r8d, 0x24
lea rdx, str.Failed_to_save_address_book_to_disk_
lea rcx, [rsp + 0x50]
call fcn.140009b80
lea rax, [rsp + 0x50]
mov qword [rbp + 0x1e8], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0xc0]
call fcn.140007cc0
mov rbx, rax
mov qword [rbp + 0x1f0], rax
mov rdx, rax
lea rcx, [rbp + 0xe8]
call fcn.140007cc0
mov byte [rbp + 0x108], 0xa
mov dword [rbp + 0x10c], r15d
mov byte [rbp + 0x110], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000ebc5
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000ebc0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000ec0f
mov rcx, r8
call fcn.1401896b8
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14000ec1b
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ec16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ec16
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], r15
mov qword [rsp + 0x68], socket
mov byte [rsp + 0x50], 0
lea rdx, [rbp + 0xe8]
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 + 0x170]
mov rcx, rax
call fcn.140008950
lea rdx, [rbp + 0x120]
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 + 0x100]
cmp rdx, 0x10
jb 0x14000ecc4
inc rdx
mov rcx, qword [rbp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ecbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ecbf
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 + 0xf8], xmm0
mov byte [rbp + 0xe8], 0
mov rdx, qword [rbp + 0x188]
cmp rdx, 0x10
jb 0x14000ed1f
inc rdx
mov rcx, qword [rbp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ed1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ed1a
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 + 0x180], xmm0
mov byte [rbp + 0x170], 0
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x14000ed7b
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ed75
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ed75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401896b8
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], rdi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.1400084f0
lea rcx, [rbp - 0x40]
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 + 0x58]
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 [rbp - 0x58]
cmp rdx, 0x10
jb 0x14000edf6
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000edf1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000edf1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401896b8
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], setsockopt
mov byte [rbp - 0x70], 0
mov rcx, rsi
call fcn.140008ff0
xor al, al
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret