Function at 0x445e60
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4731f6
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov eax, dword [0x48a348]
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 0x445f01
cmp ebx, eax
je 0x445f06
call fcn.0045e4f1
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x18], ecx
je 0x445fa2
test ebx, ebx
jne 0x445f60
call fcn.0045e4f1
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x445f2d
call fcn.0045e4f1
mov ax, word [ebp + 8]
mov ecx, dword [esp + 0x18]
cmp word [ecx + 8], ax
je 0x445f68
test ebx, ebx
jne 0x445f64
call fcn.0045e4f1
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x445f54
call fcn.0045e4f1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
jmp 0x445ef0
mov eax, dword [ebx]
jmp 0x445f1f
mov eax, dword [ebx]
jmp 0x445f46
push str.._vncserver.cpp_:_removing_unauthorised_client_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
push ebx
lea ebx, [esp + 0x24]
call fcn.00448a50
movsx eax, word [ebp + 8]
mov dword [esi + eax*4 + 0x104], 0
jmp 0x44608a
mov eax, dword [esi + 0xfc]
mov eax, dword [eax]
mov edi, dword [esi + 0xe8]
mov ebx, eax
jmp 0x445fc0
mov ecx, dword [esi + 0xfc]
mov eax, dword [esi + 0xe8]
mov dword [esp + 0x20], ecx
test edi, edi
je 0x445fd8
cmp edi, eax
je 0x445fdd
call fcn.0045e4f1
cmp ebx, dword [esp + 0x20]
je 0x44608a
test edi, edi
jne 0x44601f
call fcn.0045e4f1
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x445ffc
call fcn.0045e4f1
mov dx, word [ebp + 8]
cmp word [ebx + 8], dx
je 0x446027
test edi, edi
jne 0x446023
call fcn.0045e4f1
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x44601b
call fcn.0045e4f1
mov ebx, dword [ebx]
jmp 0x445fc0
mov eax, dword [edi]
jmp 0x445ff2
mov eax, dword [edi]
jmp 0x446011
push str.._vncserver.cpp_:_removing_authorised_client_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
add esp, 4
test edi, edi
jne 0x446101
call fcn.0045e4f1
cmp ebx, dword [edi + 0x14]
jne 0x446055
call fcn.0045e4f1
cmp ebx, dword [esi + 0xfc]
je 0x44607b
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.0045dc91
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.0045d1a0
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 0x4461ac
cmp dword [esi + 0x44], 0
je 0x4461ac
push str.._vncserver.cpp_:_deleting_desktop_server_n
xor ecx, ecx
mov eax, 0x48c4e8
call fcn.00401000
mov eax, dword [esi]
mov edx, dword [eax + 0x260]
add esp, 4
mov ecx, esi
call edx
test eax, eax
jne 0x44617b
mov eax, dword [esi]
mov edx, dword [eax + 0x1b0]
mov ecx, esi
call edx
cmp eax, 1
jne 0x446108
call fcn.004497a0
jmp 0x44617b
mov edi, dword [edi]
jmp 0x44604b
mov eax, dword [esi]
mov edx, dword [eax + 0x1b0]
mov ecx, esi
call edx
cmp eax, 1
jle 0x44617b
lea eax, [esp + 0x2c]
call fcn.00449210
mov edx, 0x47b37f
lea ecx, [esp + 0x2c]
jmp 0x446130
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x446150
test al, al
je 0x44614c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x446150
add ecx, 2
add edx, 2
test al, al
jne 0x446130
xor eax, eax
jmp 0x446155
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x44617b
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x44617b
push str.._vncserver.cpp_:_client_disconnect___failed_to_logoff_user__n
xor ecx, ecx
mov eax, 0x48c4e8
call fcn.00401000
add esp, 4
mov edi, dword [esi + 0x44]
test edi, edi
je 0x446191
push edi
call fcn.0041b6e0
push edi
call fcn.0045dc91
add esp, 4
push str.._vncserver.cpp_:_desktop_deleted_n
xor ecx, ecx
mov eax, 0x48c4e8
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, 0x48c4e8
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.0045dc1f
mov esp, ebp
pop ebp
ret 4