Function at 0x465ae0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x114
mov eax, dword [0x5627bc]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x120]
push ebx
mov dword [esp + 0x10], eax
xor eax, eax
push ebp
mov ebp, dword [sym.imp.MSVCR80.dll__errno]
xor ebx, ebx
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov word [esp + 0x5d], ax
mov byte [esp + 0x5f], al
mov dword [esp + 0x61], eax
mov word [esp + 0x65], ax
mov byte [esp + 0x67], al
mov dword [esp + 0x69], eax
mov word [esp + 0x6d], ax
mov byte [esp + 0x6f], al
mov eax, 1
push esi
push edi
mov edi, dword [esp + 0x128]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x54], bl
mov byte [esp + 0x68], bl
mov byte [esp + 0x70], bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
call ebp
mov dword [eax], ebx
push edi
mov dword [0x5711e8], ebx
mov dword [0x54c0e8], 0xffffffff
call sub.WSOCK32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x465bf3
push edi
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
jne 0x465baa
call ebp
mov edx, dword [eax]
mov dword [0x5711ec], edx
mov eax, 0xfffff7cc
jmp 0x4662d2
mov eax, dword [eax + 0xc]
mov esi, dword [eax]
xor eax, eax
mov dword [esp + 0x24], eax
push 0x15
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x28], 2
call sub.WSOCK32.dll_htons
mov word [esp + 0x26], ax
movzx ecx, byte [esi]
mov byte [esp + 0x28], cl
mov dl, byte [esi + 1]
mov byte [esp + 0x29], dl
mov al, byte [esi + 2]
mov byte [esp + 0x2a], al
movzx ecx, byte [esi + 3]
mov byte [esp + 0x2b], cl
jmp 0x465c1c
xor eax, eax
mov dword [esp + 0x24], eax
push 0x15
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x28], 2
call sub.WSOCK32.dll_htons
mov word [esp + 0x26], ax
mov dword [esp + 0x28], esi
push ebx
push 1
push 2
call sub.WSOCK32.dll_socket
push 0x10
lea edx, [esp + 0x28]
mov ebp, eax
push edx
push ebp
call sub.WSOCK32.dll_connect
test eax, eax
jge 0x465c56
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push ebp
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffff704
jmp 0x4662d2
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0xffff
push ebp
call sub.WSOCK32.dll_setsockopt
test eax, eax
jge 0x465c8c
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push ebp
mov dword [0x5711ec], edx
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffff51b
jmp 0x4662d2
lea eax, [esp + 0x20]
push eax
push 0x8004667e
push ebp
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jge 0x465cbe
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
push ebp
mov dword [0x5711ec], ecx
call sub.WSOCK32.dll_closesocket
mov eax, 0xffffe9bc
jmp 0x4662d2
push 4
lea edx, [esp + 0x14]
push edx
push 8
push 0xffff
push ebp
call sub.WSOCK32.dll_setsockopt
test eax, eax
jge 0x465cf3
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push ebp
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffff51b
jmp 0x4662d2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
push edx
push ebp
mov dword [esp + 0x20], 0x10
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
jne 0x465d2d
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push ebp
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xffffea84
jmp 0x4662d2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x48]
push edx
push ebp
call sub.WSOCK32.dll_getpeername
cmp eax, 0xffffffff
jne 0x465d5f
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push ebp
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xffffea20
jmp 0x4662d2
movzx ecx, byte [esp + 0x38]
mov esi, dword [sym.imp.MSVCR80.dll_sprintf]
push ecx
lea edx, [esp + 0x94]
push 0x525c04
push edx
call esi
movzx eax, byte [esp + 0x45]
push eax
lea ecx, [esp + 0xc0]
push 0x525c04
push ecx
call esi
movzx edx, byte [esp + 0x52]
push edx
lea eax, [esp + 0x9c]
push 0x525c04
push eax
call esi
movzx ecx, byte [esp + 0x5f]
push ecx
lea edx, [esp + 0xa0]
push 0x525c04
push edx
call esi
movzx eax, byte [esp + 0x78]
push eax
lea ecx, [esp + 0xd4]
push 0x525c04
push ecx
call esi
movzx edx, byte [esp + 0x85]
push edx
lea eax, [esp + 0xc8]
push 0x525c04
push eax
call esi
movzx ecx, byte [esp + 0x92]
add esp, 0x48
push ecx
lea edx, [esp + 0xac]
push 0x525c04
push edx
call esi
movzx eax, byte [esp + 0x57]
push eax
lea ecx, [esp + 0xa8]
push 0x525c04
push ecx
call esi
add esp, 0x18
xor eax, eax
jmp 0x465e20
mov cl, byte [esp + eax + 0x90]
mov byte [eax + 0x571200], cl
add eax, 1
cmp cl, bl
jne 0x465e20
mov edi, 0x571200
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x465e40
mov dx, word [0x539598]
lea eax, [esp + 0xb0]
mov word [edi], dx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x465e60
mov edi, 0x571200
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x465e75
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x571200
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x465e95
mov ax, word [0x539598]
mov word [edi], ax
lea eax, [esp + 0x80]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x465eb1
mov edi, 0x571200
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x465ec6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x571200
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x465ee6
mov cx, word [0x539598]
lea eax, [esp + 0x78]
mov word [edi], cx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x465f00
mov edi, 0x571200
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x465f15
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
nop
mov cl, byte [esp + eax + 0xa0]
mov byte [esp + eax + 0x54], cl
add eax, 1
cmp cl, bl
jne 0x465f30
lea edi, [esp + 0x54]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x465f50
mov dx, word [0x539598]
lea eax, [esp + 0x88]
mov word [edi], dx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x465f70
lea edi, [esp + 0x54]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x465f84
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x54]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x465fa3
mov ax, word [0x539598]
mov word [edi], ax
lea eax, [esp + 0xa8]
mov ecx, eax
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x465fc0
lea edi, [esp + 0x54]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x465fd4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x54]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x465ff3
mov cx, word [0x539598]
lea eax, [esp + 0x98]
mov word [edi], cx
mov esi, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x466010
lea edi, [esp + 0x54]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x466022
mov edx, dword [esp + 0x36]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call sub.WSOCK32.dll_ntohs
movzx esi, ax
mov eax, dword [esp + 0x46]
push eax
call sub.WSOCK32.dll_ntohs
movzx ecx, si
mov esi, dword [sym.imp.MSVCR80.dll_sprintf]
push ecx
lea edx, [esp + 0x6c]
push 0x53bc54
push edx
movzx edi, ax
call esi
movzx eax, di
push eax
lea ecx, [esp + 0x80]
push 0x53bc54
push ecx
call esi
add esp, 0x18
mov edi, ebp
call fcn.00464e80
mov esi, eax
cmp esi, ebx
jle 0x4660aa
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push ebp
mov dword [0x5711ec], edx
call sub.WSOCK32.dll_closesocket
mov eax, esi
neg eax
jmp 0x4662d2
mov eax, dword [0x53bc4c]
mov cx, word [0x53bc50]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x1c]
mov word [esp + 0xbc], cx
mov edx, eax
jmp 0x4660d0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4660d0
lea edi, [esp + 0xb8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x4660e5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xb8]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x466110
mov dx, word [0x53bc0c]
mov cl, byte [0x53bc0e]
mov word [eax], dx
mov byte [eax + 2], cl
lea eax, [esp + 0xb8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x466137
sub eax, edx
lea ecx, [esp + 0xb8]
mov ebx, ebp
call fcn.00464cf0
mov esi, eax
test esi, esi
jle 0x466176
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push ebp
mov dword [0x5711ec], edx
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffffff4
sub eax, esi
jmp 0x4662d2
mov edi, ebp
call fcn.00464e80
mov esi, eax
test esi, esi
jle 0x46619f
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push ebp
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
mov eax, esi
neg eax
jmp 0x4662d2
mov dx, word [0x53bc48]
mov ecx, dword [str.PASS]
mov eax, dword [esp + 0x18]
mov word [esp + 0xf0], dx
mov dword [esp + 0xec], ecx
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4661c1
lea edi, [esp + 0xec]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4661d6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xec]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
lea ebx, [ebx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x466200
mov cx, word [0x53bc0c]
mov dl, byte [0x53bc0e]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0xec]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x466227
sub eax, edx
lea ecx, [esp + 0xec]
mov ebx, ebp
call fcn.00464cf0
mov esi, eax
test esi, esi
jle 0x466262
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push ebp
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffffff2
sub eax, esi
jmp 0x4662d2
mov edi, ebp
call fcn.00464e80
mov esi, eax
test esi, esi
jle 0x466289
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
push ebp
mov dword [0x5711ec], ecx
call sub.WSOCK32.dll_closesocket
mov eax, esi
neg eax
jmp 0x4662d2
mov edi, str.TYPE_I_r_n
mov esi, 8
push 0
push esi
push edi
push ebp
call sub.WSOCK32.dll_send
test eax, eax
jl 0x4662eb
jle 0x4662a7
sub esi, eax
add edi, eax
test esi, esi
ja 0x466293
mov edi, ebp
call fcn.00464e80
mov esi, eax
call dword [sym.imp.MSVCR80.dll__errno]
test esi, esi
jg 0x466189
mov ecx, dword [eax]
mov dword [0x5711ec], ecx
mov dword [0x54c0e8], ebp
mov eax, ebp
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00523ce0
add esp, 0x114
ret
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push ebp
mov dword [0x5711ec], edx
call sub.WSOCK32.dll_closesocket
mov eax, 0xffffe1dd
jmp 0x4662d2