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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [0x100c028]
push ebx
push esi
push 0x10024cc
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push 0x100000
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b8], 0x10
mov dword [ebp - 0x2ac], ebx
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0x10024a4
mov esi, eax
call fcn.010034f5
cmp esi, ebx
je 0x1003d1d
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003d34
cmp dword [ebp + 0x10], ebx
je 0x1003d29
push 0xea60
jmp 0x1003d2e
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2b8]
push eax
lea eax, [ebp - 0x2c8]
push eax
push ebx
push 0x13
call fcn.0100357b
test eax, eax
jne 0x1003d5f
push 0x1002480
call fcn.010034f5
xor eax, eax
jmp 0x1003f19
push 0x1002470
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x2b0], eax
je 0x1003d86
push 0x1002454
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2ac], eax
push ebx
push dword [0x100cf48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1003d9f
xor esi, esi
inc esi
jmp 0x1003ee9
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x2ac], ebx
je 0x1003dc7
push dword [ebp + 0x18]
push dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x2b4]
push ebx
call dword [ebp - 0x2ac]
jmp 0x1003dd6
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 0x1003ee8
call edi
cmp eax, 0x45b
je 0x1003e0a
cmp eax, 0x4f7
je 0x1003df5
cmp eax, 0x15
jne 0x1003e12
push 0xbb8
push dword [0x100cf48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1003da6
xor esi, esi
inc esi
jmp 0x1003ee8
call edi
push eax
push 0x1002420
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.01003818
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.010034f5
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x2a8]
push eax
mov dword [ebp - 0x2a8], 0x94
call edi
cmp dword [ebp - 0x2a4], 4
jbe 0x1003ee8
lea eax, [ebp - 0x2a8]
push eax
mov dword [ebp - 0x2a8], 0x9c
call edi
test byte [ebp - 0x210], 0x40
je 0x1003ee8
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1003ee8
lea eax, [ebp - 0x108]
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 - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003ee8
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 0x1003ee8
push 1
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
mov esi, eax
pop edi
cmp dword [ebp - 0x2b0], ebx
je 0x1003efd
push dword [ebp - 0x2b0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x2c8]
push eax
call fcn.01003612
cmp esi, ebx
jge 0x1003f17
push 0x1002408
call fcn.010034f5
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01006a23
leave
ret 0x14