Function at 0x1004ffb
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push ebx
push ebx
push 0x100
call dword [sym.imp.KERNEL32.dll_SetThreadPreferredUILanguages]
push 0x100a120
push 0x100a128
push 0x1003673
push 0x10012c4
call fcn.010036ca
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x1005063
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10052d2
cmp dword [ebp + 8], 2
jl 0x10050b0
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
test eax, eax
je 0x100509c
push dword [esi + 4]
call edi
cmp eax, 2
jl 0x10050c4
mov eax, dword [esi + 4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x1005096
cmp cl, 0x2f
jne 0x10050c4
cmp byte [eax + 1], 0x3f
jne 0x10050c4
push 0x148
push 0x12d
call fcn.01005d21
jmp 0x10052ba
push 0x148
push 0x12d
call fcn.01005d21
jmp 0x10052bc
cmp dword [ebp + 8], 4
lea eax, [ebp - 0x10]
push eax
jl 0x100510b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.01003895
mov byte [ebp - 1], al
cmp al, bl
je 0x10052a9
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.loadperf.dll_UpdatePerfNameFilesA]
mov dword [ebp - 0xc], eax
jmp 0x10052a4
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x18]
call fcn.01003c5f
cmp al, bl
je 0x1005147
call sub.loadperf.dll_LpAcquireInstallationMutex
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x10052ba
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.01004597
mov dword [ebp - 0xc], eax
call sub.loadperf.dll_LpReleaseInstallationMutex
jmp 0x10052ba
lea eax, [ebp - 8]
push eax
push dword [edi + 4]
call fcn.01003d1b
cmp al, bl
je 0x1005169
push 0x1001648
push dword [ebp - 8]
call sub.loadperf.dll_BackupPerfRegistryToFileW
jmp 0x10052b7
lea eax, [ebp - 8]
push eax
push dword [edi + 4]
call fcn.01003db1
mov byte [ebp - 1], al
cmp al, bl
je 0x10051da
mov esi, dword [ebp - 8]
push ebx
push esi
call sub.loadperf.dll_RestorePerfRegistryFromFileW
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x10051ac
cmp esi, ebx
je 0x100519a
push esi
push ebx
push 0x25c
jmp 0x10051cd
push ebx
push 0x25e
call fcn.01005bde
pop ecx
pop ecx
jmp 0x10052ba
push eax
cmp esi, ebx
je 0x10051c6
push esi
push 2
push 0x25d
call fcn.01005bde
add esp, 0x10
jmp 0x10052ba
push 2
push 0x25f
call fcn.01005bde
add esp, 0xc
jmp 0x10052ba
push dword [esi + 4]
call fcn.01003852
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x100521a
push eax
call fcn.010037e7
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x100521a
push eax
push ebx
call dword [sym.imp.loadperf.dll_SetServiceAsTrustedW]
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push ebx
mov byte [ebp - 1], 1
call edi
push eax
call esi
cmp byte [ebp - 1], bl
jne 0x10052ba
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call fcn.01003961
mov byte [ebp - 1], al
cmp al, bl
je 0x1005267
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x10], ebx
je 0x100524c
push dword [ebp - 0x10]
call fcn.010037e7
mov dword [ebp - 8], eax
push dword [ebp - 8]
call fcn.01003f48
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], ebx
je 0x10052ba
push dword [ebp - 8]
push ebx
call edi
push eax
call esi
jmp 0x10052ba
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
mov dword [ebp - 0x10], ebx
call fcn.01003bfc
cmp eax, ebx
je 0x10052a4
push eax
call fcn.010037e7
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10052a4
push dword [ebp - 0x10]
push eax
push ebx
call fcn.01004283
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push ebx
mov byte [ebp - 1], 1
call edi
push eax
call esi
cmp byte [ebp - 1], bl
jne 0x10052ba
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push ebx
push eax
call dword [sym.imp.loadperf.dll_LoadPerfCounterTextStringsW]
mov dword [ebp - 0xc], eax
pop edi
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x100a120
call fcn.010036f6
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret