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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5488e1
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x13c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x160], eax
mov eax, dword [0x5bdff0]
push 9
mov byte [ebp - 0x113], 0
mov esi, dword [eax + 0x7a8]
lea edi, [eax + 0x734]
call fcn.0051e703
add esp, 4
mov dword [ebp - 0x138], eax
mov eax, 0x5b0bb0
test esi, esi
mov ecx, 0x5b0ba8
mov edx, 1
cmovne ecx, eax
call fcn.0041d700
mov esi, dword [ebp - 0x138]
mov ecx, edi
mov edx, esi
call fcn.0041d950
mov byte [esi + 8], 0
mov dword [ebp - 0x180], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x16c]
mov eax, dword [0x5bdff0]
add eax, 0x838
push eax
call fcn.0041f0e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x164]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43dca3
sub ecx, edx
je 0x43dd16
push 0x200
mov byte [ebp - 0x113], 1
call fcn.005187ea
mov esi, eax
lea eax, [ebp - 0x10f]
push 0xff
push 0
push eax
mov dword [ebp - 0x168], esi
mov byte [esi], 0
call fcn.0051a780
lea eax, [ebp - 0x110]
mov byte [ebp - 0x110], 0
push eax
push dword [ebp - 0x16c]
push str.SecureVNC_0_0x_08x__s
push 0xffffffffffffffff
push 0x1fe
push esi
call fcn.0041e960
mov eax, dword [ebx + 0x26c]
add esp, 0x28
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x43dd35
push esi
jmp 0x43dd30
mov eax, dword [ebx + 0x26c]
mov edx, dword [0x5bdff0]
add edx, 0x838
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x43dd35
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
xor eax, eax
mov byte [ebp - 0x111], 1
xor edx, edx
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x144], edx
nop dword [eax]
mov eax, dword [ebx + 0x26c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x140], 0
push edx
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x140]
push edx
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, dword [ebx + 0x26c]
test al, al
je 0x43e67c
movzx edx, word [ebp - 0x140]
mov dword [ebp - 0x14c], edx
cmp dword [esi + 8], 0xffffffff
je 0x43e666
cmp byte [esi + 0x18], 0
mov edi, 2
je 0x43ddfa
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x21], 0
je 0x43ddfa
cmp byte [esi + 0x68], 0
je 0x43ddd1
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x64]
mov word [ecx + eax], dx
add dword [esi + 0x6c], edi
jmp 0x43de11
lea eax, [ebp - 0x148]
mov dword [ebp - 0x148], 0
push eax
push 2
lea eax, [ebp - 0x14c]
mov ecx, esi
push eax
call fcn.00484510
mov edi, dword [ebp - 0x148]
jmp 0x43de00
lea eax, [ebp - 0x14c]
push edi
push eax
mov ecx, esi
call fcn.00483fe0
cmp eax, edi
jne 0x43e666
mov esi, dword [ebx + 0x26c]
mov edi, dword [ebp - 0x140]
cmp dword [esi + 8], 0xffffffff
je 0x43e666
test edi, edi
je 0x43de99
cmp byte [esi + 0x18], 0
je 0x43de82
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x21], 0
je 0x43de82
cmp byte [esi + 0x68], 0
je 0x43de5b
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x6c]
push edi
push dword [ebp - 0x11c]
push eax
call fcn.0051a200
add esp, 0xc
add dword [esi + 0x6c], edi
jmp 0x43de99
lea eax, [ebp - 0x150]
mov dword [ebp - 0x150], 0
push eax
push edi
push dword [ebp - 0x11c]
mov ecx, esi
call fcn.00484510
mov edi, dword [ebp - 0x150]
jmp 0x43de88
mov eax, dword [ebp - 0x11c]
push edi
push eax
mov ecx, esi
call fcn.00483ee0
cmp eax, edi
jne 0x43e666
cmp dword [ebx + 0x280], 0
mov dl, byte [ebp - 0x113]
mov byte [ebp - 0x112], dl
jne 0x43dec2
mov ecx, dword [ebp - 0x138]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43deb7
sub ecx, esi
jne 0x43deca
mov dl, 2
mov byte [ebp - 0x112], dl
mov esi, dword [ebx + 0x26c]
cmp dword [esi + 8], 0xffffffff
je 0x43e666
cmp byte [esi + 0x18], 0
mov edi, 1
je 0x43df2b
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x21], 0
je 0x43df2b
cmp byte [esi + 0x68], 0
je 0x43df02
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x64]
mov byte [ecx + eax], dl
inc dword [esi + 0x6c]
jmp 0x43df42
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], 0
push eax
push 1
lea eax, [ebp - 0x112]
mov ecx, esi
push eax
call fcn.00484510
mov edi, dword [ebp - 0x154]
jmp 0x43df31
lea eax, [ebp - 0x112]
push edi
push eax
mov ecx, esi
call fcn.00483ee0
cmp eax, edi
jne 0x43e666
mov eax, dword [ebx + 0x26c]
push dword [ebp - 0x11c]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x26c]
lea eax, [ebp - 0x124]
push 2
push eax
mov dword [ebp - 0x124], 0
call fcn.004842f0
test eax, eax
je 0x43e6b6
mov eax, dword [ebp - 0x124]
mov ecx, 0x7e8
cmp ax, cx
ja 0x43e6b6
movzx eax, ax
push eax
call fcn.005187ea
movzx ecx, word [ebp - 0x124]
mov ebx, eax
push ecx
push 0
push ebx
mov dword [ebp - 0x118], ebx
call fcn.0051a780
movzx edi, word [ebp - 0x124]
mov esi, ebx
mov ebx, dword [ebp - 0x13c]
add esp, 0x10
mov ebx, dword [ebx + 0x26c]
cmp dword [ebx + 8], 0xffffffff
je 0x43e655
test edi, edi
je 0x43e178
cmp byte [ebx + 0x18], 0
je 0x43e140
mov ecx, dword [ebx + 0x10]
cmp byte [ecx + 0x21], 0
je 0x43e140
mov edx, dword [ebx + 0x14]
lea esi, [ecx + 8]
test edx, edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x174], esi
mov ecx, edx
sete al
mov byte [ebp - 0x170], al
test edx, edx
jne 0x43e01f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x14]
mov byte [ebp - 4], 2
mov dword [ebp - 0x12c], 0
test ecx, ecx
je 0x43e044
mov eax, dword [ecx]
lea edx, [ebp - 0x12c]
push edx
push edi
push 0
call dword [eax + 8]
mov edi, eax
jmp 0x43e06a
mov esi, dword [ebx + 0x10]
lea eax, [ebp - 0x12c]
push eax
push edi
push 0
mov eax, dword [esi + 0x2a4]
call eax
mov edi, eax
add esp, 0xc
mov dword [esi + 0x2c0], edi
mov esi, dword [ebp - 0x174]
test edi, edi
je 0x43e5c8
mov eax, dword [ebp - 0x12c]
mov edx, eax
mov dword [ebp - 0x134], edx
test edx, edx
jle 0x43e0d6
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x43e0b5
push 0
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
test ecx, ecx
jle 0x43e0af
mov eax, dword [ebp - 0x12c]
add edi, ecx
sub eax, ecx
mov dword [ebp - 0x12c], eax
jmp 0x43e0cc
je 0x43e59d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x43e5a4
mov eax, dword [ebp - 0x12c]
test eax, eax
jg 0x43e084
mov edx, dword [ebp - 0x134]
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebp - 0x118]
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x12c], edx
test ecx, ecx
je 0x43e103
mov eax, dword [ecx]
lea esi, [ebp - 0x158]
push esi
push edx
push edi
call dword [eax + 8]
jmp 0x43e120
mov esi, dword [ebx + 0x10]
lea eax, [ebp - 0x158]
push eax
push edx
push edi
mov eax, dword [esi + 0x2a4]
call eax
add esp, 0xc
mov dword [esi + 0x2c0], eax
cmp dword [ebp - 0x120], 0
mov byte [ebp - 4], 1
jne 0x43e17e
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x43e17e
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x43e163
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x43e15d
add esi, eax
sub edi, eax
jmp 0x43e174
je 0x43e641
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x43e655
test edi, edi
jne 0x43e140
mov edi, dword [ebp - 0x118]
mov ebx, dword [ebp - 0x13c]
mov eax, dword [ebx + 0x26c]
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x111]
push eax
push dword [ebp - 0x144]
movzx eax, word [ebp - 0x124]
mov edx, dword [ecx]
push eax
push edi
mov eax, dword [edx + 0x34]
call eax
test al, al
jne 0x43e1ea
mov eax, dword [ebx + 0x26c]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x43e1c1
mov ecx, dword [ebp - 0x160]
sub edx, esi
push edx
push eax
call fcn.0041c370
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x111], 0
jmp 0x43e205
mov esi, dword [ebp - 0x128]
mov eax, 1
cmp byte [ebp - 0x111], 0
cmove esi, eax
mov dword [ebp - 0x128], esi
push edi
call fcn.005187a7
mov eax, dword [ebx + 0x26c]
add esp, 4
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp dword [ebx + 0x280], 0
jne 0x43e56c
mov ecx, dword [ebp - 0x138]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43e232
sub ecx, edx
je 0x43e56c
mov ecx, dword [ebx + 0x26c]
lea eax, [ebp - 0x124]
push 2
push eax
call fcn.004842f0
test eax, eax
je 0x43e6b6
mov eax, dword [ebp - 0x124]
mov ecx, 0x7e8
cmp ax, cx
ja 0x43e6b6
movzx eax, ax
push eax
call fcn.005187ea
movzx edi, word [ebp - 0x124]
mov ebx, eax
mov dword [ebp - 0x118], ebx
mov esi, ebx
mov ebx, dword [ebp - 0x13c]
add esp, 4
mov ebx, dword [ebx + 0x26c]
cmp dword [ebx + 8], 0xffffffff
je 0x43e655
test edi, edi
je 0x43e448
cmp byte [ebx + 0x18], 0
je 0x43e410
mov ecx, dword [ebx + 0x10]
cmp byte [ecx + 0x21], 0
je 0x43e410
mov edx, dword [ebx + 0x14]
lea esi, [ecx + 8]
test edx, edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x17c], esi
mov ecx, edx
sete al
mov byte [ebp - 0x178], al
test edx, edx
jne 0x43e2f0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x14]
mov byte [ebp - 4], 3
mov dword [ebp - 0x130], 0
test ecx, ecx
je 0x43e315
mov eax, dword [ecx]
lea edx, [ebp - 0x130]
push edx
push edi
push 0
call dword [eax + 8]
mov edi, eax
jmp 0x43e33b
mov esi, dword [ebx + 0x10]
lea eax, [ebp - 0x130]
push eax
push edi
push 0
mov eax, dword [esi + 0x2a4]
call eax
mov edi, eax
add esp, 0xc
mov dword [esi + 0x2c0], edi
mov esi, dword [ebp - 0x17c]
test edi, edi
je 0x43e609
mov eax, dword [ebp - 0x130]
mov edx, eax
mov dword [ebp - 0x134], edx
test edx, edx
jle 0x43e3a7
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x43e386
push 0
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
test ecx, ecx
jle 0x43e380
mov eax, dword [ebp - 0x130]
add edi, ecx
sub eax, ecx
mov dword [ebp - 0x130], eax
jmp 0x43e39d
je 0x43e5e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x43e5ec
mov eax, dword [ebp - 0x130]
test eax, eax
jg 0x43e355
mov edx, dword [ebp - 0x134]
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebp - 0x118]
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x130], edx
test ecx, ecx
je 0x43e3d4
mov eax, dword [ecx]
lea esi, [ebp - 0x15c]
push esi
push edx
push edi
call dword [eax + 8]
jmp 0x43e3f1
mov esi, dword [ebx + 0x10]
lea eax, [ebp - 0x15c]
push eax
push edx
push edi
mov eax, dword [esi + 0x2a4]
call eax
add esp, 0xc
mov dword [esi + 0x2c0], eax
cmp dword [ebp - 0x120], 0
mov byte [ebp - 4], 1
jne 0x43e44e
push dword [ebp - 0x17c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x43e44e
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x43e433
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x43e42d
add esi, eax
sub edi, eax
jmp 0x43e444
je 0x43e641
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x43e655
test edi, edi
jne 0x43e410
mov edi, dword [ebp - 0x118]
cmp byte [ebp - 0x113], 0
jne 0x43e4de
mov ebx, dword [ebp - 0x138]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43e466
sub ecx, edx
mov esi, edi
mov edx, ebx
sub ecx, 4
jb 0x43e489
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x43e492
add edx, 4
add esi, 4
sub ecx, 4
jae 0x43e478
cmp ecx, 0xfffffffc
je 0x43e55d
mov al, byte [edx]
cmp al, byte [esi]
jne 0x43e4cf
cmp ecx, 0xfffffffd
je 0x43e55d
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x43e4cf
cmp ecx, 0xfffffffe
je 0x43e55d
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x43e4cf
cmp ecx, 0xffffffff
je 0x43e55d
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x43e55d
mov dword [ebp - 0x128], 0
jmp 0x43e55d
mov ebx, dword [ebp - 0x164]
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43e4f0
sub ecx, edx
mov esi, edi
mov edx, ebx
sub ecx, 4
jb 0x43e513
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x43e518
add edx, 4
add esi, 4
sub ecx, 4
jae 0x43e502
cmp ecx, 0xfffffffc
je 0x43e551
mov al, byte [edx]
cmp al, byte [esi]
jne 0x43e4cf
cmp ecx, 0xfffffffd
je 0x43e551
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x43e4cf
cmp ecx, 0xfffffffe
je 0x43e551
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x43e4cf
cmp ecx, 0xffffffff
je 0x43e551
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x43e551
mov dword [ebp - 0x128], 0
jmp 0x43e55d
mov ebx, dword [ebp - 0x128]
mov dword [ebp - 0x128], ebx
push edi
call fcn.005187a7
mov ebx, dword [ebp - 0x13c]
add esp, 4
mov edx, dword [ebp - 0x144]
inc edx
cmp byte [ebp - 0x111], 0
mov dword [ebp - 0x144], edx
jne 0x43dd50
cmp dword [ebp - 0x128], 0
je 0x43e6b6
mov esi, 1
jmp 0x43e6b8
push str.VSocket::ReadExact_:_zero_bytes_read1_n
jmp 0x43e5cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.VSocket::ReadExact_:_socket_error_1:__d_n
push 4
push 0x5b0d48
call fcn.0041ccb0
add esp, 0x10
cmp dword [ebp - 0x120], 0
jmp 0x43e624
push str.VSocket::ReadExact_:_WriteExact:_DSMPlugin_RestoreBuffer_Alloc_Error_n
push 4
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
cmp dword [ebp - 0x120], 0
jmp 0x43e624
push str.VSocket::ReadExact_:_zero_bytes_read1_n
jmp 0x43e60e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.VSocket::ReadExact_:_socket_error_1:__d_n
push 4
push 0x5b0d48
call fcn.0041ccb0
add esp, 0x10
jmp 0x43e61d
push str.VSocket::ReadExact_:_WriteExact:_DSMPlugin_RestoreBuffer_Alloc_Error_n
push 4
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
cmp dword [ebp - 0x120], 0
jne 0x43e655
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x118]
push edi
call fcn.005187a7
add esp, 4
jmp 0x43e6b6
push str.VSocket::ReadExact_:_zero_bytes_read2_n
push 4
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
mov edi, dword [ebp - 0x118]
push edi
call fcn.005187a7
add esp, 4
jmp 0x43e6b6
mov eax, dword [ebx + 0x26c]
push dword [ebp - 0x11c]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x43e6b6
mov ecx, dword [esi + 4]
push dword [ebp - 0x11c]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x26c]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, eax
lea edi, [esi + 1]
nop dword [eax]
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x43e6a0
mov ecx, dword [ebp - 0x160]
sub esi, edi
push esi
push eax
call fcn.0041c370
xor esi, esi
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x43e6cb
push eax
call fcn.005187a7
add esp, 4
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x43e6de
push eax
call fcn.005187a7
add esp, 4
mov ebx, dword [ebp - 0x138]
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43e6f0
sub ecx, edx
push ecx
push 0
push ebx
call fcn.0051a780
push ebx
call fcn.0051cad9
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret 4