Function at 0x469f70
Capabilities:
Create directory
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf2b6
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 0x469fc1
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.004895d0
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.0044e4c0
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 2
push eax
call fcn.0044f1c0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
mov bl, al
call fcn.0044e660
test bl, bl
jne 0x46a039
lea ecx, [ebp - 0x80]
call fcn.00489710
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.0046dcf0
mov esi, dword [edi + 0xb0]
add esp, 8
mov byte [ebp - 0xe1], 0
test esi, esi
je 0x46a07c
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 0x46a0d3
sub eax, 1
jne 0x46a092
push edi
call fcn.00469450
add esp, 4
jmp 0x46a0f2
mov ecx, dword [ebp - 0xf4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x46a0eb
mov byte [edi + 0xa8c], 1
mov byte [ebp - 0xe1], 1
or ebx, 0xffffffff
mov byte [ebp - 4], 3
test esi, esi
je 0x46a11c
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x46a11c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x46a11c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0xe1], 0
je 0x46a2c9
mov eax, dword [edi + 0x64]
lea ecx, [edi + 0x64]
mov eax, dword [eax + 0x58]
call eax
test al, al
je 0x46a161
mov eax, dword [edi + 0x64]
lea ecx, [edi + 0x64]
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x46a161
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], 8
push eax
mov ecx, edi
call fcn.00456ef0
jmp 0x46a168
mov ecx, edi
call fcn.00463ae0
mov ecx, edi
call fcn.0045b000
cmp byte [edi + 0xa8c], 0
je 0x46a2c9
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0x118], 0x5dedf0
mov dword [ebp - 0xf8], 0x82
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0x104]
test eax, eax
jne 0x46a1e6
call fcn.004d6e68
mov dword [ebp - 0x104], eax
test eax, eax
jne 0x46a1e6
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46a2b9
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 0x46a2b9
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 0x46a2b9
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 0x46a2b9
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, dword [ebp - 0x104]
test eax, eax
je 0x46a2c9
push eax
call fcn.004d6f14
mov esi, dword [ebp - 0xf0]
test esi, esi
je 0x46a2f2
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x46a2f2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x46a2f2
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 0x46a325
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x46a325
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x46a325
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