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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4e0138]
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 0x41b70c
mov ecx, dword [eax]
mov eax, dword [0x4e33a4]
cmp eax, dword [ecx + 4]
jle 0x41b701
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41b701
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov dword [esi], 0x2719
jmp 0x41b98f
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 [0x4e33a4]
mov dword [ebp - 0x120], eax
cmp ecx, dword [ebx + 4]
jle 0x41b780
push 0x4e33a4
call fcn.004882de
add esp, 4
lea edi, [esi + 4]
cmp dword [0x4e33a4], 0xffffffff
jne 0x41b780
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
lea edi, [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], 0x4e0be8
cmp eax, 0x40
jne 0x41b7d9
mov eax, dword [0x4e33a4]
cmp eax, dword [ebx + 4]
jle 0x41b7d1
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41b7d1
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov dword [esi], 0x2746
jmp 0x41b823
cmp eax, 0x4d2
jne 0x41b82d
mov eax, dword [0x4e33a4]
cmp eax, dword [ebx + 4]
jle 0x41b81d
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41b81d
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov dword [esi], 0x274d
lea edi, [esi + 4]
mov dword [esi + 4], 0x4e0be8
cmp dword [ebp - 0x120], 0
jne 0x41b847
mov eax, dword [ebp - 8]
mov dword [esi], 0
test eax, eax
jns 0x41b998
test byte [ebp - 0x111], 1
jne 0x41b996
mov ecx, dword [0x4e33a4]
cmp ecx, dword [ebx + 4]
jle 0x41b89a
push 0x4e33a4
call fcn.004882de
mov ecx, dword [0x4e33a4]
add esp, 4
cmp ecx, 0xffffffff
jne 0x41b89a
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
mov ecx, dword [0x4e33a4]
add esp, 4
mov eax, dword [edi]
mov eax, dword [eax + 4]
cmp eax, dword [0x4e0bec]
jne 0x41b8af
cmp dword [esi], 0x2733
je 0x41b904
cmp ecx, dword [ebx + 4]
jle 0x41b8e7
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41b8e7
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov eax, dword [edi]
mov eax, dword [eax + 4]
cmp eax, dword [0x4e0bec]
jne 0x41b996
cmp dword [esi], 0x4d5
jne 0x41b996
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 0x41b94a
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x124]
mov dword [esi], 0
jmp 0x41b711
mov eax, dword [0x4e33a4]
cmp eax, dword [ebx + 4]
jle 0x41b987
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41b987
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], 0x4e0be8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048824f
mov esp, ebp
pop ebp
ret