Function at 0x483bc0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b7bb
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5d7008]
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 edi, ecx
movzx ecx, word [ebp + 8]
lea eax, [edi + 0x364]
movzx ebx, word [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push eax
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], 0x28
call esi
lea eax, [edi + 8]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], 0x29
call esi
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x150]
mov esi, dword [ecx]
cmp esi, ecx
je 0x483c5e
nop word [eax + eax]
cmp word [esi + 8], bx
je 0x483c80
mov eax, dword [esi]
mov esi, eax
cmp eax, ecx
jne 0x483c50
mov ecx, dword [edi + 0x158]
mov esi, dword [ecx]
cmp esi, ecx
je 0x483cf5
nop
cmp word [esi + 8], bx
je 0x483ca8
mov eax, dword [esi]
mov esi, eax
cmp eax, ecx
jne 0x483c70
jmp 0x483cf5
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_removing_unauthorised_client_n
push 9
push 0x5d7d48
call fcn.0041c960
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
dec dword [edi + 0x154]
jmp 0x483cce
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_removing_authorised_client_n
push 9
push 0x5d7d48
call fcn.0041c960
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
dec dword [edi + 0x15c]
push 0xc
push esi
call fcn.0053d673
mov eax, 0x1ff
add esp, 0x14
cmp word [ebp - 0x118], ax
ja 0x483cf5
movsx eax, bx
mov dword [edi + eax*4 + 0x160], 0
mov ecx, dword [edi + 0x37c]
call fcn.0053cc90
lea eax, [edi + 8]
mov byte [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
call ebx
cmp dword [edi + 0x15c], 0
jne 0x483f13
cmp dword [edi + 0x94], 0
je 0x483f13
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_deleting_desktop_server_n
push 0
push 0x5d7d48
call fcn.0041c960
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
call dword [eax + 0x2fc]
test eax, eax
jne 0x483ed6
cmp byte [edi + 0x74], al
jne 0x483ed6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1fc]
cmp eax, 1
je 0x483df9
cmp byte [edi + 0x874], 0
jne 0x483df9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1fc]
cmp eax, 1
jle 0x483ea9
lea ecx, [ebp - 0x114]
call fcn.00486920
mov ecx, 0x584fd8
lea eax, [ebp - 0x114]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x483dc2
test dl, dl
je 0x483dbe
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x483dc2
add eax, 2
add ecx, 2
test dl, dl
jne 0x483da2
xor eax, eax
jmp 0x483dc7
sbb eax, eax
or eax, 1
test eax, eax
je 0x483ea9
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x483ea9
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_client_disconnect___failed_to_logoff_user__n
push eax
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
jmp 0x483ea9
cmp dword [0x5e65e8], 2
je 0x483e1b
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncservice.cpp_:_unable_to_lock_workstation___not_NT_n
push 0
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
jmp 0x483ea9
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncservice.cpp_:_locking_workstation_n
push 0xa
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x483e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncservice.cpp_:_unable_to_load_User32_DLL___u__n
push esi
push 0x5d7d48
call fcn.0041c960
add esp, 0x10
jmp 0x483ea9
push str.LockWorkStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x483e89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncservice.cpp_:_unable_to_locate_LockWorkStation___requires_Windows_2000_or_above___u__n
push 0
push 0x5d7d48
call fcn.0041c960
add esp, 0x10
jmp 0x483ea2
call eax
test eax, eax
jne 0x483ea2
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncservice.cpp_:_call_to_LockWorkstation_failed_n
push eax
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x5e65ec], 0
je 0x483ed6
cmp dword [edi + 0x110], 0
je 0x483ed6
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_last_client_disconnect___restart_server_for_rdpmode_n
push 0
push 0x5d7d48
mov byte [0x5d9e87], 1
call fcn.0041c960
add esp, 0xc
mov esi, dword [edi + 0x94]
test esi, esi
je 0x483ef5
mov ecx, esi
call fcn.00449d90
push 0xe9b4
push esi
call fcn.0053d673
add esp, 8
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_desktop_deleted_n
push 0
push 0x5d7d48
mov dword [edi + 0x94], 0
call fcn.0041c960
add esp, 0xc
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
push 0x8004
call dword [eax + 0x94]
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_RemoveClient___done_n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
lea eax, [edi + 0x364]
push eax
call ebx
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.0053d630
mov esp, ebp
pop ebp
ret 4