Function at 0x140001a50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
mov rbp, qword [sym.__acrt_iob_func]
mov qword [rsp + 0x1b0], rcx
mov qword [rsp + 0x1c0], r8
mov word [rsp + 0x4c], dx
mov word [rsp + 0x4e], r9w
jmp 0x140001b5e
call rbp
lea r13, str._n____Connect__s_Successed_Now_Connect__s_n
mov r9, rbx
mov r8, r12
mov rdx, r13
mov rcx, rax
call sym.fprintf
mov ecx, 1
call rbp
mov rcx, rax
call sym.fflush
mov rcx, qword [0x14000f048]
test rcx, rcx
je 0x140001adf
mov r9, rbx
mov r8, r12
mov rdx, r13
call sym.fprintf
mov rcx, qword [0x14000f048]
call sym.fflush
lea rdx, [rsp + 0x70]
mov rcx, rdi
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_connect]
mov ecx, 1
test eax, eax
jne 0x140001d0d
call rbp
lea rsi, str._n____Connect__s_Successed_Transfering..._n
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sym.fprintf
mov ecx, 1
call rbp
mov rcx, rax
call sym.fflush
mov rcx, qword [0x14000f048]
test rcx, rcx
je 0x140001b49
mov r8, rbx
mov rdx, rsi
call sym.fprintf
mov rcx, qword [0x14000f048]
call sym.fflush
lea rcx, [rsp + 0x50]
call sym.in_data_tran
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x1b0]
call sym.gethost
cmp eax, 0xffffffff
mov ebx, eax
je 0x140001db0
mov rcx, qword [rsp + 0x1c0]
call sym.gethost
cmp eax, 0xffffffff
mov r14d, eax
je 0x140001de8
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov r8d, 6
mov edx, 1
mov ecx, 2
mov qword [rsp + 0x50], rax
lea r12, [rsp + 0x80]
mov rsi, rax
call qword [sym.imp.WS2_32.dll_socket]
movzx r13d, word [rsp + 0x4c]
mov qword [rsp + 0x58], rax
mov rdi, rax
mov eax, 2
mov word [rsp + 0x60], ax
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_htons]
movzx r15d, word [rsp + 0x4e]
mov edx, 2
mov dword [rsp + 0x64], ebx
mov word [rsp + 0x70], dx
mov word [rsp + 0x62], ax
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_htons]
mov dword [rsp + 0x30], r13d
movzx r8d, bl
mov rcx, r12
mov word [rsp + 0x72], ax
lea r13, str._d._d._d._d:_d
movzx eax, bh
mov r9d, eax
mov eax, ebx
mov rdx, r13
mov dword [rsp + 0x74], r14d
shr eax, 0x18
mov dword [rsp + 0x28], eax
mov eax, ebx
lea rbx, [rsp + 0xf0]
shr eax, 0x10
movzx eax, al
mov dword [rsp + 0x20], eax
call sym.sprintf
mov eax, r14d
mov rcx, rbx
mov dword [rsp + 0x30], r15d
movzx eax, ah
movzx r8d, r14b
mov rdx, r13
mov r9d, eax
mov eax, r14d
shr eax, 0x18
mov dword [rsp + 0x28], eax
mov eax, r14d
shr eax, 0x10
movzx eax, al
mov dword [rsp + 0x20], eax
call sym.sprintf
cmp rsi, 0xffffffffffffffff
mov ecx, 1
je 0x140001d60
cmp rdi, 0xffffffffffffffff
je 0x140001d60
call rbp
lea r13, str._n____Connect__s__Please_Wait_n
mov r8, r12
mov rdx, r13
mov rcx, rax
call sym.fprintf
mov ecx, 1
call rbp
mov rcx, rax
call sym.fflush
mov rcx, qword [0x14000f048]
test rcx, rcx
je 0x140001cec
mov r8, r12
mov rdx, r13
call sym.fprintf
mov rcx, qword [0x14000f048]
call sym.fflush
lea rdx, [rsp + 0x60]
mov rcx, rsi
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_connect]
mov ecx, 1
test eax, eax
je 0x140001a90
call rbp
lea r12, str._n_____Connect__s_Failed_CutDown..._n
mov r8, rbx
mov rcx, rax
mov rdx, r12
call sym.fprintf
mov rcx, qword [0x14000f048]
test rcx, rcx
je 0x140001d47
mov r8, rbx
mov rdx, r12
call sym.fprintf
mov rcx, qword [0x14000f048]
call sym.fflush
mov rcx, rsi
mov rbx, qword [sym.imp.WS2_32.dll_closesocket]
call rbx
mov rcx, rdi
call rbx
jmp 0x140001b53
call rbp
lea rbx, str._n_____Create_Socket_Failed_n
mov rcx, rax
mov rdx, rbx
call sym.fprintf
mov rcx, qword [0x14000f048]
test rcx, rcx
je 0x140001d94
mov rdx, rbx
call sym.fprintf
mov rcx, qword [0x14000f048]
call sym.fflush
mov eax, 0xffffffff
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 1
call rbp
mov r8, qword [rsp + 0x1b0]
mov rcx, rax
lea rdx, str._n_____Reslove_Host__s_Failed..._n
call sym.fprintf
mov ecx, 1
call rbp
mov rcx, rax
call sym.fflush
xor eax, eax
jmp 0x140001d99
mov ecx, 1
call rbp
mov r8, qword [rsp + 0x1c0]
mov rcx, rax
jmp 0x140001dc2