Function at 0x4863e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x55800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 8], 0xffffffff
je 0x486607
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x486432
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx + 0x18], 0
je 0x4865b3
mov ecx, dword [ebx + 0x10]
cmp byte [ecx + 0x21], 0
je 0x4865b3
mov esi, dword [ebx + 0x14]
lea edx, [ecx + 8]
test esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], edx
mov ecx, esi
sete al
mov byte [ebp - 0x1c], al
test esi, esi
jne 0x48646d
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp + 0xc], 0
test ecx, ecx
je 0x48648f
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push edi
push 0
call dword [eax + 8]
mov edi, eax
jmp 0x4864ac
mov esi, dword [ebx + 0x10]
lea eax, [ebp + 0xc]
push eax
push edi
push 0
mov eax, dword [esi + 0x2e4]
call eax
mov edi, eax
add esp, 0xc
mov dword [esi + 0x300], edi
test edi, edi
jne 0x4864c9
push str.d:_saasultravncwinvncwinvnc_vsocket.cpp_:_WriteExact:_DSMPlugin_RestoreBuffer_Alloc_Error_n
push 4
push 0x558c50
call fcn.0041c840
add esp, 0xc
jmp 0x486567
mov eax, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
jle 0x48651a
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [eax + eax]
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x486507
push 0
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
test ecx, ecx
jle 0x486505
mov eax, dword [ebp + 0xc]
add edi, ecx
sub eax, ecx
mov dword [ebp + 0xc], eax
jmp 0x486513
je 0x48653a
call esi
cmp eax, 0x2733
jne 0x486550
mov eax, dword [ebp + 0xc]
test eax, eax
jg 0x4864e0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp + 0xc], edx
test ecx, ecx
je 0x48657f
mov eax, dword [ecx]
lea esi, [ebp - 0x10]
push esi
push edx
push dword [ebp + 8]
call dword [eax + 8]
jmp 0x48659b
push str.d:_saasultravncwinvncwinvnc_vsocket.cpp_:_zero_bytes_read1_n
push 4
push 0x558c50
call fcn.0041c840
add esp, 0xc
jmp 0x486567
call esi
push eax
push str.d:_saasultravncwinvncwinvnc_vsocket.cpp_:_socket_error_1:__d_n
push 4
push 0x558c50
call fcn.0041c840
add esp, 0x10
cmp dword [ebp - 0x14], 0
jne 0x486607
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x486607
mov esi, dword [ebx + 0x10]
lea eax, [ebp - 0x10]
push eax
push edx
push dword [ebp + 8]
mov eax, dword [esi + 0x2e4]
call eax
add esp, 0xc
mov dword [esi + 0x300], eax
cmp dword [ebp - 0x14], 0
jne 0x48641b
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x48641b
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x4865d5
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4865d3
add esi, eax
sub edi, eax
jmp 0x4865e2
je 0x4865eb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x486601
test edi, edi
jne 0x4865b6
jmp 0x48641b
push str.d:_saasultravncwinvncwinvnc_vsocket.cpp_:_zero_bytes_read2_n
push 4
push 0x558c50
call fcn.0041c840
add esp, 0xc
jmp 0x486607
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8