Function at 0x5190e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov eax, 0x202
mov word [ebp - 0x10], ax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x51911d
cmp dword [ebp + 0xc], 0
jne 0x519127
mov eax, 0xfffe
jmp 0x519355
lea ecx, [ebp - 0x1a8]
push ecx
movzx edx, word [ebp - 0x10]
push edx
call sub.WSOCK32.dll_WSAStartup
push 0x24
call fcn.005324a9
add esp, 4
mov dword [ebp - 8], eax
push 0x24
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.005323e0
add esp, 0xc
mov ecx, 2
mov edx, dword [ebp - 8]
mov word [edx + 0xc], cx
movsx eax, word [ebp + 0x10]
shl eax, 8
movsx ecx, word [ebp + 0x10]
sar ecx, 8
or eax, ecx
mov edx, dword [ebp - 8]
mov word [edx + 0xe], ax
cmp dword [ebp + 0x14], 0
je 0x519248
cmp dword [ebp + 0x18], 0
je 0x519248
push 0x10
call fcn.005324a9
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x20], 0
jne 0x5191bb
lea eax, [ebp - 8]
push eax
call fcn.005195b0
add esp, 4
mov eax, 0xfffb
jmp 0x519355
push 0x10
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
call fcn.005323e0
add esp, 0xc
mov eax, dword [ebp + 0x14]
push eax
push 0x57af50
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
call fcn.00519040
add esp, 0xc
mov eax, dword [ebp + 0x18]
push eax
push 0x57af5c
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
call fcn.00519040
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x519233
mov eax, dword [ebp + 0x1c]
push eax
push 0x57af68
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
call fcn.00519040
add esp, 0xc
push str.Digest
call fcn.0051b8e0
add esp, 4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
mov dword [edx], eax
jmp 0x519248
push str.Basic
call fcn.0051b8e0
add esp, 4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x519271
push 4
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x10
push edx
call fcn.00533040
add esp, 0xc
jmp 0x5192e1
mov eax, dword [ebp + 0xc]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x519299
lea ecx, [ebp - 8]
push ecx
call fcn.005195b0
add esp, 4
mov eax, 0xfff8
jmp 0x519355
push 4
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x10
push edx
call fcn.00533040
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
call fcn.0051b8e0
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
jne 0x5192e1
lea eax, [ebp - 8]
push eax
call fcn.005195b0
add esp, 4
mov eax, 0xfffb
jmp 0x519355
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
cmp dword [edx], 0xffffffff
jne 0x51930c
lea eax, [ebp - 8]
push eax
call fcn.005195b0
add esp, 4
mov eax, 0xfffc
jmp 0x519355
push 0x10
mov ecx, dword [ebp - 8]
add ecx, 0xc
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call sub.WSOCK32.dll_connect
test eax, eax
je 0x519337
lea ecx, [ebp - 8]
push ecx
call fcn.005195b0
add esp, 4
mov eax, 0xfffa
jmp 0x519355
mov edx, dword [ebp - 8]
mov dword [edx + 0x1c], 1
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret