Function at 0x409280
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460530
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x28230
call fcn.0043e1e0
mov eax, dword [0x4771c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x281e4], 0
push 0xb8
lea ecx, [ebp - 0x281d8]
call fcn.00401900
push 1
push 0x40
push 0x24
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x281d8]
call fcn.0040f4b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x281d8]
mov edx, dword [ecx + 4]
lea ecx, [ebp + edx - 0x281d8]
call fcn.004040b0
movzx eax, al
test eax, eax
je 0x409340
lea ecx, [ebp - 0x281d8]
call fcn.0040f3f0
push 0
push 7
push 0x46d248
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x281d8]
call fcn.004096d0
nop
jmp 0x4096ad
lea ecx, [ebp - 0x281d8]
call fcn.0040f430
movzx eax, al
test eax, eax
je 0x4093d8
lea ecx, [ebp - 0x2823c]
push ecx
lea ecx, [ebp - 0x281d8]
call fcn.00410240
mov ecx, eax
call fcn.0040e6f0
mov dword [ebp - 0x281f0], eax
mov edx, dword [ebp - 0x281f0]
cmp edx, dword [ebp + 0x10]
je 0x4093b8
lea ecx, [ebp - 0x281d8]
call fcn.0040f3f0
push 0
push 7
push str.__ERR__
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x281d8]
call fcn.004096d0
nop
jmp 0x4096ad
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2820c], esp
push 0
push 0
call fcn.0040e720
lea ecx, [ebp - 0x281d8]
call fcn.00410350
nop
push 0
push 0x14000
lea edx, [ebp - 0x28014]
push edx
lea ecx, [ebp - 0x281d8]
call fcn.00410500
mov dword [ebp - 0x281e8], eax
mov eax, dword [ebp - 0x281e8]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x281e8]
add edx, dword [ecx + 4]
mov ecx, edx
call fcn.00404080
movzx eax, al
test eax, eax
jne 0x409449
lea ecx, [ebp - 0x281d8]
call fcn.004104e0
mov dword [ebp - 0x28208], eax
mov dword [ebp - 0x28204], edx
cmp dword [ebp - 0x28204], 0
jl 0x40968f
jg 0x409449
cmp dword [ebp - 0x28208], 0
jbe 0x40968f
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x281d8]
call fcn.004104e0
push eax
lea ecx, [ebp - 0x28014]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x281f4], eax
cmp dword [ebp - 0x281f4], 0xffffffff
jne 0x4094a1
lea ecx, [ebp - 0x281d8]
call fcn.0040f3f0
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x281d8]
call fcn.004096d0
nop
jmp 0x4096ad
mov dword [ebp - 0x28120], 0
mov dword [ebp - 0x281e0], 0
jmp 0x4094c6
mov ecx, dword [ebp - 0x281e0]
add ecx, 1
mov dword [ebp - 0x281e0], ecx
mov edx, dword [ebp - 0x281e0]
cmp edx, dword [ebp - 0x28120]
jae 0x4094ec
mov eax, dword [ebp - 0x281e0]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + eax*4 - 0x2811c]
cmp edx, dword [ecx]
jne 0x4094ea
jmp 0x4094ec
jmp 0x4094b7
mov eax, dword [ebp - 0x281e0]
cmp eax, dword [ebp - 0x28120]
jne 0x409524
cmp dword [ebp - 0x28120], 0x40
jae 0x409524
mov ecx, dword [ebp - 0x281e0]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp + ecx*4 - 0x2811c], eax
mov ecx, dword [ebp - 0x28120]
add ecx, 1
mov dword [ebp - 0x28120], ecx
xor edx, edx
jne 0x4094ab
mov dword [ebp - 0x2801c], 0
mov dword [ebp - 0x28018], 0x1388
lea eax, [ebp - 0x2801c]
push eax
push 0
push 0
lea ecx, [ebp - 0x28120]
push ecx
push 0
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x281f8], eax
cmp dword [ebp - 0x281f8], 0
jle 0x409652
push 0x14000
push 0
lea edx, [ebp - 0x14014]
push edx
call fcn.0043efa0
add esp, 0xc
push 0
push 0x14000
lea eax, [ebp - 0x14014]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x281fc], eax
cmp dword [ebp - 0x281fc], 0
jle 0x4095f2
lea eax, [ebp - 0x14014]
push eax
lea ecx, [ebp - 0x28224]
call fcn.00412290
mov dword [ebp - 0x28200], eax
mov ecx, dword [ebp - 0x281e4]
or ecx, 1
mov dword [ebp - 0x281e4], ecx
push 0
push str.CANCEL
mov ecx, dword [ebp - 0x28200]
call fcn.00412010
cmp eax, 0xffffffff
je 0x4095f2
mov dword [ebp - 0x281ec], 1
jmp 0x4095fc
mov dword [ebp - 0x281ec], 0
mov dl, byte [ebp - 0x281ec]
mov byte [ebp - 0x281d9], dl
mov eax, dword [ebp - 0x281e4]
and eax, 1
je 0x409626
and dword [ebp - 0x281e4], 0xfffffffe
lea ecx, [ebp - 0x28224]
call fcn.00412140
nop
movzx ecx, byte [ebp - 0x281d9]
test ecx, ecx
je 0x409652
lea ecx, [ebp - 0x281d8]
call fcn.0040f3f0
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x281d8]
call fcn.004096d0
nop
jmp 0x4096ad
jmp 0x40966c
mov dword [ebp - 4], 0
jmp 0x40968a
jmp 0x4093d8
lea ecx, [ebp - 0x281d8]
call fcn.0040f3f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x281d8]
call fcn.004096d0
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043d0e7
mov esp, ebp
pop ebp
ret