Function at 0x405a10
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 0x454848
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x281ec
call fcn.004344d0
mov eax, dword [0x46a1c0]
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 edi, edx
push 0xb8
lea eax, [ebp - 0x281d8]
mov dword [ebp - 0x28018], 0
push 0
push eax
call fcn.00435290
add esp, 0xc
cmp dword [edi + 0x14], 7
jbe 0x405a70
mov edi, dword [edi]
lea ecx, [ebp - 0x28168]
mov dword [ebp - 0x281d8], 0x4612e4
call fcn.00413880
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x281c8]
mov esi, 2
lea ecx, [ebp - 0x281d8]
mov dword [ebp - 0x281e0], esi
mov dword [ebp - 0x28018], esi
push eax
call fcn.00414fc0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x281d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x281d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x281dc], eax
lea ecx, [ebp - 0x281c8]
call fcn.00414d50
push ecx
push 0x25
push edi
lea ecx, [ebp - 0x281c8]
mov byte [ebp - 4], 2
call fcn.00414b80
test eax, eax
jne 0x405b2b
mov eax, dword [ebp - 0x281d8]
lea ecx, [ebp - 0x281d8]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402ec0
mov eax, dword [ebp - 0x281d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x281d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x281dc], eax
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x281d8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x281cc], 6
je 0x405c22
lea ecx, [ebp - 0x281c8]
call fcn.004137a0
test eax, eax
jne 0x405ba8
mov eax, dword [ebp - 0x281d8]
lea ecx, [ebp - 0x281d8]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402ec0
push 0
push 7
push str.__ERR__
push dword [0x46de40]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0x281d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x281d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x281dc], eax
lea ecx, [ebp - 0x281c8]
call fcn.0040f490
mov eax, dword [ebp - 0x281d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x281d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x281dc], eax
mov dword [ebp - 4], 4
jmp 0x406166
cmp dword [ebp - 0x2817c], 0
je 0x405d34
lea eax, [ebp - 0x281f8]
push eax
lea ecx, [ebp - 0x281d8]
call fcn.0040f750
mov ecx, dword [eax + 8]
add ecx, dword [eax]
cmp ecx, dword [ebp + 8]
je 0x405d01
lea ecx, [ebp - 0x281c8]
call fcn.004137a0
test eax, eax
jne 0x405c87
mov eax, dword [ebp - 0x281d8]
lea ecx, [ebp - 0x281d8]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402ec0
push 0
push 7
push str.__ERR__
push dword [0x46de40]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0x281d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x281d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x281dc], eax
lea ecx, [ebp - 0x281c8]
call fcn.0040f490
mov eax, dword [ebp - 0x281d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x281d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x281dc], eax
mov dword [ebp - 4], 5
jmp 0x406166
sub esp, 0x18
lea ecx, [ebp - 0x281d8]
mov eax, esp
xorps xmm0, xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
movq qword [eax + 0x10], xmm0
call fcn.0040f850
mov edi, dword [sym.imp.WS2_32.dll_send]
nop word [eax + eax]
sub esp, 8
lea eax, [ebp - 0x28014]
lea ecx, [ebp - 0x281d8]
push eax
call fcn.0040f9d0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x405e1e
cmp dword [ebp - 0x281cc], 0
jg 0x405e1e
jl 0x405d81
cmp dword [ebp - 0x281d0], 0
ja 0x405e1e
lea ecx, [ebp - 0x281c8]
call fcn.004137a0
test eax, eax
jne 0x405db9
mov eax, dword [ebp - 0x281d8]
lea ecx, [ebp - 0x281d8]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402ec0
mov eax, dword [ebp - 0x281d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x281d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x281dc], eax
lea ecx, [ebp - 0x281c8]
call fcn.0040f490
mov eax, dword [ebp - 0x281d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x281d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x281dc], eax
mov dword [ebp - 4], 0xb
jmp 0x406166
push 0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28014]
push dword [ebp - 0x281d0]
push eax
push dword [0x46de40]
call edi
cmp eax, 0xffffffff
jne 0x405edf
lea ecx, [ebp - 0x281c8]
call fcn.004137a0
test eax, eax
jne 0x405e7a
mov eax, dword [ebp - 0x281d8]
lea ecx, [ebp - 0x281d8]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402ec0
mov eax, dword [ebp - 0x281d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x281d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x281dc], eax
lea ecx, [ebp - 0x281c8]
call fcn.0040f490
mov eax, dword [ebp - 0x281d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x281d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x281dc], eax
mov dword [ebp - 4], 7
jmp 0x406166
mov eax, dword [0x46de40]
mov dword [ebp - 0x2811c], eax
lea eax, [ebp - 0x2801c]
push eax
push 0
push 0
lea eax, [ebp - 0x28120]
mov dword [ebp - 0x28120], 1
push eax
push 0
mov dword [ebp - 0x2801c], 0
mov dword [ebp - 0x28018], 0x1388
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4061a1
push 0x14000
lea eax, [ebp - 0x14014]
push 0
push eax
call fcn.00435290
add esp, 0xc
lea eax, [ebp - 0x14014]
push 0
push 0x14000
push eax
push dword [0x46de40]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x405fc7
xorps xmm0, xmm0
mov dword [ebp - 0x281e8], 0
lea ecx, [ebp - 0x14014]
mov dword [ebp - 0x281e4], 0
movups xmmword [ebp - 0x281f8], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405f85
sub ecx, edx
lea eax, [ebp - 0x14014]
push ecx
push eax
lea ecx, [ebp - 0x281f8]
call fcn.00417360
push ecx
or esi, 1
lea ecx, [ebp - 0x281f8]
push str.CANCEL
mov dword [ebp - 0x281e0], esi
call fcn.00410b60
mov byte [ebp - 0x281d9], 1
cmp eax, 0xffffffff
jne 0x405fce
mov byte [ebp - 0x281d9], 0
mov eax, dword [ebp - 0x281e0]
test al, 1
je 0x40601b
mov ecx, dword [ebp - 0x281e4]
and eax, 0xfffffffe
mov dword [ebp - 0x281e0], eax
cmp ecx, 0xf
jbe 0x40601b
mov edx, dword [ebp - 0x281f8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406011
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061ad
push ecx
push edx
call fcn.00433928
add esp, 8
cmp byte [ebp - 0x281d9], 0
je 0x40619b
lea ecx, [ebp - 0x281c8]
call fcn.004137a0
test eax, eax
jne 0x406060
mov eax, dword [ebp - 0x281d8]
lea ecx, [ebp - 0x281d8]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402ec0
mov eax, dword [ebp - 0x281d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x281d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x281dc], eax
lea ecx, [ebp - 0x281c8]
call fcn.0040f490
mov eax, dword [ebp - 0x281d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x281d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x281dc], eax
mov dword [ebp - 4], 8
jmp 0x406166
lea eax, [ebp - 0x28168]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.0041fefc
add esp, 4
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.004333df
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x281e0]
mov dword [ebp - 4], 3
jmp 0x405d40
call fcn.0043bda5
int3