Function at 0x46a260
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0xffffffff
cmp dword [0x4b08c6], 0
je 0x46a2af
cmp dword [ebp + 0x18], 0x1fe
jg 0x46a2af
cmp dword [ebp + 0x10], 0
jne 0x46a2b6
xor eax, eax
jmp 0x46a4db
cmp dword [ebp + 0x14], 0
je 0x46a2ea
mov dword [ebp - 8], 0
jmp 0x46a2d7
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
add eax, 4
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x18]
jge 0x46a2ea
mov edx, dword [ebp + 0x14]
mov dword [edx], 0x8000
jmp 0x46a2c5
mov eax, dword [0x4b0916]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46a2ff
xor eax, eax
jmp 0x46a4db
mov ecx, dword [0x4b08ca]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46a3a4
mov dword [ebp - 8], 0
jmp 0x46a32b
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
jge 0x46a397
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [edx + ecx*4], 0x8000
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + eax*4 + 0x7f8], 1
push 0
mov edx, dword [ebp - 8]
imul edx, edx, 0xd
mov eax, dword [ebp - 0x14]
add eax, edx
push eax
call fcn.0046bd20
add esp, 8
test eax, eax
jne 0x46a37d
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, 0xfffffff7
jmp 0x46a4db
mov eax, dword [ebp - 8]
imul eax, eax, 0xd
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov al, byte [edx + eax]
mov byte [ecx + 0xfe24], al
jmp 0x46a322
mov ecx, dword [0x4b08ca]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp + 0xc]
mov ax, word [edx]
add ax, 1
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
push 0x4b0ee0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x20
push 0
mov edx, dword [0x4b08c6]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [0x4b08c6]
mov ecx, dword [0x4b08b4]
mov dword [eax], ecx
mov edx, dword [0x4b08c6]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [0x4b08c6]
mov dx, word [ebp + 0x18]
mov word [ecx + 8], dx
mov eax, dword [0x4b08c6]
mov ecx, dword [ebp + 0xc]
mov dx, word [ecx]
mov word [eax + 0xa], dx
mov eax, dword [ebp + 0x18]
imul eax, eax, 0xd
add eax, 0x20
mov ecx, dword [0x4b08c6]
mov word [ecx + 0xc], ax
mov edx, dword [ebp + 0x18]
imul edx, edx, 0xd
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [0x4b08c6]
add ecx, 0x20
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0x7a120
mov dword [ebp - 0x118], 0
cmp dword [ebp - 0x118], 0x40
jae 0x46a481
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp + edx*4 - 0x114], ecx
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
xor eax, eax
test eax, eax
jne 0x46a456
lea ecx, [ebp - 0x120]
push ecx
push 0
lea edx, [ebp - 0x118]
push edx
push 0
push 0
call sub.WSOCK32.dll_select
push 0
mov eax, dword [0x4b08c6]
xor ecx, ecx
mov cx, word [eax + 0xc]
push ecx
mov edx, dword [0x4b08c6]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call sub.WSOCK32.dll_send
push 0x4b0ee0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x4b091a], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret