Function at 0x100369a
Capabilities:
Get common file path
Shutdown system

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x2c4
mov eax, dword [0x100a028]
push ebx
push esi
push 0x1002468
xor ebx, ebx
push ebx
push 0x100000
mov dword [ebp + 0x60], eax
mov dword [ebp - 0x250], 0x10
mov dword [ebp - 0x248], ebx
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0x1002440
mov esi, eax
call fcn.0100321e
cmp esi, ebx
je 0x10036f7
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100370e
cmp dword [ebp + 0x74], ebx
je 0x1003703
push 0xea60
jmp 0x1003708
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x260]
push eax
push ebx
push 0x13
call fcn.01003291
test eax, eax
jne 0x1003739
push 0x100241c
call fcn.0100321e
xor eax, eax
jmp 0x10038db
push 0x100240c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x24c], eax
je 0x1003760
push 0x10023f0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x248], eax
push ebx
push dword [0x100ac04]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1003779
xor esi, esi
inc esi
jmp 0x10038ab
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x248], ebx
je 0x100379e
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
push dword [ebp + 0x70]
push ebx
push dword [ebp + 0x78]
push ebx
call dword [ebp - 0x248]
jmp 0x10037ad
push dword [ebp + 0x6c]
push dword [ebp + 0x70]
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov esi, eax
cmp esi, ebx
jne 0x10038aa
call edi
cmp eax, 0x45b
je 0x10037e1
cmp eax, 0x4f7
je 0x10037cc
cmp eax, 0x15
jne 0x10037e9
push 0xbb8
push dword [0x100ac04]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1003780
xor esi, esi
inc esi
jmp 0x10038aa
call edi
push eax
push 0x10023bc
lea eax, [ebp - 0x244]
push 0x103
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
call fcn.0100321e
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x94
call edi
cmp dword [ebp - 0x38], 4
jbe 0x10038aa
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x9c
call edi
test byte [ebp + 0x5c], 0x40
je 0x10038aa
push 0x104
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10038aa
lea eax, [ebp - 0x140]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
push ebx
push 0x2000000
push 3
push ebx
push 7
mov byte [eax + 1], bl
push 0xc0000000
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10038aa
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x10038aa
push 1
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
mov esi, eax
pop edi
cmp dword [ebp - 0x24c], ebx
je 0x10038bf
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x260]
push eax
call fcn.01003321
cmp esi, ebx
jge 0x10038d9
push 0x10023a4
call fcn.0100321e
mov eax, esi
mov ecx, dword [ebp + 0x60]
pop esi
pop ebx
call fcn.01005c72
add ebp, 0x64
leave
ret 0x14