Function at 0x103c63c
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0xc], 0x30
lea edi, [ebp - 0xa]
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1007bf0
push 0x80000002
mov esi, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
mov edi, 0x1007be0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [ebp - 0xc], 0x31
mov ecx, esi
jne 0x103c6b7
push 1
jmp 0x103c6b8
push ebx
push edi
mov edi, 0x1007168
push edi
call sub.MFC42.DLL_CWinApp::WriteProfileInt
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
mov ecx, esi
call sub.MFC42.DLL_CWinApp::CloseAllDocuments
push 0x1007c44
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x104
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x103c729
push 0x1007d5c
lea eax, [ebp - 0x130]
push eax
push 0x1007d48
lea eax, [ebp - 0x234]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.0103bd9f
test eax, eax
jne 0x103c89d
push 1
push 0x1007764
push edi
mov ecx, esi
call sub.MFC42.DLL_CWinApp::WriteProfileInt
lea eax, [ebp - 0x28]
push eax
push 0x1007c74
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x103c89d
lea eax, [ebp - 0x10]
xor edi, edi
push eax
inc edi
push 0x20
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x103c89d
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x88c]
cmp eax, edi
jne 0x103c7b9
push ebx
push 0x16
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x103c89d
cmp eax, ebx
jne 0x103c7c2
push ebx
push 0x1c
jmp 0x103c7ae
cmp eax, 2
jne 0x103c842
mov ecx, esi
call fcn.0103a62e
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x103c7dd
push edi
mov ecx, esi
call fcn.0103a5af
mov ecx, esi
call fcn.0103a54d
push edi
push ebx
call sub.KERNEL32.dll_SetSystemPowerState
test eax, eax
je 0x103c819
push 0xffffffffffffffff
lea edi, [esi + 0x89c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
mov dword [edi], ebx
call fcn.0103a622
mov ecx, esi
call fcn.0103bc73
jmp 0x103c833
push ebx
push 0x30
push 0x1007d2c
call fcn.0102e0c1
mov ecx, esi
mov dword [esi + 0x878], edi
call fcn.0103bd9f
cmp dword [ebp - 0x1c], ebx
jne 0x103c89d
push ebx
mov ecx, esi
call fcn.0103a5af
jmp 0x103c89d
cmp eax, 3
jne 0x103c89d
mov ecx, esi
call fcn.0103a54d
push edi
push edi
call sub.KERNEL32.dll_SetSystemPowerState
test eax, eax
je 0x103c883
push 0xffffffffffffffff
lea edi, [esi + 0x89c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
mov dword [edi], ebx
call fcn.0103a622
mov ecx, esi
call fcn.0103bc73
jmp 0x103c89d
push ebx
push 0x30
push 0x1007d14
call fcn.0102e0c1
mov ecx, esi
mov dword [esi + 0x878], edi
call fcn.0103bd9f
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0105b9a4
leave
ret