Function at 0x40f13d
Capabilities:
Accept command line arguments
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49318a
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x12c], edi
mov dword [esi], edi
mov ebx, 7
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x130], eax
mov word [esi + 4], cx
xor edx, edx
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str._PerfTool
push eax
call fcn.0040648d
add esp, 8
test eax, eax
je 0x40f2a3
mov eax, dword [ebp - 0x130]
cmp dword [eax + 0x10], edi
jne 0x40f1f0
lea eax, [ebp - 0x10c]
push eax
call fcn.0043aa46
add esp, 4
mov byte [ebp - 4], 2
mov dword [ebp - 0x12c], 1
jmp 0x40f21c
push 0xffffffffffffffff
xor ecx, ecx
push edi
mov word [ebp - 0x80], cx
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], edi
call fcn.00404e0e
lea eax, [ebp - 0x80]
mov dword [ebp - 4], 3
mov dword [ebp - 0x12c], 2
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404e0e
test byte [ebp - 0x12c], 2
je 0x40f256
and dword [ebp - 0x12c], 0xfffffffd
cmp dword [ebp - 0x6c], 8
jb 0x40f24a
mov edx, dword [ebp - 0x80]
push edx
call fcn.00404f07
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], ax
test byte [ebp - 0x12c], 1
mov dword [ebp - 4], 1
je 0x40f4ee
and dword [ebp - 0x12c], 0xfffffffe
cmp dword [ebp - 0xf8], 8
jb 0x40f289
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.00404f07
add esp, 4
xor edx, edx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xfc], edi
mov word [ebp - 0x10c], dx
jmp 0x40f4ee
push 6
xor eax, eax
push str.enable
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
call fcn.00403bac
xor ecx, ecx
push 0x2d
mov word [ebp - 0x48], cx
push str.SOFTWAREKingsoftOffice6.0pluginsperftool
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
call fcn.00403bac
mov ecx, dword [ebp - 0x64]
mov eax, 8
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x13c], 4
cmp dword [ebp - 0x50], eax
jae 0x40f2fd
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
jae 0x40f308
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x13c]
push edx
lea edx, [ebp - 0x134]
push edx
push edi
push ecx
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 0x134]
cmp dword [ebp - 0x34], 8
jb 0x40f344
mov eax, dword [ebp - 0x48]
push eax
call fcn.00404f07
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
mov byte [ebp - 4], 1
jb 0x40f366
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404f07
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
cmp esi, edi
je 0x40f4e8
xor ecx, ecx
push edi
mov word [ebp - 0xb8], cx
push 0x49df68
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], edi
call fcn.00403bac
push 3
xor edx, edx
push 0x4a1f7c
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], dx
call fcn.00403bac
push 0x2d
xor eax, eax
push str.SOFTWAREKingsoftOffice6.0pluginsperftool
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 6
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xc4], edi
mov word [ebp - 0xd4], ax
call fcn.00403bac
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x128]
push 0x80000001
push ecx
mov byte [ebp - 4], bl
call fcn.0043a6c3
add esp, 0x14
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00403c9c
mov esi, 8
cmp dword [ebp - 0x114], esi
jb 0x40f44b
mov edx, dword [ebp - 0x128]
push edx
call fcn.00404f07
add esp, 4
xor eax, eax
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x118], edi
mov word [ebp - 0x128], ax
cmp dword [ebp - 0xc0], esi
jb 0x40f477
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.00404f07
add esp, 4
xor edx, edx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xc4], edi
mov word [ebp - 0xd4], dx
cmp dword [ebp - 0x88], esi
jb 0x40f4a3
mov eax, dword [ebp - 0x9c]
push eax
call fcn.00404f07
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], cx
mov byte [ebp - 4], 1
cmp dword [ebp - 0xa4], esi
jb 0x40f4d3
mov edx, dword [ebp - 0xb8]
push edx
call fcn.00404f07
add esp, 4
xor eax, eax
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], edi
mov word [ebp - 0xb8], ax
mov esi, dword [ebp - 0x138]
cmp dword [ebp - 0x1c], edi
jne 0x40f506
cmp dword [ebp - 0x18], 8
jb 0x40f6dd
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x40f6d5
push str.perftool.dll
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0xf0]
push eax
call fcn.00404f12
add esp, 0xc
mov dword [ebp - 0x140], eax
mov eax, dword [esi]
mov byte [ebp - 4], 9
cmp eax, edi
je 0x40f537
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], edi
mov ecx, dword [ebp - 0x140]
push 0xffffffffffffffff
push edi
push ecx
lea ecx, [esi + 4]
call fcn.00404e0e
cmp dword [ebp - 0xdc], 8
mov byte [ebp - 4], 1
jb 0x40f565
mov edx, dword [ebp - 0xf0]
push edx
call fcn.00404f07
add esp, 4
mov ecx, dword [ebp - 0x130]
xor eax, eax
push ecx
mov ecx, esi
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xe0], edi
mov word [ebp - 0xf0], ax
call fcn.0043a936
test al, al
jne 0x40f59f
cmp dword [ebp - 0x18], 8
jb 0x40f6dd
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x40f6d5
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x4cc84c], 1
mov eax, dword [esi]
cmp eax, edi
je 0x40f5bc
push str.PerfToolInit
push eax
call ebx
jmp 0x40f5be
xor eax, eax
mov dword [0x4cc818], eax
mov eax, dword [esi]
cmp eax, edi
je 0x40f5d3
push str.PerfToolTerm
push eax
call ebx
jmp 0x40f5d5
xor eax, eax
mov dword [0x4cc81c], eax
mov eax, dword [esi]
cmp eax, edi
je 0x40f5ea
push str.PerfToolTermForce
push eax
call ebx
jmp 0x40f5ec
xor eax, eax
mov dword [0x4cc820], eax
mov eax, dword [esi]
cmp eax, edi
je 0x40f601
push str.PerfLogBegin
push eax
call ebx
jmp 0x40f603
xor eax, eax
mov dword [0x4cc824], eax
mov eax, dword [esi]
cmp eax, edi
je 0x40f618
push str.PerfLogEnd
push eax
call ebx
jmp 0x40f61a
xor eax, eax
mov dword [0x4cc828], eax
mov eax, dword [esi]
cmp eax, edi
je 0x40f62f
push str.PerfLogBegin2
push eax
call ebx
jmp 0x40f631
xor eax, eax
mov dword [0x4cc82c], eax
mov eax, dword [esi]
cmp eax, edi
je 0x40f646
push str.PerfLogEnd2
push eax
call ebx
jmp 0x40f648
xor eax, eax
mov dword [0x4cc830], eax
mov eax, dword [esi]
cmp eax, edi
je 0x40f65d
push str.AddToStrTable
push eax
call ebx
jmp 0x40f65f
xor eax, eax
mov dword [0x4cc834], eax
mov eax, dword [esi]
cmp eax, edi
je 0x40f674
push str.PerfStubBegin
push eax
call ebx
jmp 0x40f676
xor eax, eax
mov dword [0x4cc838], eax
mov eax, dword [esi]
cmp eax, edi
je 0x40f68b
push str.PerfStubEnd
push eax
call ebx
jmp 0x40f68d
xor eax, eax
mov dword [0x4cc83c], eax
mov eax, dword [esi]
cmp eax, edi
je 0x40f6a2
push str.PerfToolGetLogFilePath
push eax
call ebx
jmp 0x40f6a4
xor eax, eax
mov dword [0x4cc840], eax
mov eax, dword [esi]
cmp eax, edi
je 0x40f6b9
push str.PerfToolGetBeginPerfCount
push eax
call ebx
jmp 0x40f6bb
xor eax, eax
mov dword [0x4cc844], eax
mov eax, dword [0x4cc818]
cmp eax, edi
je 0x40f6cb
call eax
cmp dword [ebp - 0x18], 8
jb 0x40f6dd
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f07
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret 4