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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
push 0x1002528
xor ebx, ebx
push ebx
push 0x100000
mov dword [ebp - 8], 0x10
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0x1002500
mov esi, eax
call fcn.01003486
cmp esi, ebx
je 0x1003948
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100395f
cmp dword [ebp + 0x10], ebx
je 0x1003954
push 0xea60
jmp 0x1003959
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x13
call fcn.01003505
test eax, eax
jne 0x1003984
push 0x10024dc
call fcn.01003486
xor eax, eax
jmp 0x1003b24
push 0x10024cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x10039a5
push 0x10024b0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push ebx
push dword [0x100ac04]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10039be
xor esi, esi
inc esi
jmp 0x1003afd
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 4], ebx
je 0x10039dd
push dword [ebp + 0x18]
push dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x14]
push ebx
call dword [ebp - 4]
jmp 0x10039ec
push dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov esi, eax
cmp esi, ebx
jne 0x1003afc
call edi
cmp eax, 0x45b
je 0x1003a20
cmp eax, 0x4f7
je 0x1003a0b
cmp eax, 0x15
jne 0x1003a28
push 0xbb8
push dword [0x100ac04]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10039c5
xor esi, esi
inc esi
jmp 0x1003afc
call edi
push eax
push 0x100247c
lea eax, [ebp - 0x2bc]
push 0x103
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x2bc]
push eax
call fcn.01003486
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 0xb4], 0x94
call edi
cmp dword [ebp - 0xb0], 4
jbe 0x1003afc
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 0xb4], 0x9c
call edi
test byte [ebp - 0x1c], 0x40
je 0x1003afc
push 0x104
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1003afc
lea eax, [ebp - 0x1b8]
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 - 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003afc
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 0x1003afc
push 1
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
mov esi, eax
pop edi
cmp dword [ebp + 0x10], ebx
je 0x1003b0b
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x18]
push eax
call fcn.01003594
cmp esi, ebx
jge 0x1003b22
push 0x1002464
call fcn.01003486
mov eax, esi
pop esi
pop ebx
leave
ret 0x14