Function at 0x42ddc0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create raw socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, dword [0x47404b0]
sub esp, 0x10
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov eax, ebp
jne 0x42dde6
shl eax, 8
mov edi, 0x484008
lea ebx, [eax + 0x47411e0]
jmp 0x42ddf4
shl eax, 8
mov edi, 0x483fec
lea ebx, [eax + 0x47411e0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x32fb544]
mov ecx, edx
and ecx, 3
push 0x40a
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00423fc0
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp*4 + 0x47b22c], eax
jne 0x42deb4
mov dword [ebp*4 + 0x47b22c], eax
mov eax, dword [0x47404b0]
test eax, eax
jne 0x42de6a
mov edi, 0x483fdc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x42de87
mov edi, 0x483fcc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x32fb544]
push 0
push 0x40a
push ecx
call fcn.00423fc0
pop edi
mov dword [ebp*4 + 0x47411bc], 1
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x42df0b
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x42df31
mov eax, dword [0x47404b0]
push esi
test eax, eax
jne 0x42dee0
push 0x483fc0
jmp 0x42dee5
push 0x483fb4
push ebx
call fcn.004361ae
mov edx, dword [0x32fb544]
add esp, 0xc
push 0
push 0
push 0x40a
push edx
call fcn.00423fc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
lea edi, [esp + 0x14]
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [eax + 8]
mov word [esp + 0x10], ax
jmp 0x42df3c
mov dword [esp + 0x14], eax
mov word [esp + 0x10], 2
mov cx, word [ebp*2 + 0x476de4]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [ebp*4 + 0x47b22c]
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jge 0x42dfed
mov ecx, dword [ebp*4 + 0x47b22c]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, dword [0x47404b0]
mov dword [ebp*4 + 0x47b22c], 0xffffffff
test eax, eax
jne 0x42dfae
mov edi, 0x483fa4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x42dfcb
mov edi, 0x483f94
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x32fb544]
push 0
push 0x40a
push ecx
call fcn.00423fc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [0x47404b0]
test eax, eax
jne 0x42e015
mov edi, 0x483f88
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x42e032
mov edi, 0x483f7c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
mov eax, dword [0x32fb544]
and ecx, 3
push 0x40a
push eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp*4 + 0x47411bc], 9
call fcn.00423fc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret