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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3935
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x4ce4bc]
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 esi, ecx
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xdc], esi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xf8], esi
xor ecx, ecx
mov dword [ebp - 0xdc], eax
mov dword [esi + 4], eax
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xd4], eax
mov dword [esi], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 7
mov word [esi + 4], cx
mov edi, 7
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str._PerfTool
push eax
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
test eax, eax
je 0x45b180
cmp dword [ebx + 0x10], 0
jne 0x45b056
lea eax, [ebp - 0x40]
push eax
call fcn.0045bbf0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
lea edx, [edi - 6]
jmp 0x45b066
push ebx
lea ecx, [ebp - 0x58]
call fcn.00401f70
mov ecx, eax
mov edx, 2
lea eax, [ebp - 0x28]
mov dword [ebp - 0xd4], edx
cmp eax, ecx
je 0x45b0b1
mov eax, dword [ecx + 4]
mov edi, dword [ecx + 0x14]
mov ebx, dword [ecx]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0x14], edi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
jmp 0x45b0b4
mov ebx, dword [ebp - 0x28]
test dl, 2
je 0x45b112
mov eax, dword [ebp - 0x44]
and edx, 0xfffffffd
mov dword [ebp - 0xd4], edx
cmp eax, 8
jb 0x45b0fe
mov ecx, dword [ebp - 0x58]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b0ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b157
push edx
push ecx
call fcn.00499aee
mov edx, dword [ebp - 0xd4]
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], 1
test dl, 1
je 0x45b52b
and edx, 0xfffffffe
mov dword [ebp - 0xd4], edx
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x45b167
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b15d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45b15d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
jmp 0x45b52b
push 6
xor eax, eax
mov dword [ebp - 0x88], 0
push str.switch
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.00404580
push 0x2d
push str.SOFTWAREKingsoftOffice6.0pluginsperftool
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
call fcn.00404580
cmp dword [ebp - 0x74], 8
lea edx, [ebp - 0xec]
push edx
lea edx, [ebp - 0xe0]
mov dword [ebp - 0xe0], 0
push edx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xec], 4
cmovae ecx, dword [ebp - 0x88]
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 8
push 0
cmovae eax, dword [ebp - 0xa0]
push ecx
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, dword [ebp - 0xe0]
xor ecx, ecx
mov edx, dword [ebp - 0x8c]
test eax, eax
cmovne edi, ecx
cmp edx, 8
jb 0x45b286
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b27c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b2d6
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x45b2e6
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b2dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45b2dc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
test edi, edi
je 0x45b704
push eax
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x58]
push 0x4a9810
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00404580
push 3
xor eax, eax
mov dword [ebp - 0x40], 0
push 0x4b02ec
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00404580
push 0x2d
xor eax, eax
mov dword [ebp - 0xb8], 0
push str.SOFTWAREKingsoftOffice6.0pluginsperftool
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 5
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
call fcn.00404580
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xd0]
push 0x80000001
push eax
call fcn.0045c0e0
add esp, 0x14
lea ecx, [ebp - 0x28]
push eax
call fcn.004023b0
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x45b3ff
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b3f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b4fb
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0xa4]
xor eax, eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x45b460
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b456
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b4fb
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x45b4b7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b4ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b4fb
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x45b50b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b501
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45b501
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edi, dword [ebp - 0x14]
xor eax, eax
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0xd8], edi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x45b566
cmp edi, 8
jb 0x45b704
lea edi, [edi*2 + 2]
mov eax, ebx
cmp edi, 0x1000
jb 0x45b560
mov ebx, dword [ebx - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b89f
push edi
jmp 0x45b6fb
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0xd
jb 0x45b8a5
cmp edi, 8
mov dword [ebp - 0x70], 0
lea eax, [ebp - 0x28]
mov esi, 7
cmovae eax, ebx
lea edi, [ebp - 0x70]
mov dword [ebp - 0xdc], eax
lea eax, [ecx + 0xd]
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], edi
cmp eax, esi
jbe 0x45b5e5
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x45b5bb
mov esi, 0x7ffffffe
jmp 0x45b5c5
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x70]
call fcn.00401c70
mov ecx, dword [ebp - 0x18]
mov edi, eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x5c], esi
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0xdc]
mov dword [ebp - 0x60], eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0xe4]
add edi, esi
mov ecx, 6
mov esi, str.perftool.dll
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xe8]
xor edx, edx
add esp, 0xc
movsw word es:[edi], word [esi]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0xd4]
or eax, 4
mov dword [ebp - 0xdc], eax
mov esi, dword [ebp - 0xf0]
mov byte [ebp - 4], 7
mov eax, dword [esi]
test eax, eax
je 0x45b64c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
lea eax, [ebp - 0x70]
lea ecx, [esi + 4]
cmp ecx, eax
je 0x45b667
cmp dword [ebp - 0x5c], 8
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.00404580
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x45b6a5
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b69b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b89f
push edx
push ecx
call fcn.00499aee
add esp, 8
push dword [ebp - 0xf4]
xor eax, eax
mov dword [ebp - 0x60], 0
mov ecx, esi
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.0045be50
test al, al
jne 0x45b724
mov eax, dword [ebp - 0xd8]
cmp eax, 8
jb 0x45b704
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x45b6fa
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b89f
push ecx
push ebx
call fcn.00499aee
add esp, 8
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.00499afc
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x4d58f8], 1
mov eax, dword [esi]
test eax, eax
je 0x45b741
push str.PerfToolInit
push eax
call edi
jmp 0x45b743
xor eax, eax
mov dword [0x4d58fc], eax
mov eax, dword [esi]
test eax, eax
je 0x45b758
push str.PerfToolTerm
push eax
call edi
jmp 0x45b75a
xor eax, eax
mov dword [0x4d5900], eax
mov eax, dword [esi]
test eax, eax
je 0x45b76f
push str.PerfToolTermForce
push eax
call edi
jmp 0x45b771
xor eax, eax
mov dword [0x4d5904], eax
mov eax, dword [esi]
test eax, eax
je 0x45b786
push str.PerfLogBegin
push eax
call edi
jmp 0x45b788
xor eax, eax
mov dword [0x4d5908], eax
mov eax, dword [esi]
test eax, eax
je 0x45b79d
push str.PerfLogEnd
push eax
call edi
jmp 0x45b79f
xor eax, eax
mov dword [0x4d590c], eax
mov eax, dword [esi]
test eax, eax
je 0x45b7b4
push str.PerfLogBegin2
push eax
call edi
jmp 0x45b7b6
xor eax, eax
mov dword [0x4d5910], eax
mov eax, dword [esi]
test eax, eax
je 0x45b7cb
push str.PerfLogEnd2
push eax
call edi
jmp 0x45b7cd
xor eax, eax
mov dword [0x4d5914], eax
mov eax, dword [esi]
test eax, eax
je 0x45b7e2
push str.AddToStrTable
push eax
call edi
jmp 0x45b7e4
xor eax, eax
mov dword [0x4d5918], eax
mov eax, dword [esi]
test eax, eax
je 0x45b7f9
push str.PerfStubBegin
push eax
call edi
jmp 0x45b7fb
xor eax, eax
mov dword [0x4d591c], eax
mov eax, dword [esi]
test eax, eax
je 0x45b810
push str.PerfStubEnd
push eax
call edi
jmp 0x45b812
xor eax, eax
mov dword [0x4d5920], eax
mov eax, dword [esi]
test eax, eax
je 0x45b827
push str.PerfToolGetLogFilePath
push eax
call edi
jmp 0x45b829
xor eax, eax
mov dword [0x4d5924], eax
mov eax, dword [esi]
test eax, eax
je 0x45b83e
push str.PerfToolGetBeginPerfCount
push eax
call edi
jmp 0x45b840
xor eax, eax
mov dword [0x4d5928], eax
mov eax, dword [esi]
test eax, eax
je 0x45b855
push str.PerfToolSetUIStable
push eax
call edi
jmp 0x45b857
xor eax, eax
mov dword [0x4d592c], eax
mov eax, dword [0x4d58fc]
test eax, eax
je 0x45b867
call eax
mov eax, dword [ebp - 0xd8]
cmp eax, 8
jb 0x45b704
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x45b6fa
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45b6fa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401c50
int3