Function at 0x44dce0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49ab06
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov eax, dword [0x4ba700]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, ecx
lea eax, [esi + 0x318]
push eax
mov dword [esp + 0x2c], eax
call edi
lea eax, [esi + 8]
mov dword [esp + 0x148], 0
push eax
mov dword [esp + 0x28], eax
call edi
mov byte [esp + 0x148], 1
mov eax, dword [esi + 0xf0]
mov eax, dword [eax]
mov ebx, dword [esi + 0xdc]
lea edi, [esi + 0xdc]
mov dword [esp + 0x18], eax
lea ebx, [ebx]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [edi]
test ebx, ebx
je 0x44dd81
cmp ebx, eax
je 0x44dd86
call fcn.0047d091
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x18], ecx
je 0x44de22
test ebx, ebx
jne 0x44dde0
call fcn.0047d091
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x44ddad
call fcn.0047d091
mov ax, word [ebp + 8]
mov ecx, dword [esp + 0x18]
cmp word [ecx + 8], ax
je 0x44dde8
test ebx, ebx
jne 0x44dde4
call fcn.0047d091
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x44ddd4
call fcn.0047d091
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
jmp 0x44dd70
mov eax, dword [ebx]
jmp 0x44dd9f
mov eax, dword [ebx]
jmp 0x44ddc6
push str.._vncserver.cpp_:_removing_unauthorised_client_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
push ebx
lea ebx, [esp + 0x24]
call fcn.00450bb0
movsx eax, word [ebp + 8]
mov dword [esi + eax*4 + 0x114], 0
jmp 0x44df0a
mov eax, dword [esi + 0x10c]
mov eax, dword [eax]
mov edi, dword [esi + 0xf8]
mov ebx, eax
jmp 0x44de40
mov ecx, dword [esi + 0x10c]
mov eax, dword [esi + 0xf8]
mov dword [esp + 0x20], ecx
test edi, edi
je 0x44de58
cmp edi, eax
je 0x44de5d
call fcn.0047d091
cmp ebx, dword [esp + 0x20]
je 0x44df0a
test edi, edi
jne 0x44de9f
call fcn.0047d091
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x44de7c
call fcn.0047d091
mov dx, word [ebp + 8]
cmp word [ebx + 8], dx
je 0x44dea7
test edi, edi
jne 0x44dea3
call fcn.0047d091
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x44de9b
call fcn.0047d091
mov ebx, dword [ebx]
jmp 0x44de40
mov eax, dword [edi]
jmp 0x44de72
mov eax, dword [edi]
jmp 0x44de91
push str.._vncserver.cpp_:_removing_authorised_client_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
test edi, edi
jne 0x44dfd0
call fcn.0047d091
cmp ebx, dword [edi + 0x14]
jne 0x44ded5
call fcn.0047d091
cmp ebx, dword [esi + 0x10c]
je 0x44defb
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
push ebx
mov dword [edx + 4], eax
call fcn.0047c43d
add esp, 4
dec dword [esi + 0x110]
movsx ecx, word [ebp + 8]
mov dword [esi + ecx*4 + 0x114], 0
mov ecx, dword [esi + 0x330]
call fcn.0047b980
mov byte [esp + 0x148], 0
mov edx, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edx
call ebx
cmp dword [esi + 0x110], 0
jne 0x44e03a
cmp dword [esi + 0x48], 0
je 0x44e03a
push str.._vncserver.cpp_:_deleting_desktop_server_n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
mov eax, dword [esi]
mov edx, dword [eax + 0x294]
add esp, 4
mov ecx, esi
call edx
test eax, eax
jne 0x44e009
mov eax, dword [esi]
mov edx, dword [eax + 0x1cc]
mov ecx, esi
call edx
cmp eax, 1
je 0x44e004
cmp byte [esi + 0x598], 0
jne 0x44e004
mov eax, dword [esi]
mov edx, dword [eax + 0x1cc]
mov ecx, esi
call edx
cmp eax, 1
jle 0x44e009
lea eax, [esp + 0x2c]
call fcn.00451550
mov edx, 0x4a3fbe
lea ecx, [esp + 0x2c]
lea ebx, [ebx]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x44dfd7
test al, al
je 0x44dfcc
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x44dfd7
add ecx, 2
add edx, 2
test al, al
jne 0x44dfb0
xor eax, eax
jmp 0x44dfdc
mov edi, dword [edi]
jmp 0x44decb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x44e009
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x44e009
push str.._vncserver.cpp_:_client_disconnect___failed_to_logoff_user__n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
jmp 0x44e009
call fcn.00451b20
mov edi, dword [esi + 0x48]
test edi, edi
je 0x44e01f
push edi
call fcn.0041fa60
push edi
call fcn.0047c43d
add esp, 4
push str.._vncserver.cpp_:_desktop_deleted_n
xor ecx, ecx
mov eax, 0x4bc990
mov dword [esi + 0x48], 0
call fcn.00401110
add esp, 4
mov eax, dword [esi]
mov edx, dword [eax + 0x98]
push 0
push 0
push 0x8004
mov ecx, esi
call edx
push str.._vncserver.cpp_:_RemoveClient___done_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call ebx
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0047c3ff
mov esp, ebp
pop ebp
ret 4