Function at 0x42ad60
Capabilities:
Create tcp socket
Create udp socket
Get socket status
Send data
Send data on socket

Disassembly:
mov eax, 0x3128
call fcn.00458680
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [esp + 0x3134]
push esi
push edi
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x42ada9
mov ecx, dword [eax + 0xc70]
test ecx, ecx
je 0x42ada9
mov ecx, dword [eax + 0xc88]
test ecx, ecx
je 0x42ada9
call fcn.00419470
test al, al
jne 0x42ada9
mov eax, dword [ebx + 0x24]
mov ecx, ebp
push eax
call fcn.00423f00
mov ecx, dword [ebx + 4]
mov dl, byte [0x494b70]
mov esi, dword [ebx + 0x130]
mov dword [esp + 0x1c], ecx
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x1131]
mov byte [esp + 0x1130], dl
mov edx, dword [ebx + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x24]
cmp eax, 0xffffffff
je 0x42ae19
mov ecx, dword [ebp + 4]
mov edi, dword [ecx + 0x364d8]
lea ecx, [eax*8]
sub ecx, eax
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*8]
lea ecx, [edi + eax*4]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x1138]
push str._s__s_MAP
push edx
call fcn.004585a3
add esp, 0x10
jmp 0x42ae36
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x1134]
push str._s_unknown_MAP
push eax
call fcn.004585a3
add esp, 0xc
lea eax, [esi*8]
sub eax, esi
lea esi, [eax + eax*4]
mov eax, dword [ebp + 4]
shl esi, 3
mov dword [esp + 0x10], esi
mov ecx, dword [esi + eax + 0x20a04]
lea eax, [esi + eax + 0x20a04]
test ecx, ecx
mov dword [esp + 0x18], eax
jne 0x42ae9b
mov edi, str.TCP
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
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 eax, dword [esp + 0x18]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
cmp dword [eax], 1
jne 0x42aed5
mov edi, str.UDP
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0xa558]
test eax, eax
je 0x42af5a
mov al, byte [0x494b70]
mov ecx, 0x400
mov byte [esp + 0x12c], al
xor eax, eax
lea edi, [esp + 0x12d]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + edx + 0x20b10]
lea edx, [esi + edx + 0x20a08]
push ecx
push edx
lea eax, [esp + 0x134]
push str._s:_d
push eax
call fcn.004585a3
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1130]
mov esi, edi
mov edi, edx
mov edx, ecx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1130]
push eax
call fcn.00430d10
mov ecx, dword [ebp + 4]
add esp, 4
lea eax, [esi + ecx]
mov ecx, dword [esi + ecx + 0x20a04]
test ecx, ecx
jne 0x42b125
add eax, 0x20a08
push str.autoproxy
push eax
call fcn.0045d2f0
add esp, 8
test eax, eax
jne 0x42afeb
mov dl, byte [0x494b70]
mov esi, dword [esp + 0x1c]
mov ecx, 0x400
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], dl
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x130]
push eax
push ecx
push ebx
push esi
mov ecx, ebp
mov dword [esp + 0x2c], 0x1000
call fcn.0041c7d0
push esi
mov ecx, ebp
call fcn.0042b280
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3128
ret 4
mov edx, dword [ebp + 4]
push 6
push str.proxy:
lea eax, [esi + edx + 0x20a08]
push eax
call fcn.0045a6b0
add esp, 0xc
test eax, eax
jne 0x42b0b0
mov cl, byte [0x494b70]
mov edx, dword [ebp + 4]
mov byte [esp + 0x12c], cl
mov ecx, 0x400
lea edi, [esp + 0x12d]
push 0x48fa70
rep stosd dword es:[edi], eax
lea edi, [esi + edx + 0x20a0e]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x130]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x130]
push ecx
call fcn.00458600
mov esi, dword [esp + 0x18]
mov byte [eax], 0
mov edx, dword [ebp + 4]
push 0x48fa70
lea eax, [esi + edx + 0x20a08]
push eax
call fcn.00458600
mov ecx, dword [ebp + 4]
add esp, 0x10
mov edx, dword [esi + ecx + 0x20b10]
mov ecx, ebp
push edx
push eax
lea eax, [esp + 0x134]
push eax
push ebx
call fcn.0042b5a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3128
ret 4
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [ebp + 4]
push 4
add esi, ecx
mov edi, eax
mov ecx, ebp
mov edx, dword [esi + 0x20b10]
add esi, 0x20a08
push edx
push esi
push ebx
push edi
call fcn.00426140
test eax, eax
jne 0x42b0fc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3128
ret 4
mov eax, dword [esp + 0x1c]
push 0
push eax
push edi
push ebx
mov ecx, ebp
call fcn.00423f50
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3128
ret 4
mov cl, byte [0x494b70]
xor eax, eax
mov byte [esp + 0x2134], cl
mov ecx, 0x400
lea edi, [esp + 0x2135]
mov dword [esp + 0x24], eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x14], 0x1000
cmp eax, 2
mov dword [esp + 0x20], 1
jne 0x42b21c
mov edi, dword [sym.imp.WS2_32.dll_select]
mov eax, dword [ebp + 8]
test eax, eax
je 0x42b21c
mov edx, dword [ebx + 8]
lea eax, [esp + 0x20]
push eax
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
push 0x40
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], 1
call edi
test eax, eax
jne 0x42b1ad
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x134]
cmp eax, 0x493e0
ja 0x42b21c
jmp 0x42b212
jl 0x42b21c
mov eax, dword [ebx + 8]
lea edx, [esp + 0x28]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42b212
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x2138]
push ecx
push edx
push ebx
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0x1000
call fcn.0041c7d0
test eax, eax
je 0x42b21c
mov edx, dword [esp + 0x14]
lea ecx, [ebx + 0xc]
push 0x10
push ecx
mov ecx, dword [ebp + 4]
push 0
push edx
lea eax, [esp + 0x2144]
mov edx, dword [esi + ecx + 0x20a00]
push eax
push edx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x42b21c
cmp dword [ebx + 0x1c], 2
je 0x42b168
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3128
ret 4