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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4330e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov byte [ebp - 0x111], dl
mov edx, dword [ebp + 8]
mov dword [ebp - 0x11c], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x124], edx
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
cmp ecx, 0xffffffff
jne 0x40491c
mov ecx, dword [eax]
mov eax, dword [0x43526c]
cmp eax, dword [ecx + 4]
jle 0x404911
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x404911
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov dword [esi], 0x2719
jmp 0x404b9f
mov ebx, dword [eax]
lea edi, [esi + 4]
push 0
push 0
push dword [ebp + 0x18]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push dword [ebp - 0x11c]
push 0
push eax
push dword [ebp + 0xc]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov ecx, dword [0x43526c]
mov dword [ebp - 0x120], eax
cmp ecx, dword [ebx + 4]
jle 0x404990
push 0x43526c
call fcn.0040e156
add esp, 4
lea edi, [esi + 4]
cmp dword [0x43526c], 0xffffffff
jne 0x404990
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
lea edi, [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], 0x4339b0
cmp eax, 0x40
jne 0x4049e9
mov eax, dword [0x43526c]
cmp eax, dword [ebx + 4]
jle 0x4049e1
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x4049e1
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov dword [esi], 0x2746
jmp 0x404a33
cmp eax, 0x4d2
jne 0x404a3d
mov eax, dword [0x43526c]
cmp eax, dword [ebx + 4]
jle 0x404a2d
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x404a2d
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov dword [esi], 0x274d
lea edi, [esi + 4]
mov dword [esi + 4], 0x4339b0
cmp dword [ebp - 0x120], 0
jne 0x404a57
mov eax, dword [ebp - 8]
mov dword [esi], 0
test eax, eax
jns 0x404ba8
test byte [ebp - 0x111], 1
jne 0x404ba6
mov ecx, dword [0x43526c]
cmp ecx, dword [ebx + 4]
jle 0x404aaa
push 0x43526c
call fcn.0040e156
mov ecx, dword [0x43526c]
add esp, 4
cmp ecx, 0xffffffff
jne 0x404aaa
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
mov ecx, dword [0x43526c]
add esp, 4
mov eax, dword [edi]
mov eax, dword [eax + 4]
cmp eax, dword [0x4339b4]
jne 0x404abf
cmp dword [esi], 0x2733
je 0x404b14
cmp ecx, dword [ebx + 4]
jle 0x404af7
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x404af7
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov eax, dword [edi]
mov eax, dword [eax + 4]
cmp eax, dword [0x4339b4]
jne 0x404ba6
cmp dword [esi], 0x4d5
jne 0x404ba6
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x110]
push 0
push 0
push ecx
mov dword [ebp - 0x10c], eax
inc eax
push 0
push eax
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x404b5a
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x124]
mov dword [esi], 0
jmp 0x404921
mov eax, dword [0x43526c]
cmp eax, dword [ebx + 4]
jle 0x404b97
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x404b97
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], 0x4339b0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e039
mov esp, ebp
pop ebp
ret