Function at 0x469f90
Capabilities:
Create directory
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf276
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x640844]
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, dword [ebp + 8]
mov eax, dword [edi + 0xb0]
mov dword [ebp - 0xec], eax
test eax, eax
je 0x469fe1
lock inc dword [eax + 4]
mov eax, dword [edi + 0xb0]
mov dword [ebp - 0xec], eax
mov esi, dword [edi + 0xac]
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0
call fcn.00489610
mov eax, dword [esi]
lea ecx, [ebp - 0x80]
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x60]
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0044e4e0
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 2
push eax
call fcn.0044f1e0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
mov bl, al
call fcn.0044e680
test bl, bl
jne 0x46a059
lea ecx, [ebp - 0x80]
call fcn.00489750
push eax
call fcn.004f6541
add esp, 4
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 3
push eax
push edi
call fcn.0046dd10
mov esi, dword [edi + 0xb0]
add esp, 8
mov byte [ebp - 0xe1], 0
test esi, esi
je 0x46a09c
lock inc dword [esi + 4]
mov esi, dword [edi + 0xb0]
mov eax, dword [edi + 0xac]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 4
push 0xfa
call ebx
mov ecx, dword [ebp - 0xf4]
lea edx, [ebp - 0xe8]
push edx
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x120]
push edx
call dword [eax]
mov eax, dword [ebp - 0xe8]
sub eax, 8
je 0x46a0f3
sub eax, 1
jne 0x46a0b2
push edi
call fcn.00469470
add esp, 4
jmp 0x46a112
mov ecx, dword [ebp - 0xf4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x46a10b
mov byte [edi + 0xa8c], 1
mov byte [ebp - 0xe1], 1
or ebx, 0xffffffff
mov byte [ebp - 4], 3
test esi, esi
je 0x46a13c
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x46a13c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x46a13c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0xe1], 0
je 0x46a2e9
mov eax, dword [edi + 0x64]
lea ecx, [edi + 0x64]
mov eax, dword [eax + 0x58]
call eax
test al, al
je 0x46a181
mov eax, dword [edi + 0x64]
lea ecx, [edi + 0x64]
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x46a181
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], 8
push eax
mov ecx, edi
call fcn.00456f10
jmp 0x46a188
mov ecx, edi
call fcn.00463b00
mov ecx, edi
call fcn.0045b020
cmp byte [edi + 0xa8c], 0
je 0x46a2e9
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0x118], 0x5dede0
mov dword [ebp - 0xf8], 0x82
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0x104]
test eax, eax
jne 0x46a206
call fcn.004d6e68
mov dword [ebp - 0x104], eax
test eax, eax
jne 0x46a206
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46a2d9
push 0
push 0
push eax
call fcn.004d6f6a
lea eax, [ebp - 0x118]
mov dword [ebp - 0x110], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x640030
mov dword [ebp - 0x10c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x640048]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x110]
push 0x640030
mov dword [0x640048], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x426c60
push esi
push 0xaf
push dword [0x647e58]
call fcn.00428320
cmp eax, 6
jne 0x46a2d9
lea eax, [ebp - 0xe8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46a2d9
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 0
push dword [ebp - 0xe8]
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46a2d9
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, dword [ebp - 0x104]
test eax, eax
je 0x46a2e9
push eax
call fcn.004d6f14
mov esi, dword [ebp - 0xf0]
test esi, esi
je 0x46a312
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x46a312
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x46a312
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x80]
call fcn.00419a70
mov ebx, dword [ebp - 0xec]
test ebx, ebx
je 0x46a345
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x46a345
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x46a345
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
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.004ed0cc
mov esp, ebp
pop ebp
ret