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

Disassembly:
mov eax, 0x3128
call fcn.00457d20
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 0x42a669
mov ecx, dword [eax + 0xc70]
test ecx, ecx
je 0x42a669
mov ecx, dword [eax + 0xc88]
test ecx, ecx
je 0x42a669
call fcn.00419050
test al, al
jne 0x42a669
mov eax, dword [ebx + 0x24]
mov ecx, ebp
push eax
call fcn.004239b0
mov ecx, dword [ebx + 4]
mov dl, byte [0x493b50]
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
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x42a6cf
mov edx, dword [ebp + 4]
lea eax, [eax + eax*2]
shl eax, 6
mov edx, dword [edx + 0x275c8]
add eax, edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x1138]
push str._s__s_MAP
push ecx
call fcn.00457c43
add esp, 0x10
jmp 0x42a6ec
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x1134]
push str._s_unknown_MAP
push edx
call fcn.00457c43
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 0x42a751
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 0x42a78b
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 0x42a810
mov al, byte [0x493b50]
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.00457c43
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.00430470
mov ecx, dword [ebp + 4]
add esp, 4
lea eax, [esi + ecx]
mov ecx, dword [esi + ecx + 0x20a04]
test ecx, ecx
jne 0x42a9db
add eax, 0x20a08
push str.autoproxy
push eax
call fcn.0045c970
add esp, 8
test eax, eax
jne 0x42a8a1
mov dl, byte [0x493b50]
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.0041c300
push esi
mov ecx, ebp
call fcn.0042ab40
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.00459d50
add esp, 0xc
test eax, eax
jne 0x42a966
mov cl, byte [0x493b50]
mov edx, dword [ebp + 4]
mov byte [esp + 0x12c], cl
mov ecx, 0x400
lea edi, [esp + 0x12d]
push 0x48ea44
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.00457ca0
mov esi, dword [esp + 0x18]
mov byte [eax], 0
mov edx, dword [ebp + 4]
push 0x48ea44
lea eax, [esi + edx + 0x20a08]
push eax
call fcn.00457ca0
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.0042ae60
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.00425b50
test eax, eax
jne 0x42a9b2
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.00423a00
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 [0x493b50]
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 0x42aad2
mov edi, dword [sym.imp.WS2_32.dll_select]
mov eax, dword [ebp + 8]
test eax, eax
je 0x42aad2
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 0x42aa63
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x134]
cmp eax, 0x493e0
ja 0x42aad2
jmp 0x42aac8
jl 0x42aad2
mov eax, dword [ebx + 8]
lea edx, [esp + 0x28]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42aac8
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.0041c300
test eax, eax
je 0x42aad2
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 0x42aad2
cmp dword [ebx + 0x1c], 2
je 0x42aa1e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3128
ret 4