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

Disassembly:
mov eax, 0x211c
call fcn.0043ae00
mov eax, dword [esp + 0x2120]
mov edx, dword [0x51a850]
push ebx
push ebp
lea eax, [eax + eax*2]
push esi
mov dword [esp + 0x10], ecx
push edi
lea ebx, [eax + eax*4]
mov al, byte [0x473aa0]
mov ecx, 0x400
lea edi, [esp + 0x1129]
lea ebx, [ebx + ebx*4]
shl ebx, 2
mov ebp, dword [ebx + edx + 4]
mov esi, dword [ebx + edx]
mov byte [esp + 0x1128], al
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + edx + 0xc]
mov edx, dword [ebx + edx + 0x20]
cmp edx, 0xffffffff
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], esi
je 0x423cd3
mov ecx, edx
shl ecx, 5
add ecx, edx
mov edx, dword [0x4f4398]
lea ecx, [edx + ecx*4]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x1130]
push str._s__s_MAP
push edx
call fcn.0043afc4
add esp, 0x10
jmp 0x423cf0
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x112c]
push str._s_unknown_MAP
push eax
call fcn.0043afc4
add esp, 0xc
mov edi, dword [esp + 0x18]
shl ebp, 3
sub ebp, edi
lea ebp, [ebp + ebp*4]
shl ebp, 3
mov eax, dword [ebp + 0x517188]
test eax, eax
jne 0x423d3d
mov edi, str.TCP
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1128]
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 eax, dword [ebp + 0x517188]
cmp eax, 1
jne 0x423d7d
mov edi, str.UDP
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1128]
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 eax, dword [0x501cf0]
test eax, eax
je 0x423dfc
mov al, byte [0x473aa0]
mov ecx, 0x400
mov byte [esp + 0x124], al
xor eax, eax
lea edi, [esp + 0x125]
lea edx, [ebp + 0x51718c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x517294]
lea eax, [esp + 0x124]
push ecx
push edx
push str._s:_d
push eax
call fcn.0043afc4
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1128]
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 + 0x1128]
push eax
call fcn.0040a330
mov eax, dword [ebp + 0x517188]
add esp, 4
test eax, eax
jne 0x423fa4
lea ebx, [ebp + 0x51718c]
push str.autoproxy
push ebx
call fcn.0043fa60
add esp, 8
test eax, eax
jne 0x423e86
mov cl, byte [0x473aa0]
lea edi, [esp + 0x125]
mov byte [esp + 0x124], cl
mov ecx, 0x400
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x128]
push edx
push eax
push esi
mov ecx, edi
mov dword [esp + 0x28], 0x1000
call fcn.004112c0
push esi
mov ecx, edi
call fcn.00424140
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x211c
ret 4
push 6
push str.proxy:
push ebx
call fcn.00445b80
add esp, 0xc
test eax, eax
jne 0x423f34
mov cl, byte [0x473aa0]
lea edi, [esp + 0x125]
mov byte [esp + 0x124], cl
mov ecx, 0x400
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x517192]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x124]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x46efe0
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 + 0x128]
push ecx
call fcn.0043ad80
push 0x46efe0
push ebx
mov byte [eax], 0
call fcn.0043ad80
mov edx, dword [ebp + 0x517294]
mov ecx, dword [esp + 0x2140]
add esp, 0x10
push edx
push eax
lea eax, [esp + 0x12c]
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004243a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x211c
ret 4
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edx, dword [ebp + 0x517294]
push 4
push edx
push ebx
mov ebx, dword [esp + 0x20]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00419740
test eax, eax
jne 0x423f78
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x211c
ret 4
mov eax, dword [esp + 0x2130]
push 0
push esi
push edi
push eax
mov ecx, ebx
call fcn.00417ca0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x211c
ret 4
mov cl, byte [0x473aa0]
mov edx, dword [0x51a850]
mov byte [esp + 0x124], cl
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x125]
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0x10], 0x1000
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
cmp dword [ebx + edx + 0x18], 2
jne 0x42408a
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push 0
push 0
push ecx
push 0x40
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x424016
inc edi
cmp edi, 0xa
jg 0x42408a
jmp 0x424079
jl 0x42408a
lea edx, [esp + 0x20]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x424079
xor edi, edi
lea eax, [esp + 0x10]
push edi
lea ecx, [esp + 0x128]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push esi
mov dword [esp + 0x20], 0x1000
call fcn.004112c0
test eax, eax
je 0x42408a
mov edx, dword [0x51a850]
mov ecx, dword [esp + 0x10]
push 0x10
lea eax, [ebx + edx + 8]
lea edx, [esp + 0x128]
push eax
mov eax, dword [ebp + 0x517184]
push edi
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x42408a
mov ecx, dword [0x51a850]
cmp dword [ebx + ecx + 0x18], 2
je 0x423fe8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x211c
ret 4