Function at 0x42e8e0
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 [0x4769704]
sub esp, 0x10
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov eax, ebp
jne 0x42e906
shl eax, 8
mov edi, 0x4848d4
lea ebx, [eax + 0x476a438]
jmp 0x42e914
shl eax, 8
mov edi, str.Communication_in_progress
lea ebx, [eax + 0x476a438]
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 [0x32f9204]
mov ecx, edx
and ecx, 3
push 0x40a
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004249c0
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp*4 + 0x47ba2c], eax
jne 0x42e9d4
mov dword [ebp*4 + 0x47ba2c], eax
mov eax, dword [0x4769704]
test eax, eax
jne 0x42e98a
mov edi, 0x482aa4
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 0x42e9a7
mov edi, str.Socket_error
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 [0x32f9204]
push 0
push 0x40a
push ecx
call fcn.004249c0
pop edi
mov dword [ebp*4 + 0x476a414], 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 0x42ea2b
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x42ea51
mov eax, dword [0x4769704]
push esi
test eax, eax
jne 0x42ea00
push 0x48489c
jmp 0x42ea05
push str.Error__s
push ebx
call fcn.00436cce
mov edx, dword [0x32f9204]
add esp, 0xc
push 0
push 0
push 0x40a
push edx
call fcn.004249c0
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 0x42ea5c
mov dword [esp + 0x14], eax
mov word [esp + 0x10], 2
mov cx, word [ebp*2 + 0x4775e4]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [ebp*4 + 0x47ba2c]
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jge 0x42eb0d
mov ecx, dword [ebp*4 + 0x47ba2c]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, dword [0x4769704]
mov dword [ebp*4 + 0x47ba2c], 0xffffffff
test eax, eax
jne 0x42eace
mov edi, 0x484880
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 0x42eaeb
mov edi, str.Error_connect
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 [0x32f9204]
push 0
push 0x40a
push ecx
call fcn.004249c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [0x4769704]
test eax, eax
jne 0x42eb35
mov edi, 0x484864
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 0x42eb52
mov edi, str.Connect
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 [0x32f9204]
and ecx, 3
push 0x40a
push eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp*4 + 0x476a414], 9
call fcn.004249c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret