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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a30a5
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 0x45b2a0
cmp dword [ebx + 0x10], 0
jne 0x45b176
lea eax, [ebp - 0x40]
push eax
call fcn.0045bd10
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
lea edx, [edi - 6]
jmp 0x45b186
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 0x45b1d1
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 0x45b1d4
mov ebx, dword [ebp - 0x28]
test dl, 2
je 0x45b232
mov eax, dword [ebp - 0x44]
and edx, 0xfffffffd
mov dword [ebp - 0xd4], edx
cmp eax, 8
jb 0x45b21e
mov ecx, dword [ebp - 0x58]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b20e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b277
push edx
push ecx
call fcn.0049927f
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 0x45b64b
and edx, 0xfffffffe
mov dword [ebp - 0xd4], edx
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x45b287
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b27d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45b27d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049927f
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
jmp 0x45b64b
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 0x45b3a6
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b39c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b3f6
push edx
push ecx
call fcn.0049927f
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 0x45b406
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b3fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45b3fc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049927f
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 0x45b824
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 0x4b02ac
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.0045c200
add esp, 0x14
lea ecx, [ebp - 0x28]
push eax
call fcn.004023b0
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x45b51f
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b515
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b61b
push edx
push ecx
call fcn.0049927f
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 0x45b580
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b576
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b61b
push edx
push ecx
call fcn.0049927f
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 0x45b5d7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b5cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b61b
push edx
push ecx
call fcn.0049927f
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 0x45b62b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b621
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45b621
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049927f
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 0x45b686
cmp edi, 8
jb 0x45b824
lea edi, [edi*2 + 2]
mov eax, ebx
cmp edi, 0x1000
jb 0x45b680
mov ebx, dword [ebx - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b9bf
push edi
jmp 0x45b81b
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0xd
jb 0x45b9c5
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 0x45b705
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x45b6db
mov esi, 0x7ffffffe
jmp 0x45b6e5
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 0x45b76c
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 0x45b787
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 0x45b7c5
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b7bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b9bf
push edx
push ecx
call fcn.0049927f
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.0045bf70
test al, al
jne 0x45b844
mov eax, dword [ebp - 0xd8]
cmp eax, 8
jb 0x45b824
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x45b81a
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b9bf
push ecx
push ebx
call fcn.0049927f
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.0049928d
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x4d5908], 1
mov eax, dword [esi]
test eax, eax
je 0x45b861
push str.PerfToolInit
push eax
call edi
jmp 0x45b863
xor eax, eax
mov dword [0x4d590c], eax
mov eax, dword [esi]
test eax, eax
je 0x45b878
push str.PerfToolTerm
push eax
call edi
jmp 0x45b87a
xor eax, eax
mov dword [0x4d5910], eax
mov eax, dword [esi]
test eax, eax
je 0x45b88f
push str.PerfToolTermForce
push eax
call edi
jmp 0x45b891
xor eax, eax
mov dword [0x4d5914], eax
mov eax, dword [esi]
test eax, eax
je 0x45b8a6
push str.PerfLogBegin
push eax
call edi
jmp 0x45b8a8
xor eax, eax
mov dword [0x4d5918], eax
mov eax, dword [esi]
test eax, eax
je 0x45b8bd
push str.PerfLogEnd
push eax
call edi
jmp 0x45b8bf
xor eax, eax
mov dword [0x4d591c], eax
mov eax, dword [esi]
test eax, eax
je 0x45b8d4
push str.PerfLogBegin2
push eax
call edi
jmp 0x45b8d6
xor eax, eax
mov dword [0x4d5920], eax
mov eax, dword [esi]
test eax, eax
je 0x45b8eb
push str.PerfLogEnd2
push eax
call edi
jmp 0x45b8ed
xor eax, eax
mov dword [0x4d5924], eax
mov eax, dword [esi]
test eax, eax
je 0x45b902
push str.AddToStrTable
push eax
call edi
jmp 0x45b904
xor eax, eax
mov dword [0x4d5928], eax
mov eax, dword [esi]
test eax, eax
je 0x45b919
push str.PerfStubBegin
push eax
call edi
jmp 0x45b91b
xor eax, eax
mov dword [0x4d592c], eax
mov eax, dword [esi]
test eax, eax
je 0x45b930
push str.PerfStubEnd
push eax
call edi
jmp 0x45b932
xor eax, eax
mov dword [0x4d5930], eax
mov eax, dword [esi]
test eax, eax
je 0x45b947
push str.PerfToolGetLogFilePath
push eax
call edi
jmp 0x45b949
xor eax, eax
mov dword [0x4d5934], eax
mov eax, dword [esi]
test eax, eax
je 0x45b95e
push str.PerfToolGetBeginPerfCount
push eax
call edi
jmp 0x45b960
xor eax, eax
mov dword [0x4d5938], eax
mov eax, dword [esi]
test eax, eax
je 0x45b975
push str.PerfToolSetUIStable
push eax
call edi
jmp 0x45b977
xor eax, eax
mov dword [0x4d593c], eax
mov eax, dword [0x4d590c]
test eax, eax
je 0x45b987
call eax
mov eax, dword [ebp - 0xd8]
cmp eax, 8
jb 0x45b824
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x45b81a
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45b81a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401c50
int3