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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b83a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
mov edi, edx
mov dword [ebp - 0x10], eax
lea ebx, [ebx]
test esi, esi
jle 0x46ecb0
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x46e790
add edi, eax
sub esi, eax
mov eax, dword [ebp - 0x10]
jmp 0x46e770
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x46ead5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x6c]
push ecx
push 0
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x1ac], eax
push ecx
push 0
inc eax
mov dword [ebp - 0x1b0], 1
push eax
mov dword [ebp - 0x6c], 0x1e
mov dword [ebp - 0x68], 0
call dword [sym.imp.WS2_32.dll_select]
mov ecx, eax
mov eax, dword [ebp - 0x10]
test ecx, ecx
jg 0x46e770
mov eax, dword [str.error]
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x40], eax
movzx eax, byte [0x5e7ec4]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 5
mov byte [ebp - 0x3b], 0
mov byte [ebp - 0x3c], al
jne 0x46e976
mov dword [ebp - 4], 5
lea eax, [ebp - 0x40]
fild dword [sym.imp.WS2_32.dll_socket]
sub esp, 8
lea ecx, [ebp - 0xac]
fstp qword [esp]
push eax
call fcn.004d2c00
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 6
push ecx
lea eax, [ebp - 0x6c]
push eax
push ecx
lea ecx, [ebp - 0x64]
call fcn.004456c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
push 0x29
mov dword [ebp - 0x58], 0
push str.Socket_select:_send_time_limit_expired_
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00449cf0
mov eax, dword [str.tcp_select1]
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x28], eax
mov eax, dword [0x5e991c]
mov dword [ebp - 0x24], eax
mov ax, word [0x5e9920]
mov word [ebp - 0x20], ax
movzx eax, byte [0x5e9922]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0xb
mov byte [ebp - 0x1e], al
mov byte [ebp - 0x1d], 0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 9
push eax
push 0x73
lea eax, [ebp - 0x58]
mov ecx, 2
push str.MessageChannel.cpp
push eax
lea edx, [ebp - 0x28]
call fcn.004d4b60
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp eax, 0x10
jb 0x46e91a
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x46e910
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004353a0
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.00583877
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x46e965
mov ecx, dword [ebp - 0x58]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x46e95b
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004353a0
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.00583877
add esp, 8
lea ecx, [ebp - 0x64]
call fcn.00449240
mov byte [ebp - 4], 5
jmp 0x46ec50
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x40]
fild dword [sym.imp.WS2_32.dll_socket]
sub esp, 8
lea ecx, [ebp - 0xac]
fstp qword [esp]
push eax
call fcn.004d2c00
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0xb
push ecx
lea eax, [ebp - 0x6c]
push eax
push ecx
lea ecx, [ebp - 0x64]
call fcn.004456c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x58]
push 0x2e
mov dword [ebp - 0x58], 0
push str.Socket_select:_Error_waiting_for_time_limit_
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00449cf0
mov eax, dword [str.tcp_select2]
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x28], eax
mov eax, dword [0x5e9954]
mov dword [ebp - 0x24], eax
mov ax, word [0x5e9958]
mov word [ebp - 0x20], ax
movzx eax, byte [0x5e995a]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0xb
mov byte [ebp - 0x1e], al
mov byte [ebp - 0x1d], 0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xe
push eax
push 0x77
lea eax, [ebp - 0x58]
mov ecx, 2
push str.MessageChannel.cpp
push eax
lea edx, [ebp - 0x28]
call fcn.004d4b60
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp eax, 0x10
jb 0x46ea79
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x46ea6f
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004353a0
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.00583877
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x46eac4
mov ecx, dword [ebp - 0x58]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x46eaba
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004353a0
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.00583877
add esp, 8
lea ecx, [ebp - 0x64]
call fcn.00449240
mov byte [ebp - 4], 0xa
jmp 0x46ec50
mov eax, dword [str.error]
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x40], eax
mov al, byte [0x5e7ec4]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 5
mov byte [ebp - 0x3c], al
mov byte [ebp - 0x3b], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
fild dword [sym.imp.WS2_32.dll_socket]
sub esp, 8
lea ecx, [ebp - 0xac]
fstp qword [esp]
push eax
call fcn.004d2c00
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x6c]
push eax
push ecx
lea ecx, [ebp - 0x64]
call fcn.004456c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
push 0x1c
mov dword [ebp - 0x58], 0
push str.Sending_non_blocking_data_
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00449cf0
mov eax, dword [str.tcp_nonblock]
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x28], eax
mov eax, dword [0x5e98ec]
mov dword [ebp - 0x24], eax
mov eax, dword [0x5e98f0]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 4
push eax
push 0x63
lea eax, [ebp - 0x58]
mov ecx, 2
push str.MessageChannel.cpp
push eax
lea edx, [ebp - 0x28]
call fcn.004d4b60
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp eax, 0x10
jb 0x46ebf9
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x46ebef
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004353a0
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.00583877
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x46ec44
mov ecx, dword [ebp - 0x58]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x46ec3a
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004353a0
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.00583877
add esp, 8
lea ecx, [ebp - 0x64]
call fcn.00449240
mov byte [ebp - 4], 0
push fcn.00438e00
push 1
push 0x40
lea eax, [ebp - 0xac]
push eax
call fcn.00583d37
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x46ec9e
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x46ec94
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004353a0
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.00583877
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret