Function at 0x100377b
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.010032d8
cmp esi, ebx
je 0x10037d8
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10037ef
cmp dword [ebp + 0x74], ebx
je 0x10037e4
push 0xea60
jmp 0x10037e9
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.0100334b
test eax, eax
jne 0x100381a
push 0x100241c
call fcn.010032d8
xor eax, eax
jmp 0x10039bb
push 0x100240c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x24c], eax
je 0x1003841
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 0x100385a
xor esi, esi
inc esi
jmp 0x100398b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x248], ebx
je 0x100387f
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 0x100388e
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 0x100398a
call edi
cmp eax, 0x45b
je 0x10038c2
cmp eax, 0x4f7
je 0x10038ad
cmp eax, 0x15
jne 0x10038ca
push 0xbb8
push dword [0x100ac04]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1003861
xor esi, esi
inc esi
jmp 0x100398a
call edi
push eax
push 0x10023bc
lea eax, [ebp - 0x244]
push 0x103
push eax
call fcn.010035b2
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
call fcn.010032d8
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 0x100398a
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x9c
call edi
test byte [ebp + 0x5c], 0x40
je 0x100398a
push 0x104
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100398a
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 0x100398a
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 0x100398a
push 1
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
mov esi, eax
pop edi
cmp dword [ebp - 0x24c], ebx
je 0x100399f
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x260]
push eax
call fcn.010033db
cmp esi, ebx
jge 0x10039b9
push 0x10023a4
call fcn.010032d8
mov eax, esi
mov ecx, dword [ebp + 0x60]
pop esi
pop ebx
call fcn.01005e64
add ebp, 0x64
leave
ret 0x14