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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0fd4
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x62819c]
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 - 0xdc], esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xe4], esi
xor ecx, ecx
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xe0], edi
mov dword [esi], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 7
mov word [esi + 4], cx
xor eax, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str._PerfTool
push eax
call fcn.0054c0c3
add esp, 8
test eax, eax
je 0x4c9e63
cmp dword [edi + 0x10], ebx
jne 0x4c9db0
lea eax, [ebp - 0x40]
push eax
call fcn.004ca7f0
add esp, 4
mov edi, dword [ebp - 0x30]
mov byte [ebp - 4], 2
test edi, edi
jne 0x4c9cd2
xor eax, eax
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ebx, [edi + 4]
call fcn.0042a1f0
jmp 0x4c9d9e
mov ebx, dword [ebp - 0x2c]
lea edx, [ebp - 0x40]
cmp ebx, 8
mov dword [ebp - 0xdc], 0xffffffff
lea eax, [edi - 1]
cmovae edx, dword [ebp - 0x40]
or ecx, 0xffffffff
cmp eax, ecx
mov dword [ebp - 0xd8], eax
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x4c9d11
cmp ecx, edx
je 0x4c9d62
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x4c9d04
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4c9d67
xor eax, eax
mov dword [ebp - 0xe8], ecx
cmp edi, ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], 0
cmovb ecx, edi
mov dword [ebp - 0x14], 7
cmp ebx, 8
mov dword [ebp - 0xec], edi
push ecx
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.0042daa0
lea ecx, [ebp - 0x40]
mov ebx, 0xc
call fcn.0042a1f0
jmp 0x4c9d9e
or ecx, 0xffffffff
jmp 0x4c9d15
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], ebx
mov ebx, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
or ebx, 1
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
mov dword [ebp - 0xd4], ebx
jmp 0x4c9dd5
push edi
lea ecx, [ebp - 0x88]
call fcn.0043e510
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 4
mov ebx, 2
mov dword [ebp - 0xd4], ebx
cmp ecx, eax
je 0x4c9deb
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4c9ddf
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0042daa0
test bl, 2
je 0x4c9dfe
lea ecx, [ebp - 0x88]
and ebx, 0xfffffffd
call fcn.0042a1f0
mov dword [ebp - 4], 1
test bl, 1
je 0x4c9e5b
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffffe
cmp edx, 8
jb 0x4c9e47
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c9e3d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ca4cc
push edx
push ecx
call fcn.00546044
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edi, dword [ebp - 0x58]
jmp 0x4ca1c7
push 6
xor eax, eax
mov dword [ebp - 0x18], 0
push str.switch
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042daa0
push 0x2d
xor eax, eax
mov byte [ebp - 4], 5
push str.SOFTWAREKingsoftOffice6.0pluginsperftool
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.0042daa0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0xdc]
push edx
lea edx, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xdc], 4
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, dword [ebp - 0xd8]
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
test eax, eax
cmovne edi, ecx
cmp edx, 8
jb 0x4c9f3b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c9f31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ca4d1
push edx
push ecx
call fcn.00546044
add esp, 8
mov edx, dword [ebp - 0x14]
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 0x4c9f8d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c9f83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ca4d1
push edx
push ecx
call fcn.00546044
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test edi, edi
je 0x4ca32c
push eax
push 0x5ac698
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.0042daa0
push 3
xor eax, eax
mov byte [ebp - 4], 6
push 0x5c2ab4
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
call fcn.0042daa0
push 0x2d
xor eax, eax
mov byte [ebp - 4], 7
push str.SOFTWAREKingsoftOffice6.0pluginsperftool
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
call fcn.0042daa0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xd0]
push 0x80000001
push eax
call fcn.004cab60
mov ecx, eax
add esp, 0x14
lea eax, [ebp - 0x58]
cmp eax, ecx
je 0x4ca09f
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x58], edi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
jmp 0x4ca0a2
mov edi, dword [ebp - 0x58]
lea ecx, [ebp - 0xd0]
call fcn.0042a1f0
mov edx, dword [ebp - 0x8c]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x4ca0f1
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ca0e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ca4d6
push edx
push ecx
call fcn.00546044
add esp, 8
mov edx, dword [ebp - 0xa4]
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x4ca152
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ca148
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ca4d6
push edx
push ecx
call fcn.00546044
add esp, 8
mov edx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4ca1b0
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ca1a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ca4d6
push edx
push ecx
call fcn.00546044
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4ca206
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x4ca32c
lea ecx, [ecx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4ca1ff
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ca4c7
push ecx
push edi
jmp 0x4ca324
xor ecx, ecx
mov byte [ebp - 4], 9
add eax, 0xd
mov word [ebp - 0x70], cx
or ebx, 0x10
mov dword [ebp - 0x60], 0
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0xd4], ebx
call fcn.0043f560
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, edi
lea ecx, [ebp - 0x70]
push eax
call fcn.0043eb30
push 0xd
push str.perftool.dll
lea ecx, [ebp - 0x70]
call fcn.0043eb30
mov eax, dword [esi]
test eax, eax
je 0x4ca26b
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 0x4ca286
cmp dword [ebp - 0x5c], 8
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.0042daa0
mov edx, dword [ebp - 0x5c]
and ebx, 0xffffffef
mov dword [ebp - 0xd4], ebx
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4ca2cd
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ca2c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ca4c7
push edx
push ecx
call fcn.00546044
add esp, 8
push dword [ebp - 0xe0]
xor eax, eax
mov dword [ebp - 0x60], 0
mov ecx, esi
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.004ca8e0
test al, al
jne 0x4ca34c
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4ca32c
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ca322
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ca4c7
push edx
push ecx
call fcn.00546044
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.00545ec7
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x631d90], 1
mov eax, dword [esi]
test eax, eax
je 0x4ca369
push str.PerfToolInit
push eax
call edi
jmp 0x4ca36b
xor eax, eax
mov dword [0x631d94], eax
mov eax, dword [esi]
test eax, eax
je 0x4ca380
push str.PerfToolTerm
push eax
call edi
jmp 0x4ca382
xor eax, eax
mov dword [0x631d98], eax
mov eax, dword [esi]
test eax, eax
je 0x4ca397
push str.PerfToolTermForce
push eax
call edi
jmp 0x4ca399
xor eax, eax
mov dword [0x631d9c], eax
mov eax, dword [esi]
test eax, eax
je 0x4ca3ae
push str.PerfLogBegin
push eax
call edi
jmp 0x4ca3b0
xor eax, eax
mov dword [0x631da0], eax
mov eax, dword [esi]
test eax, eax
je 0x4ca3c5
push str.PerfLogEnd
push eax
call edi
jmp 0x4ca3c7
xor eax, eax
mov dword [0x631da4], eax
mov eax, dword [esi]
test eax, eax
je 0x4ca3dc
push str.PerfLogBegin2
push eax
call edi
jmp 0x4ca3de
xor eax, eax
mov dword [0x631da8], eax
mov eax, dword [esi]
test eax, eax
je 0x4ca3f3
push str.PerfLogEnd2
push eax
call edi
jmp 0x4ca3f5
xor eax, eax
mov dword [0x631dac], eax
mov eax, dword [esi]
test eax, eax
je 0x4ca40a
push str.AddToStrTable
push eax
call edi
jmp 0x4ca40c
xor eax, eax
mov dword [0x631db0], eax
mov eax, dword [esi]
test eax, eax
je 0x4ca421
push str.PerfStubBegin
push eax
call edi
jmp 0x4ca423
xor eax, eax
mov dword [0x631db4], eax
mov eax, dword [esi]
test eax, eax
je 0x4ca438
push str.PerfStubEnd
push eax
call edi
jmp 0x4ca43a
xor eax, eax
mov dword [0x631db8], eax
mov eax, dword [esi]
test eax, eax
je 0x4ca44f
push str.PerfToolGetLogFilePath
push eax
call edi
jmp 0x4ca451
xor eax, eax
mov dword [0x631dbc], eax
mov eax, dword [esi]
test eax, eax
je 0x4ca466
push str.PerfToolGetBeginPerfCount
push eax
call edi
jmp 0x4ca468
xor eax, eax
mov dword [0x631dc0], eax
mov eax, dword [esi]
test eax, eax
je 0x4ca47d
push str.PerfToolSetUIStable
push eax
call edi
jmp 0x4ca47f
xor eax, eax
mov dword [0x631dc4], eax
mov eax, dword [0x631d94]
test eax, eax
je 0x4ca48f
call eax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4ca32c
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ca322
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4ca322
call fcn.00555394
call fcn.00555394
call fcn.00555394
call fcn.00555394
int3