Function at 0x140043020
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rdi, r8
mov r14, rdx
mov rsi, rcx
cmp byte [r8], 0
je 0x1400430c1
lea rdx, str.Patience_please__were_already_shutting_down_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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]
nop
mov rdi, qword [rsi + 8]
test rdi, rdi
je 0x1400430a8
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400430a8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1400430a8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
xor al, al
mov rbx, qword [rsp + 0x278]
add rsp, 0x240
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], socket
lea r8d, [r15 + 0x10]
lea rdx, str.Shutting_down...
lea rcx, [rsp + 0x60]
call fcn.140009b80
lea rax, [rsp + 0x60]
mov qword [rbp + 0x188], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xc0]
call fcn.140007cc0
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rdx, rax
lea rcx, [rbp]
call fcn.140007cc0
mov byte [rbp + 0x20], ntohl
mov dword [rbp + 0x24], r15d
mov byte [rbp + 0x28], r15b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14004315f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14004315a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400431a9
mov rcx, r8
call fcn.1401896b8
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1400431b5
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400431b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400431b0
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 + 0x70], r15
mov qword [rsp + 0x78], socket
mov byte [rsp + 0x60], 0
lea rdx, [rbp]
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 + 0x18]
cmp rdx, 0x10
jb 0x140043227
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043222
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043222
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401896b8
mov byte [rdi], 1
mov byte [rbp + 0x180], 0
mov ecx, 8
call fcn.14018967c
test rax, rax
je 0x14004324c
lea rcx, [rbp + 0x180]
mov qword [rax], rcx
jmp 0x14004324f
mov rax, r15
mov qword [rbp + 0x188], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x14003efa0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400437f6
cmp qword [rsi], 0
je 0x1400435bd
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], setsockopt
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.Saving_wallet_file...
lea rcx, [rbp - 0x80]
call fcn.140009b80
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xe0]
call fcn.140007cc0
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140007cc0
mov byte [rbp + 0x50], ntohl
mov dword [rbp + 0x54], r15d
mov byte [rbp + 0x58], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140043326
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140043321
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004336e
mov rcx, r8
call fcn.1401896b8
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14004337a
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043375
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043375
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 - 0x70], r15
mov qword [rbp - 0x68], setsockopt
mov byte [rbp - 0x80], 0
lea rdx, [rbp + 0x30]
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 + 0x48]
cmp rdx, 0x10
jb 0x1400433e9
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400433e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400433e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401896b8
mov rax, qword [rsi]
mov rcx, qword [rax + 0x70]
mov rax, qword [rcx]
mov qword [rbp - 0x20], r15
mov qword [rbp - 8], setsockopt
mov qword [rbp - 0x10], r15
mov byte [rbp - 0x20], 0
lea r8, [rbp - 0x20]
mov dl, 2
call qword [rax + 0x48]
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x14004344f
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004344a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004344a
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 - 0x50], r15
mov qword [rbp - 0x48], setsockopt
mov r8d, 0x21
lea rdx, str.Shutting_down_wallet_interface...
lea rcx, [rbp - 0x60]
call fcn.140009b80
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x100]
call fcn.140007cc0
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.140007cc0
mov byte [rbp + 0x80], ntohl
mov dword [rbp + 0x84], r15d
mov byte [rbp + 0x88], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400434ed
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400434e8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140043535
mov rcx, r8
call fcn.1401896b8
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140043541
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004353c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004353c
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 - 0x50], r15
mov qword [rbp - 0x48], setsockopt
mov byte [rbp - 0x60], 0
lea rdx, [rbp + 0x60]
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 + 0x78]
cmp rdx, 0x10
jb 0x1400435b0
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400435ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400435ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401896b8
mov rax, qword [rsi]
mov rcx, qword [rax + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], setsockopt
mov r8d, 0x20
lea rdx, str.Shutting_down_node_connection...
lea rcx, [rbp - 0x40]
call fcn.140009b80
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x120]
call fcn.140007cc0
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rdx, rax
lea rcx, [rbp + 0x90]
call fcn.140007cc0
mov byte [rbp + ntohl0], 0xb
mov dword [rbp + 0xb4], r15d
mov byte [rbp + 0xb8], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14004365e
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140043659
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400436a6
mov rcx, r8
call fcn.1401896b8
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x1400436b2
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400436ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400436ad
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 - 0x30], r15
mov qword [rbp - 0x28], setsockopt
mov byte [rbp - 0x40], 0
lea rdx, [rbp + 0x90]
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 + 0xa8]
cmp rdx, 0x10
jb 0x14004372a
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043725
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043725
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401896b8
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x20]
mov byte [rbp + 0x180], 1
cmp dword [rsp + 0x58], 0
je 0x140043806
call sub.MSVCP140.dll__Thrd_id
cmp dword [rsp + 0x58], eax
je 0x140043811
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll__Thrd_join
test eax, eax
jne 0x1400437eb
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, str.Bye.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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]
nop
cmp dword [rsp + 0x58], 0
je 0x1400437af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov rdi, qword [rsi + 8]
test rdi, rdi
je 0x1400437e4
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400437e4
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1400437e4
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov al, 1
jmp 0x1400430aa
mov ecx, 2
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rsp + 0x58], r15d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3