Function at 0x4ccd30
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
sub rsp, 0x4d8
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0x4a8], 0
mov qword [rbp + 0x4a0], 0
mov qword [rbp + 0x490], 0
mov qword [rbp + 0xd8], rbp
mov qword [rbp + 0x4f0], rcx
mov byte [rbp + 0x4f8], dl
mov qword [rbp + 0x500], r8
mov word [rbp + 0x508], r9w
cmp byte [rbp + 0x4f8], 0
je 0x4cce65
mov rcx, qword [rbp + 0x4f0]
movzx rdx, byte [rbp + 0x4f8]
call fcn.0040d650
mov qword [rbp + 0x4f0], rax
nop
nop
mov rcx, qword [rbp + 0x4f0]
xor rdx, rdx
call fcn.0040cc00
mov cx, 0x101
lea rdx, [rbp + 0x2f8]
call sub.wsock32.dll_WSAStartup
mov rax, qword [rbp + 0x4f0]
lea rcx, [rax + 8]
mov rdx, qword [rbp + 0x500]
call fcn.00411f60
mov ecx, 2
mov edx, 1
xor r8, r8
call sub.wsock32.dll_socket
mov rcx, qword [rbp + 0x4f0]
mov qword [rcx + 0x80], rax
mov rax, qword [rbp + 0x4f0]
cmp qword [rax + 0x80], 0xffffffffffffffff
je 0x4cd840
mov rcx, qword [rbp + 0x500]
call fcn.00411320
mov rcx, rax
call sub.wsock32.dll_inet_addr
mov dword [rbp + 0x4cc], eax
cmp dword [rbp + 0x4cc], 0xffffffff
jne 0x4ccf32
mov rcx, qword [rbp + 0x500]
call fcn.00411320
mov rcx, rax
call sub.wsock32.dll_gethostbyname
mov qword [rbp + 0x4b0], rax
cmp qword [rbp + 0x4b0], 0
je 0x4ccf32
mov rax, qword [rbp + 0x4b0]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp + 0x4cc], eax
cmp dword [rbp + 0x4cc], 0xffffffff
je 0x4cd800
cmp word [rbp + 0x508], 0
jne 0x4ccf8e
cmp byte [rbp + 0x510], 0
je 0x4ccf5d
mov word [rbp + 0x508], 0x1d1
jmp 0x4ccf8e
cmp byte [rbp + 0x518], 0
je 0x4ccf85
cmp qword [rbp + 0x520], 0
jne 0x4ccf7a
cmp qword [rbp + 0x528], 0
je 0x4ccf85
mov word [rbp + 0x508], 0x24b
jmp 0x4ccf8e
mov word [rbp + 0x508], 0x19
mov word [rbp + 0x4bc], 2
movzx rcx, word [rbp + 0x508]
call sub.wsock32.dll_htons
mov word [rbp + 0x4be], ax
mov eax, dword [rbp + 0x4cc]
mov dword [rbp + 0x4c0], eax
mov rax, qword [rbp + 0x4f0]
mov dword [rax + 0xb0], 0x10000
xor rcx, rcx
mov rax, qword [rbp + 0x4f0]
mov edx, dword [rax + 0xb0]
mov r8d, 0x1000
mov r9d, 4
call sub.kernel32.dll_VirtualAlloc
mov rcx, qword [rbp + 0x4f0]
mov qword [rcx + 0xb8], rax
mov dword [rbp + 0x49c], 1
mov rax, qword [rbp + 0x4f0]
mov rcx, qword [rax + 0x80]
mov edx, 0x8004667e
lea r8, [rbp + 0x49c]
call sub.wsock32.dll_ioctlsocket
mov rax, qword [rbp + 0x4f0]
mov rcx, qword [rax + 0x80]
lea rdx, [rbp + 0x4bc]
mov r8d, 0x10
call sub.wsock32.dll_connect
mov dword [rbp + 0xf0], 1
mov rax, qword [rbp + 0x4f0]
mov rax, qword [rax + 0x80]
mov qword [rbp + 0xf8], rax
mov eax, dword [0x00b2db88]
mov dword [rbp + 0xe8], eax
mov dword [rbp + 0xec], 0
xor rcx, rcx
xor rdx, rdx
lea r8, [rbp + 0xf0]
xor r9, r9
lea rax, [rbp + 0xe8]
mov qword [rsp + 0x20], rax
call sub.wsock32.dll_select
test eax, eax
jle 0x4cd7e4
mov dword [rbp + 0x49c], 0
mov rax, qword [rbp + 0x4f0]
mov rcx, qword [rax + 0x80]
mov edx, 0x8004667e
lea r8, [rbp + 0x49c]
call sub.wsock32.dll_ioctlsocket
cmp byte [rbp + 0x510], 0
je 0x4cd0e9
mov rcx, qword [rbp + 0x4f0]
call fcn.004cdd00
test al, al
je 0x4cd7c8
cmp qword [0x00b2db80], 0
je 0x4cd108
lea rcx, [rbp + 0x490]
mov rdx, qword [0x00b2db80]
call fcn.00410860
jmp 0x4cd12a
lea rcx, [rbp + 0xd0]
call fcn.004aa300
lea rcx, [rbp + 0x490]
mov rdx, qword [rbp + 0xd0]
xor r8, r8
call fcn.00411660
lea rcx, [rbp + 0x4a8]
call fcn.004100d0
mov rcx, qword [rbp + 0x4f0]
lea rdx, [0x004cda3c]
mov r8, rax
call fcn.004cebe0
test al, al
je 0x4cd75a
lea rcx, [rbp + 0xc8]
lea rdx, [0x004cda4c]
mov r8, qword [rbp + 0x490]
call fcn.00410f60
lea rcx, [rbp + 0x4a8]
call fcn.004100d0
mov rcx, qword [rbp + 0x4f0]
mov rdx, qword [rbp + 0xc8]
lea r8, [0x004cda60]
mov r9, rax
call fcn.004ce990
test al, al
jne 0x4cd1e6
lea rcx, [rbp + 0xc0]
lea rdx, [0x004cda70]
mov r8, qword [rbp + 0x490]
call fcn.00410f60
lea rcx, [rbp + 0x4a8]
call fcn.004100d0
mov rcx, qword [rbp + 0x4f0]
mov rdx, qword [rbp + 0xc0]
lea r8, [0x004cda60]
mov r9, rax
call fcn.004ce990
test al, al
je 0x4cd75a
mov rax, qword [rbp + 0x4f0]
mov byte [rax + 0xd0], 1
cmp byte [rbp + 0x510], 0
jne 0x4cd24f
lea rcx, [0x004cda84]
mov rdx, qword [rbp + 0x4a8]
mov r8d, 1
mov r9d, 0x7fffffff
mov rax, qword [0x00bb8188]
call qword [rax]
test eax, eax
jne 0x4cd254
lea rcx, [0x004cdaa0]
mov rdx, qword [rbp + 0x4a8]
mov r8d, 1
mov r9d, 0x7fffffff
mov rax, qword [0x00bb8188]
call qword [rax]
test eax, eax
jne 0x4cd254
xor rax, rax
jmp 0x4cd256
mov al, 1
mov rcx, qword [rbp + 0x4f0]
mov byte [rcx + 0xd2], al
mov rax, qword [rbp + 0x4f0]
cmp byte [rax + 0xd2], 0
je 0x4cd2d8
cmp byte [rbp + 0x518], 0
jne 0x4cd2dd
cmp qword [rbp + 0x520], 0
je 0x4cd2d8
lea rcx, [0x004cdabc]
mov rdx, qword [rbp + 0x4a8]
mov r8d, 1
mov r9d, 0x7fffffff
mov rax, qword [0x00bb8188]
call qword [rax]
test eax, eax
jne 0x4cd2d8
lea rcx, [0x004cdad4]
mov rdx, qword [rbp + 0x4a8]
mov r8d, 1
mov r9d, 0x7fffffff
mov rax, qword [0x00bb8188]
call qword [rax]
test eax, eax
je 0x4cd2dd
xor rax, rax
jmp 0x4cd2df
mov al, 1
mov rcx, qword [rbp + 0x4f0]
mov byte [rcx + 0xd3], al
mov rax, qword [rbp + 0x4f0]
cmp byte [rax + 0xd3], 0
je 0x4cd3d7
lea rcx, [rbp + 0x4a8]
call fcn.004100d0
mov rcx, qword [rbp + 0x4f0]
lea rdx, [0x004cdaec]
lea r8, [0x004cda3c]
mov r9, rax
call fcn.004ce990
test al, al
je 0x4cd6ba
mov rcx, qword [rbp + 0x4f0]
call fcn.004cdd00
test al, al
je 0x4cd6ba
lea rcx, [rbp + 0xb8]
lea rdx, [0x004cda4c]
mov r8, qword [rbp + 0x490]
call fcn.00410f60
lea rcx, [rbp + 0x4a8]
call fcn.004100d0
mov rcx, qword [rbp + 0x4f0]
mov rdx, qword [rbp + 0xb8]
lea r8, [0x004cda60]
mov r9, rax
call fcn.004ce990
test al, al
jne 0x4cd3d7
lea rcx, [rbp + 0xb0]
lea rdx, [0x004cda70]
mov r8, qword [rbp + 0x490]
call fcn.00410f60
lea rcx, [rbp + 0x4a0]
call fcn.004100d0
mov rcx, qword [rbp + 0x4f0]
mov rdx, qword [rbp + 0xb0]
lea r8, [0x004cda60]
mov r9, rax
call fcn.004ce990
test al, al
je 0x4cd6ba
mov rax, qword [rbp + 0x4f0]
mov byte [rax + 0xd4], 1
mov rax, qword [rbp + 0x4f0]
mov byte [rax + 0xd6], 1
lea rcx, [rbp + 0x4a8]
lea rdx, [0x004cdb04]
lea r8, [0x004cdb14]
xor r9, r9
mov rax, qword [0x00bb8b38]
call qword [rax]
lea rcx, [rbp + 0x4a8]
lea rdx, [0x004cdb24]
lea r8, [0x004cdb14]
xor r9, r9
mov rax, qword [0x00bb8b38]
call qword [rax]
lea rcx, [0x004cdb34]
mov rdx, qword [rbp + 0x4a8]
mov r8d, 1
mov r9d, 0x7fffffff
mov rax, qword [0x00bb8188]
call qword [rax]
mov dword [rbp + 0x49c], eax
cmp dword [rbp + 0x49c], 0
jle 0x4cd840
lea rcx, [rbp + 0x4a8]
mov edx, 1
mov r8d, dword [rbp + 0x49c]
add r8d, 1
call fcn.004113d0
lea rcx, [0x004cdb4c]
mov rdx, qword [rbp + 0x4a8]
mov r8d, 1
mov r9d, 0x7fffffff
mov rax, qword [0x00bb8998]
call qword [rax]
mov dword [rbp + 0x49c], eax
cmp dword [rbp + 0x49c], 0
jle 0x4cd4d7
lea rcx, [rbp + 0x4a8]
mov edx, dword [rbp + 0x49c]
mov r8d, 0x7fffffff
call fcn.004113d0
lea rcx, [rbp + 0xa8]
mov rdx, qword [rbp + 0x4a8]
lea r8, [0x004cdb14]
call fcn.00410f60
lea rcx, [0x004cdb5c]
mov rdx, qword [rbp + 0xa8]
mov r8d, 1
mov r9d, 0x7fffffff
mov rax, qword [0x00bb8188]
call qword [rax]
test eax, eax
jle 0x4cd840
mov rax, qword [rbp + 0x4f0]
mov byte [rax + 0xd5], 1
cmp qword [rbp + 0x520], 0
jne 0x4cd544
cmp qword [rbp + 0x528], 0
je 0x4cd620
lea rcx, [rbp + 0x4a8]
call fcn.004100d0
mov rcx, qword [rbp + 0x4f0]
lea rdx, [0x004cdb70]
lea r8, [0x004cdb88]
mov r9, rax
call fcn.004ce990
test al, al
je 0x4cd61b
lea rcx, [rbp + 0x98]
mov rdx, qword [rbp + 0x520]
call fcn.00427ef0
lea rcx, [rbp + 0xa0]
mov rdx, qword [rbp + 0x98]
call fcn.004447b0
lea rcx, [rbp + 0x4a8]
call fcn.004100d0
mov rcx, qword [rbp + 0x4f0]
mov rdx, qword [rbp + 0xa0]
lea r8, [0x004cdb88]
mov r9, rax
call fcn.004ce990
test al, al
je 0x4cd61b
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x528]
call fcn.00427ef0
lea rcx, [rbp + 0x90]
mov rdx, qword [rbp + 0x88]
call fcn.004447b0
lea rcx, [rbp + 0x4a8]
call fcn.004100d0
mov rcx, qword [rbp + 0x4f0]
mov rdx, qword [rbp + 0x90]
lea r8, [0x004cdb98]
mov r9, rax
call fcn.004ce990
test al, al
jne 0x4cd620
xor rax, rax
jmp 0x4cd622
mov al, 1
mov rcx, qword [rbp + 0x4f0]
mov byte [rcx + 0xd6], al
mov rax, qword [rbp + 0x4f0]
cmp byte [rax + 0xd6], 0
jne 0x4cd840
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0x4a8]
mov r8d, 1
mov r9b, 0xa
mov rbx, qword [0x00bb6cb0]
call qword [rbx]
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x78]
mov rbx, qword [0x00bb8680]
call qword [rbx]
lea rcx, [rbp + 0x70]
mov rdx, qword [rbp + 0x80]
call fcn.00411f60
mov rax, qword [rbp + 0x4f0]
lea rcx, [rax + 0xe0]
mov edx, 3
lea r8, [0x004cdba8]
mov r9, qword [rbp + 0x70]
lea rax, [0x004cdbe4]
mov qword [rsp + 0x20], rax
call fcn.00412390
jmp 0x4cd840
mov rax, qword [rbp + 0x4f0]
cmp byte [rax + 0xd1], 0
jne 0x4cd6e9
mov rax, qword [rbp + 0x4f0]
lea rcx, [rax + 0xe0]
lea rdx, [0x004cdbf4]
call fcn.004106d0
jmp 0x4cd840
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x4a8]
mov r8d, 1
mov r9b, 0xa
mov rbx, qword [0x00bb6cb0]
call qword [rbx]
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov rbx, qword [0x00bb8680]
call qword [rbx]
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x68]
call fcn.00411f60
mov rax, qword [rbp + 0x4f0]
lea rcx, [rax + 0xe0]
mov edx, 3
lea r8, [0x004cdc18]
mov r9, qword [rbp + 0x58]
lea rax, [0x004cdbe4]
mov qword [rsp + 0x20], rax
call fcn.00412390
jmp 0x4cd840
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x4a8]
mov r8d, 1
mov r9b, 0xa
mov rbx, qword [0x00bb6cb0]
call qword [rbx]
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
mov rbx, qword [0x00bb8680]
call qword [rbx]
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x50]
call fcn.00411f60
mov rax, qword [rbp + 0x4f0]
lea rcx, [rax + 0xe0]
mov edx, 3
lea r8, [0x004cdc48]
mov r9, qword [rbp + 0x40]
lea rax, [0x004cdbe4]
mov qword [rsp + 0x20], rax
call fcn.00412390
jmp 0x4cd840
mov rax, qword [rbp + 0x4f0]
lea rcx, [rax + 0xe0]
lea rdx, [0x004cdc70]
call fcn.004106d0
jmp 0x4cd840
mov rax, qword [rbp + 0x4f0]
lea rcx, [rax + 0xe0]
lea rdx, [0x004cdc94]
call fcn.004106d0
jmp 0x4cd840
call sub.wsock32.dll_WSAGetLastError
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00427650
mov rax, qword [rbp + 0x4f0]
lea rcx, [rax + 0xe0]
mov edx, 3
lea r8, [0x004cdcd0]
mov r9, qword [rbp + 0x38]
lea rax, [0x004cdbe4]
mov qword [rsp + 0x20], rax
call fcn.00412390
nop
lea rcx, [rbp + 0x38]
mov edx, 2
call fcn.00410160
lea rcx, [rbp + 0x48]
mov edx, 2
call fcn.00410190
lea rcx, [rbp + 0x58]
call fcn.00410080
lea rcx, [rbp + 0x60]
mov edx, 2
call fcn.00410190
lea rcx, [rbp + 0x70]
call fcn.00410080
lea rcx, [rbp + 0x78]
mov edx, 0xb
call fcn.00410190
lea rcx, [rbp + 0xd0]
call fcn.00410080
lea rcx, [rbp + 0x490]
call fcn.004100d0
lea rcx, [rbp + 0x4a0]
mov edx, 2
call fcn.00410190
cmp byte [rbp + 0x4f8], 0
je 0x4cd914
mov rcx, qword [rbp + 0x4f0]
call fcn.0040d690
mov qword [rbp + 0x4f0], rax
jmp 0x4cd914
mov rax, qword [rbp + 0x4f0]
lea rsp, [rbp + 0x4d8]
pop rbx
pop rbp
ret