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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bd6d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d7008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 8], 0xffffffff
je 0x48996d
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4899ae
cmp byte [ebx + 0x18], 0
je 0x4899c5
mov ecx, dword [ebx + 0x10]
cmp byte [ecx + 0x21], 0
je 0x4899c5
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 0x48987a
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 0x48989c
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push edi
push 0
call dword [eax + 8]
mov edi, eax
jmp 0x4898b9
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 0x4898c4
mov eax, str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vsocket.cpp_:_WriteExact:_DSMPlugin_RestoreBuffer_Alloc_Error_n
jmp 0x489935
mov eax, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
jle 0x489910
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x4898fd
push 0
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
test ecx, ecx
jle 0x4898fb
mov eax, dword [ebp + 0xc]
add edi, ecx
sub eax, ecx
mov dword [ebp + 0xc], eax
jmp 0x489909
je 0x489930
call esi
cmp eax, 0x2733
jne 0x489947
mov eax, dword [ebp + 0xc]
test eax, eax
jg 0x4898d6
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp + 0xc], edx
test ecx, ecx
je 0x489983
mov eax, dword [ecx]
lea esi, [ebp - 0x10]
push esi
push edx
push dword [ebp + 8]
call dword [eax + 8]
jmp 0x48999f
mov eax, str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vsocket.cpp_:_zero_bytes_read1_n
push eax
push 4
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
jmp 0x48995e
call esi
push eax
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vsocket.cpp_:_socket_error_1:__d_n
push 4
push 0x5d7d48
call fcn.0041c960
add esp, 0x10
cmp dword [ebp - 0x14], 0
jne 0x48996d
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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
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 0x4899ae
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x4899e7
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4899e5
add esi, eax
sub edi, eax
jmp 0x4899f4
je 0x4899fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x489a13
test edi, edi
jne 0x4899c8
jmp 0x4899ae
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vsocket.cpp_:_zero_bytes_read2_n
push 4
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
jmp 0x48996d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x48996d