Function at 0x446b72
Capabilities:
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x4732a6
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48ea40]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, ecx
lea eax, [ebp + 0x2e8]
push eax
mov dword [esp + 0x18], eax
call esi
lea eax, [ebp + 8]
push eax
mov dword [esp + 0x138], 0
mov dword [esp + 0x24], eax
call esi
mov eax, dword [ebp + 0xd0]
mov eax, dword [eax]
lea edi, [ebp + 0xcc]
mov byte [esp + 0x134], 1
mov esi, eax
lea ecx, [ecx]
test edi, edi
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], eax
je 0x446acf
cmp edi, edi
je 0x446ad4
call fcn.0045cf74
cmp esi, dword [esp + 0x1c]
je 0x446b10
test edi, edi
jne 0x446ae3
call fcn.0045cf74
cmp esi, dword [edi + 4]
jne 0x446aed
call fcn.0045cf74
mov cx, word [esp + 0x13c]
cmp word [esi + 8], cx
je 0x446b09
cmp esi, dword [edi + 4]
jne 0x446b05
call fcn.0045cf74
mov esi, dword [esi]
jmp 0x446ac0
push str.._vncserver.cpp_:_removing_unauthorised_client_n
jmp 0x446b72
mov eax, dword [ebp + 0xdc]
mov eax, dword [eax]
lea edi, [ebp + 0xd8]
mov esi, eax
test edi, edi
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], eax
je 0x446b2f
cmp edi, edi
je 0x446b34
call fcn.0045cf74
cmp esi, dword [esp + 0x1c]
je 0x446bbf
test edi, edi
jne 0x446b47
call fcn.0045cf74
cmp esi, dword [edi + 4]
jne 0x446b51
call fcn.0045cf74
mov cx, word [esp + 0x13c]
cmp word [esi + 8], cx
je 0x446b6d
cmp esi, dword [edi + 4]
jne 0x446b69
call fcn.0045cf74
mov esi, dword [esi]
jmp 0x446b20
push str.._vncserver.cpp_:_removing_authorised_client_n
push 9
push 0x490660
call fcn.00401810
add esp, 0xc
cmp esi, dword [edi + 4]
jne 0x446b90
call fcn.0045cf74
cmp esi, dword [edi + 4]
je 0x446bac
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [eax], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push esi
mov dword [eax + 4], ecx
call fcn.0045c39e
add esp, 4
add dword [edi + 8], 0xffffffff
movsx edx, word [esp + 0x13c]
mov dword [ebp + edx*4 + 0xe4], 0
mov ecx, dword [ebp + 0x300]
call fcn.0045b2c0
mov eax, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
mov byte [esp + 0x138], 0
call ebx
cmp dword [ebp + 0xe0], 0
jne 0x446cbd
cmp dword [ebp + 0x44], 0
je 0x446cbd
push str.._vncserver.cpp_:_deleting_desktop_server_n
push 0
push 0x490660
call fcn.00401810
mov edx, dword [ebp]
mov eax, dword [edx + 0x260]
add esp, 0xc
mov ecx, ebp
call eax
test eax, eax
jne 0x446c8b
mov edx, dword [ebp]
mov eax, dword [edx + 0x1b0]
mov ecx, ebp
call eax
cmp eax, 1
jne 0x446c34
call fcn.00447ff0
jmp 0x446c8b
mov edx, dword [ebp]
mov eax, dword [edx + 0x1b0]
mov ecx, ebp
call eax
cmp eax, 1
jle 0x446c8b
lea ecx, [esp + 0x24]
push 0x101
push ecx
call fcn.004483c0
add esp, 8
mov edi, 0x475e64
lea esi, [esp + 0x24]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x446c8b
push edx
push edx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x446c8b
push str.._vncserver.cpp_:_client_disconnect___failed_to_logoff_user__n
push eax
push 0x490660
call fcn.00401810
add esp, 0xc
mov esi, dword [ebp + 0x44]
test esi, esi
je 0x446ca2
mov ecx, esi
call fcn.0041ef40
push esi
call fcn.0045c39e
add esp, 4
push str.._vncserver.cpp_:_desktop_deleted_n
push 0
push 0x490660
mov dword [ebp + 0x44], 0
call fcn.00401810
add esp, 0xc
mov eax, dword [ebp]
mov edx, dword [eax + 0x90]
push 0
push 0
push 0x404
mov ecx, ebp
call edx
push str.._vncserver.cpp_:_RemoveClient___done_n
push 9
push 0x490660
call fcn.00401810
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call ebx
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0045c20d
add esp, 0x124
ret 4