Function at 0x10036ba
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.0100323e
cmp esi, ebx
je 0x1003717
push 0xea60
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x100372e
cmp dword [ebp + 0x74], ebx
je 0x1003723
push 0xea60
jmp 0x1003728
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.010032b1
test eax, eax
jne 0x1003759
push 0x100241c
call fcn.0100323e
xor eax, eax
jmp 0x10038fb
push 0x100240c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x24c], eax
je 0x1003780
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 0x1003799
xor esi, esi
inc esi
jmp 0x10038cb
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 0x248], ebx
je 0x10037be
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 0x10037cd
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 0x10038ca
call edi
cmp eax, 0x45b
je 0x1003801
cmp eax, 0x4f7
je 0x10037ec
cmp eax, 0x15
jne 0x1003809
push 0xbb8
push dword [0x100ac04]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x10037a0
xor esi, esi
inc esi
jmp 0x10038ca
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.0100323e
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 0x10038ca
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x9c
call edi
test byte [ebp + 0x5c], 0x40
je 0x10038ca
push 0x104
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x10038ca
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 0x10038ca
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 0x10038ca
push 1
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
mov esi, eax
pop edi
cmp dword [ebp - 0x24c], ebx
je 0x10038df
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [ebp - 0x260]
push eax
call fcn.01003341
cmp esi, ebx
jge 0x10038f9
push 0x10023a4
call fcn.0100323e
mov eax, esi
mov ecx, dword [ebp + 0x60]
pop esi
pop ebx
call fcn.01005d91
add ebp, 0x64
leave
ret 0x14