Function at 0x4134b9
Capabilities:
Get socket status
Print debug messages
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4310be]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
and ecx, 0xff
test ecx, ecx
jg 0x4134e1
mov eax, 0xfffffffc
jmp 0x413771
mov edx, dword [ebp + 8]
and edx, 0xff
cmp edx, 0xf0
jge 0x41353f
mov eax, dword [ebp + 0x14]
and eax, 0xffff
test eax, eax
jl 0x41350f
mov ecx, dword [ebp + 0x14]
and ecx, 0xffff
cmp ecx, 0x7cff
jle 0x413519
mov eax, 0xfffffffc
jmp 0x413771
mov edx, dword [ebp + 0x18]
and edx, 0xffff
test edx, edx
jl 0x413535
mov eax, dword [ebp + 0x18]
and eax, 0xffff
cmp eax, 0x7d00
jle 0x41353f
mov eax, 0xfffffffb
jmp 0x413771
mov ecx, dword [0x431062]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41355f
mov eax, 0xfffffffe
jmp 0x413771
mov edx, dword [ebp - 4]
mov al, byte [ebp + 0xc]
mov byte [edx + 4], al
mov ecx, dword [ebp + 8]
and ecx, 0xff
cmp ecx, 0xf0
jge 0x4135bc
mov edx, dword [ebp + 0xc]
and edx, 0xff
test edx, edx
jl 0x4135bc
mov eax, dword [ebp + 0xc]
and eax, 0xff
cmp eax, 6
jg 0x4135bc
mov ecx, dword [ebp + 8]
and ecx, 0xff
push ecx
call sub.WINDCS32.dll_sysini_GetPcuFamily
cmp eax, 5
jne 0x4135bc
mov edx, dword [ebp + 0xc]
and edx, 0xff
mov eax, dword [ebp - 4]
mov cl, byte [edx + 0x42cc40]
mov byte [eax + 4], cl
mov edx, dword [ebp - 4]
mov ax, word [ebp + 0x10]
mov word [edx + 2], ax
mov ecx, dword [ebp - 4]
mov dx, word [ebp + 0x14]
mov word [ecx + 5], dx
mov eax, dword [ebp - 4]
mov cx, word [ebp + 0x18]
mov word [eax + 7], cx
mov edx, dword [ebp - 4]
mov word [edx + 0xc], 0
mov eax, dword [ebp - 4]
mov word [eax + 9], 0
mov ecx, dword [ebp + 8]
and ecx, 0xff
push ecx
call sub.WINDCS32.dll_sysini_GetPcuFamily
cmp eax, 7
jne 0x41360c
mov edx, dword [ebp - 4]
mov byte [edx + 0xb], 0x4e
jmp 0x413613
mov eax, dword [ebp - 4]
mov byte [eax + 0xb], 0xa
push 0x431880
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 8], 0x5c
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x43106e]
add eax, 0x20
push eax
call fcn.0041f530
add esp, 0xc
mov ecx, dword [0x431062]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x20
push 0
mov edx, dword [0x43106e]
push edx
call fcn.0041ee40
add esp, 0xc
mov eax, dword [0x43106e]
mov ecx, dword [0x43105c]
mov dword [eax], ecx
mov edx, dword [0x43106e]
mov dword [edx + 4], 0x7d12
mov eax, dword [0x43106e]
mov word [eax + 8], 1
movzx cx, byte [ebp + 8]
mov edx, dword [0x43106e]
mov word [edx + 0xa], cx
mov eax, dword [ebp - 8]
add eax, 0x20
mov ecx, dword [0x43106e]
mov word [ecx + 0xc], ax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x7a120
mov dword [ebp - 0x118], 0
cmp dword [ebp - 0x118], 0x40
jae 0x4136e5
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0xc]
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 0x4136ba
lea ecx, [ebp - 0x14]
push ecx
push 0
lea edx, [ebp - 0x118]
push edx
push 0
push 0
call sub.WSOCK32.dll_select
push 0
mov eax, dword [0x43106e]
xor ecx, ecx
mov cx, word [eax + 0xc]
push ecx
mov edx, dword [0x43106e]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x413761
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
push str.WMC____4.4X___wmc_ReadBst:_Send_FAILED_with__d___n
push 0x44d880
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x44d880
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x431880
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x413771
push 0x431880
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov esp, ebp
pop ebp
ret