Function at 0x180007460
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x18019d060]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rdx, [0x1801ca700]
mov ecx, 0x202
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1800074c4
mov r9d, eax
lea r8, str.WSAStartup_failed_with_error:__d
lea rdx, str.init_network_client
lea rcx, [0x18005a520]
call fcn.180007290
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180029360
add rsp, 0x70
pop rbx
ret
cmp qword [0x18019e0d0], 0x10
lea rcx, [0x18019e0b8]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbx
cmovae rcx, qword [0x18019e0b8]
lea r9, [rsp + 0x20]
xorps xmm1, xmm1
mov dword [rsp + 0x38], 1
lea r8, [rsp + 0x30]
mov dword [rsp + 0x3c], 6
lea rdx, str.22345
movdqu xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x180007555
mov r9d, eax
lea r8, str.getaddrinfo_failed_with_error:__
lea rdx, str.init_network_client
lea rcx, [0x18005a520]
call fcn.180007290
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180029360
add rsp, 0x70
pop rbx
ret
mov qword [rsp + 0x80], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rdi, rax
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x1800075e4
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x18019dc88], rax
cmp rax, 0xffffffffffffffff
je 0x180007642
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1800075e4
lea r8, str.Connect_failed
lea rdx, str.init_network_client
lea rcx, [0x18005a520]
call fcn.180007290
mov rcx, qword [0x18019dc88]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
mov qword [0x18019dc88], 0xffffffffffffffff
test rbx, rbx
jne 0x180007570
jmp 0x1800075ee
cmp qword [0x18019dc88], 0xffffffffffffffff
jne 0x180007603
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, rdi
cmp rax, 0xea60
jb 0x180007566
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [0x18019dc88]
cmp rcx, 0xffffffffffffffff
jne 0x18000767a
lea r8, str.Unable_to_connect_to_server
lea rdx, str.init_network_client
lea rcx, [0x18005a520]
call fcn.180007290
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x1800076f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
lea r8, str.socket_failed_with_error:__d
lea rdx, str.init_network_client
lea rcx, [0x18005a520]
call fcn.180007290
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x1800076f1
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x1800076b5
mov r9d, eax
lea r8, str.ioctlsocket_failed_with_error:__d
lea rdx, str.init_network_client
lea rcx, [0x18005a520]
call fcn.180007290
jmp 0x1800076d8
call fcn.180007830
test al, al
jne 0x1800076ef
lea r8, str.Failed_to_send_config
lea rdx, str.init_network_client
lea rcx, [0x18005a520]
call fcn.180007290
mov rcx, qword [0x18019dc88]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x1800076f1
mov al, 1
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180029360
add rsp, 0x70
pop rbx
ret