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

Disassembly:
mov eax, 0x107209e
call fcn.0105c640
sub esp, 0x42c
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
push esi
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x10], eax
call fcn.01056a77
push esi
mov dword [ebp - 4], esi
mov edi, 0x1007c88
push edi
mov esi, 0x1007168
push esi
mov ecx, ebx
call sub.MFC42.DLL_CWinApp::GetProfileIntA
test eax, eax
jne 0x103c398
lea eax, [ebp - 0x30]
push eax
push 0x1007c74
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
xor edi, edi
inc edi
test eax, eax
je 0x103c195
lea eax, [ebp - 0x1c]
push eax
push 0x20
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x103c195
xor eax, eax
push eax
push eax
push eax
lea ecx, [ebp - 0x34]
push ecx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
push edi
push edi
push dword [ebx + 0x43c]
lea ecx, [ebp - 0x438]
call fcn.01056ccd
lea ecx, [ebp - 0x438]
call sub.MFC42.DLL_CDialog::DoModal
cmp dword [ebp - 0x3d4], 0
je 0x103c1c6
xor esi, esi
jmp 0x103c3c8
mov ecx, ebx
mov dword [ebx + 0x878], edi
call fcn.0103bd9f
mov edi, 0x104
push edi
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x103c214
lea eax, [ebp - 0x138]
push eax
push 0x1007c50
lea eax, [ebp - 0x23c]
push edi
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1007c44
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x103c25b
lea eax, [ebp - 0x138]
push eax
push 0x1007c28
lea eax, [ebp - 0x23c]
push edi
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1007248
mov ecx, ebx
call fcn.0103b889
xor edi, edi
inc edi
push edi
push 0x1007c88
push esi
mov ecx, ebx
call sub.MFC42.DLL_CWinApp::WriteProfileInt
and dword [ebp - 0x14], 0
mov dword [ebp - 0x20], edi
xor eax, eax
mov word [ebp - 0x18], 0x30
lea edi, [ebp - 0x16]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x1007bf0
push 0x80000002
mov dword [ebp - 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
mov edi, 0x1007be0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [ebp - 0x18], 0x31
mov ecx, ebx
jne 0x103c2d7
push 1
jmp 0x103c2d9
push 0
push edi
push esi
call sub.MFC42.DLL_CWinApp::WriteProfileInt
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp dword [ebx + 0x880], edi
jle 0x103c38d
push dword [ebx + 0x878]
mov ecx, ebx
push 0x10070c8
push esi
call sub.MFC42.DLL_CWinApp::WriteProfileInt
push dword [ebx + 0x87c]
mov ecx, ebx
push 0x10070b8
push esi
call sub.MFC42.DLL_CWinApp::WriteProfileInt
push dword [ebx + 0x884]
mov ecx, ebx
push 0x10070a8
push esi
call sub.MFC42.DLL_CWinApp::WriteProfileInt
push dword [ebx + 0x880]
mov ecx, ebx
push 0x1007098
push esi
call sub.MFC42.DLL_CWinApp::WriteProfileInt
push edi
push 0x1007764
push esi
mov ecx, ebx
call sub.MFC42.DLL_CWinApp::WriteProfileInt
lea eax, [ebx + 0x56c]
push eax
push 0x100708c
push esi
mov ecx, ebx
call sub.MFC42.DLL_CWinApp::WriteProfileStringA
lea eax, [ebx + 0x670]
push eax
push 0x1007074
push esi
mov ecx, ebx
call sub.MFC42.DLL_CWinApp::WriteProfileStringA
lea eax, [ebx + 0x774]
push eax
push 0x1007064
push esi
mov ecx, ebx
call sub.MFC42.DLL_CWinApp::WriteProfileStringA
push edi
push 0x16
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x103c3c5
cmp eax, 1
jne 0x103c3c5
mov ecx, ebx
call fcn.0103ba65
push 0
push edi
push esi
mov ecx, ebx
call sub.MFC42.DLL_CWinApp::WriteProfileInt
mov dword [ebx + 0x878], 0xfffffffd
call fcn.0101ea91
mov ecx, eax
call fcn.0102f3ab
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.0102f60c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0105b9a4
leave
ret