Function at 0x444cb0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x471b16
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov eax, dword [0x489348]
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 + 0x308]
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 + 0xe0]
mov eax, dword [eax]
mov ebx, dword [esi + 0xcc]
lea edi, [esi + 0xcc]
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 0x444d51
cmp ebx, eax
je 0x444d56
call fcn.0045d131
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x18], ecx
je 0x444df2
test ebx, ebx
jne 0x444db0
call fcn.0045d131
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x444d7d
call fcn.0045d131
mov ax, word [ebp + 8]
mov ecx, dword [esp + 0x18]
cmp word [ecx + 8], ax
je 0x444db8
test ebx, ebx
jne 0x444db4
call fcn.0045d131
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x444da4
call fcn.0045d131
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
jmp 0x444d40
mov eax, dword [ebx]
jmp 0x444d6f
mov eax, dword [ebx]
jmp 0x444d96
push str.._vncserver.cpp_:_removing_unauthorised_client_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
push ebx
lea ebx, [esp + 0x24]
call fcn.004478a0
movsx eax, word [ebp + 8]
mov dword [esi + eax*4 + 0x104], 0
jmp 0x444eda
mov eax, dword [esi + 0xfc]
mov eax, dword [eax]
mov edi, dword [esi + 0xe8]
mov ebx, eax
jmp 0x444e10
mov ecx, dword [esi + 0xfc]
mov eax, dword [esi + 0xe8]
mov dword [esp + 0x20], ecx
test edi, edi
je 0x444e28
cmp edi, eax
je 0x444e2d
call fcn.0045d131
cmp ebx, dword [esp + 0x20]
je 0x444eda
test edi, edi
jne 0x444e6f
call fcn.0045d131
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x444e4c
call fcn.0045d131
mov dx, word [ebp + 8]
cmp word [ebx + 8], dx
je 0x444e77
test edi, edi
jne 0x444e73
call fcn.0045d131
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x444e6b
call fcn.0045d131
mov ebx, dword [ebx]
jmp 0x444e10
mov eax, dword [edi]
jmp 0x444e42
mov eax, dword [edi]
jmp 0x444e61
push str.._vncserver.cpp_:_removing_authorised_client_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
add esp, 4
test edi, edi
jne 0x444f51
call fcn.0045d131
cmp ebx, dword [edi + 0x14]
jne 0x444ea5
call fcn.0045d131
cmp ebx, dword [esi + 0xfc]
je 0x444ecb
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.0045c7c2
add esp, 4
dec dword [esi + 0x100]
movsx ecx, word [ebp + 8]
mov dword [esi + ecx*4 + 0x104], 0
mov ecx, dword [esi + 0x320]
call fcn.0045bd00
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 + 0x100], 0
jne 0x444ffc
cmp dword [esi + 0x44], 0
je 0x444ffc
push str.._vncserver.cpp_:_deleting_desktop_server_n
xor ecx, ecx
mov eax, 0x48b3f0
call fcn.00401000
mov eax, dword [esi]
mov edx, dword [eax + 0x254]
add esp, 4
mov ecx, esi
call edx
test eax, eax
jne 0x444fcb
mov eax, dword [esi]
mov edx, dword [eax + 0x1b0]
mov ecx, esi
call edx
cmp eax, 1
jne 0x444f58
call fcn.004485f0
jmp 0x444fcb
mov edi, dword [edi]
jmp 0x444e9b
mov eax, dword [esi]
mov edx, dword [eax + 0x1b0]
mov ecx, esi
call edx
cmp eax, 1
jle 0x444fcb
lea eax, [esp + 0x2c]
call fcn.00448060
mov edx, 0x47a387
lea ecx, [esp + 0x2c]
jmp 0x444f80
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x444fa0
test al, al
je 0x444f9c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x444fa0
add ecx, 2
add edx, 2
test al, al
jne 0x444f80
xor eax, eax
jmp 0x444fa5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x444fcb
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x444fcb
push str.._vncserver.cpp_:_client_disconnect___failed_to_logoff_user__n
xor ecx, ecx
mov eax, 0x48b3f0
call fcn.00401000
add esp, 4
mov edi, dword [esi + 0x44]
test edi, edi
je 0x444fe1
push edi
call fcn.0041a7e0
push edi
call fcn.0045c7c2
add esp, 4
push str.._vncserver.cpp_:_desktop_deleted_n
xor ecx, ecx
mov eax, 0x48b3f0
mov dword [esi + 0x44], 0
call fcn.00401000
add esp, 4
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
push 0
push 0
push 0x404
mov ecx, esi
call edx
push str.._vncserver.cpp_:_RemoveClient___done_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
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.0045c77f
mov esp, ebp
pop ebp
ret 4