Function at 0x46d450
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a98ba
push eax
mov eax, 0x283c
mov dword fs:[0], esp
call fcn.0049d320
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov al, byte [esp + 0x2870]
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2858], 1
mov byte [esp + 0x18], al
call dword [0x4ab28c]
mov ecx, dword [0x4ab348]
lea eax, [esp + 0x2870]
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
call dword [0x4ab254]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, dword [0x4ab258]
mov byte [esp + 0x2854], 2
test edi, edi
jne 0x46d4d0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x4c]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x48], esi
mov esi, edi
mov edi, dword [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x2860]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x46d504
mov eax, edx
push eax
call dword [0x4ab744]
mov edx, dword [esp + 0x286c]
xor ecx, ecx
mov dword [esp + 0x24], ecx
push edx
mov dword [esp + 0x2c], ecx
mov esi, eax
mov dword [esp + 0x30], ecx
mov word [esp + 0x28], 2
mov dword [esp + 0x34], ecx
call dword [0x4ab774]
push 0
push 1
push 2
mov word [esp + 0x32], ax
mov dword [esp + 0x34], esi
call dword [0x4ab7b4]
mov esi, eax
lea eax, [esp + 0x34]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x40], 1
call dword [0x4ab7ac]
lea ecx, [esp + 0x24]
push 0x10
push ecx
push esi
call dword [0x4ab764]
mov edx, dword [ebp + 0xa8]
mov edi, dword [0x4ab154]
push 0x14
push edx
call edi
test eax, eax
jne 0x46d5c9
push esi
call dword [0x4ab760]
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2858], 1
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x2860]
mov byte [esp + 0x2858], 0
call dword [0x4ab28c]
mov dword [esp + 0x2854], 0xffffffff
jmp 0x46d698
push 0
lea eax, [esp + 0x50]
push ebx
push eax
push esi
call dword [0x4ab758]
mov ecx, dword [ebp + 0xa8]
push 0xc8
push ecx
call edi
test eax, eax
je 0x46d587
xor ebx, ebx
lea edx, [esp + 0x4c]
push ebx
mov ecx, 0xa00
xor eax, eax
lea edi, [esp + 0x50]
push 0x2800
push edx
rep stosd dword es:[edi], eax
push esi
call dword [0x4ab754]
push esi
mov ebp, eax
call dword [0x4ab760]
or esi, 0xffffffff
cmp ebp, esi
jne 0x46d662
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2858], 1
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x2860]
mov byte [esp + 0x2858], bl
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x2874]
mov dword [esp + 0x2858], esi
call dword [0x4ab28c]
xor al, al
jmp 0x46d7d4
cmp ebp, ebx
jne 0x46d6ae
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2858], 1
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x2860]
mov byte [esp + 0x2858], 0
call dword [0x4ab28c]
mov dword [esp + 0x2854], esi
push 1
lea ecx, [esp + 0x2874]
call dword [0x4ab28c]
xor al, al
jmp 0x46d7d4
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call dword [0x4ab28c]
push 1
push ebp
lea ecx, [esp + 0x40]
call dword [0x4ab264]
test al, al
je 0x46d6f6
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], ebp
mov byte [eax + ebp], 0
mov ecx, dword [0x4ab348]
lea eax, [esp + 0x38]
mov byte [esp + 0x2854], 3
mov edx, dword [ecx]
mov ecx, dword [esp + 0x2880]
push edx
push ebx
push eax
call dword [0x4ab254]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x46d73f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x46d736
cmp al, 0xff
je 0x46d736
dec al
mov byte [ecx], al
jmp 0x46d73f
push ecx
call fcn.004985d0
add esp, 4
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x46d763
mov al, byte [ecx - 1]
test al, al
je 0x46d759
cmp al, 0xff
je 0x46d759
dec al
mov byte [ecx - 1], al
jmp 0x46d763
dec ecx
push ecx
call fcn.004985d0
add esp, 4
mov ecx, dword [esp + 0x2860]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x46d796
mov al, byte [ecx - 1]
test al, al
je 0x46d78c
cmp al, 0xff
je 0x46d78c
dec al
mov byte [ecx - 1], al
jmp 0x46d796
dec ecx
push ecx
call fcn.004985d0
add esp, 4
mov ecx, dword [esp + 0x2874]
mov dword [esp + 0x2860], ebx
cmp ecx, ebx
mov dword [esp + 0x2864], ebx
mov dword [esp + 0x2868], ebx
je 0x46d7d2
mov al, byte [ecx - 1]
test al, al
je 0x46d7c8
cmp al, 0xff
je 0x46d7c8
dec al
mov byte [ecx - 1], al
jmp 0x46d7d2
dec ecx
push ecx
call fcn.004985d0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x284c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2848
ret 0x28