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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a13b3
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x61ce74]
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 - 0x2e8], esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2f0], esi
xor ecx, ecx
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 0x2ec], 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 - 0x250], ecx
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str._PerfTool
push eax
call fcn.00542853
add esp, 8
test eax, eax
je 0x4c74fe
cmp dword [edi + 0x10], ebx
jne 0x4c7433
lea eax, [ebp - 0x248]
push eax
call fcn.004c7fc0
add esp, 4
mov edi, dword [ebp - 0x238]
mov byte [ebp - 4], 2
test edi, edi
jne 0x4c730d
xor eax, eax
mov dword [ebp - 0x220], edi
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea ebx, [edi + 4]
call fcn.00430d50
jmp 0x4c741e
mov ebx, dword [ebp - 0x234]
lea edx, [ebp - 0x248]
cmp ebx, 8
mov dword [ebp - 0x2e8], 0xffffffff
lea eax, [edi - 1]
cmovae edx, dword [ebp - 0x248]
or ecx, 0xffffffff
cmp eax, ecx
mov dword [ebp - 0x2e4], eax
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x4c7355
cmp ecx, edx
je 0x4c73bb
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x4c7348
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4c73c0
xor eax, eax
mov dword [ebp - 0x2e0], ecx
cmp edi, ecx
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x220], 0
cmovb ecx, edi
mov dword [ebp - 0x21c], 7
cmp ebx, 8
mov dword [ebp - 0x2f4], edi
push ecx
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
push eax
call fcn.00439df0
lea ecx, [ebp - 0x248]
mov ebx, 0xc
call fcn.00430d50
jmp 0x4c741e
or ecx, 0xffffffff
jmp 0x4c7359
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x224], eax
xor eax, eax
mov dword [ebp - 0x21c], ebx
mov ebx, 4
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
or ebx, 1
mov byte [ebp - 4], 3
lea eax, [ebp - 0x230]
mov dword [ebp - 0x2dc], ebx
jmp 0x4c745b
push edi
lea ecx, [ebp - 0x2d8]
call fcn.00439650
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 4
mov ebx, 2
mov dword [ebp - 0x2dc], ebx
cmp ecx, eax
je 0x4c7474
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4c7465
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x260]
call fcn.00439df0
test bl, 2
je 0x4c7487
lea ecx, [ebp - 0x2d8]
and ebx, 0xfffffffd
call fcn.00430d50
mov dword [ebp - 4], 1
test bl, 1
je 0x4c74f3
mov edx, dword [ebp - 0x21c]
and ebx, 0xfffffffe
cmp edx, 8
jb 0x4c74d6
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c74cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7c95
push edx
push ecx
call fcn.0053d0af
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov edi, dword [ebp - 0x260]
jmp 0x4c795f
push 6
xor eax, eax
mov dword [ebp - 0x280], 0
push str.enable
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
call fcn.00439df0
push 0x2d
xor eax, eax
mov byte [ebp - 4], 5
push str.SOFTWAREKingsoftOffice6.0pluginsperftool
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00439df0
cmp dword [ebp - 0x27c], 8
lea edx, [ebp - 0x2e8]
push edx
lea edx, [ebp - 0x2e0]
mov dword [ebp - 0x2e0], 0
push edx
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x2e8], 4
cmovae ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
push 0
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, dword [ebp - 0x2e0]
xor ecx, ecx
mov edx, dword [ebp - 0x21c]
test eax, eax
cmovne edi, ecx
cmp edx, 8
jb 0x4c7606
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c75fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7c9a
push edx
push ecx
call fcn.0053d0af
add esp, 8
mov edx, dword [ebp - 0x27c]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4c7667
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c765d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7c9a
push edx
push ecx
call fcn.0053d0af
add esp, 8
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
test edi, edi
je 0x4c7b06
push eax
push 0x5b0144
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2c4], 7
mov word [ebp - 0x2d8], ax
call fcn.00439df0
push 3
xor eax, eax
mov byte [ebp - 4], 6
push 0x5cd6cc
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
call fcn.00439df0
push 0x2d
xor eax, eax
mov byte [ebp - 4], 7
push str.SOFTWAREKingsoftOffice6.0pluginsperftool
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.00439df0
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 8
push 0
push eax
call fcn.00540d70
add esp, 0xc
mov dword [ebp - 0x2e4], 0x208
cmp dword [ebp - 0x2ac], 8
lea edx, [ebp - 0x2e4]
lea ecx, [ebp - 0x2c0]
cmovae ecx, dword [ebp - 0x2c0]
lea eax, [ebp - 0x2a8]
cmp dword [ebp - 0x294], 8
push edx
cmovae eax, dword [ebp - 0x2a8]
lea edx, [ebp - 0x218]
push edx
push 0
push ecx
push eax
push 0x80000001
or ebx, 0x10
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4c779e
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x248]
call fcn.00439650
jmp 0x4c77d7
mov eax, dword [ebp - 0x2e4]
xor ecx, ecx
shr eax, 1
dec eax
mov word [ebp - 0x248], cx
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x238], 0
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
call fcn.00439df0
mov eax, dword [ebp - 0x244]
mov edi, dword [ebp - 0x248]
mov edx, dword [ebp - 0x294]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x24c], eax
xor eax, eax
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x4c7880
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7876
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7c9f
push edx
push ecx
call fcn.0053d0af
add esp, 8
mov edx, dword [ebp - 0x2ac]
xor eax, eax
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x4c78e1
mov ecx, dword [ebp - 0x2c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c78d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7c9f
push edx
push ecx
call fcn.0053d0af
add esp, 8
mov edx, dword [ebp - 0x2c4]
xor eax, eax
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4c7942
mov ecx, dword [ebp - 0x2d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7938
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7c9f
push edx
push ecx
call fcn.0053d0af
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 7
mov word [ebp - 0x2d8], ax
mov eax, dword [ebp - 0x250]
test eax, eax
jne 0x4c79a4
mov ecx, dword [ebp - 0x24c]
cmp ecx, 8
jb 0x4c7b06
lea ecx, [ecx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4c799d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7c90
push ecx
push edi
jmp 0x4c7afe
xor ecx, ecx
mov byte [ebp - 4], 9
add eax, 0xd
mov word [ebp - 0x278], cx
or ebx, 0x20
mov dword [ebp - 0x268], 0
push eax
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x2dc], ebx
call fcn.0043a7b0
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push dword [ebp - 0x250]
cmovae eax, edi
lea ecx, [ebp - 0x278]
push eax
call fcn.00439c70
push 0xd
push str.perftool.dll
lea ecx, [ebp - 0x278]
call fcn.00439c70
mov eax, dword [esi]
test eax, eax
je 0x4c7a24
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
lea eax, [ebp - 0x278]
lea ecx, [esi + 4]
cmp ecx, eax
je 0x4c7a4b
cmp dword [ebp - 0x264], 8
push dword [ebp - 0x268]
cmovae eax, dword [ebp - 0x278]
push eax
call fcn.00439df0
mov edx, dword [ebp - 0x264]
and ebx, 0xffffffdf
mov dword [ebp - 0x2dc], ebx
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4c7a98
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7a8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7c90
push edx
push ecx
call fcn.0053d0af
add esp, 8
push dword [ebp - 0x2ec]
xor eax, eax
mov dword [ebp - 0x268], 0
mov ecx, esi
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
call fcn.004c80b0
test al, al
jne 0x4c7b26
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x4c7b06
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7afc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7c90
push edx
push ecx
call fcn.0053d0af
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.0053d079
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x62a1c4], 1
mov eax, dword [esi]
test eax, eax
je 0x4c7b43
push str.PerfToolInit
push eax
call edi
jmp 0x4c7b45
xor eax, eax
mov dword [0x62a1c8], eax
mov eax, dword [esi]
test eax, eax
je 0x4c7b5a
push str.PerfToolTerm
push eax
call edi
jmp 0x4c7b5c
xor eax, eax
mov dword [0x62a1cc], eax
mov eax, dword [esi]
test eax, eax
je 0x4c7b71
push str.PerfToolTermForce
push eax
call edi
jmp 0x4c7b73
xor eax, eax
mov dword [0x62a1d0], eax
mov eax, dword [esi]
test eax, eax
je 0x4c7b88
push str.PerfLogBegin
push eax
call edi
jmp 0x4c7b8a
xor eax, eax
mov dword [0x62a1d4], eax
mov eax, dword [esi]
test eax, eax
je 0x4c7b9f
push str.PerfLogEnd
push eax
call edi
jmp 0x4c7ba1
xor eax, eax
mov dword [0x62a1d8], eax
mov eax, dword [esi]
test eax, eax
je 0x4c7bb6
push str.PerfLogBegin2
push eax
call edi
jmp 0x4c7bb8
xor eax, eax
mov dword [0x62a1dc], eax
mov eax, dword [esi]
test eax, eax
je 0x4c7bcd
push str.PerfLogEnd2
push eax
call edi
jmp 0x4c7bcf
xor eax, eax
mov dword [0x62a1e0], eax
mov eax, dword [esi]
test eax, eax
je 0x4c7be4
push str.AddToStrTable
push eax
call edi
jmp 0x4c7be6
xor eax, eax
mov dword [0x62a1e4], eax
mov eax, dword [esi]
test eax, eax
je 0x4c7bfb
push str.PerfStubBegin
push eax
call edi
jmp 0x4c7bfd
xor eax, eax
mov dword [0x62a1e8], eax
mov eax, dword [esi]
test eax, eax
je 0x4c7c12
push str.PerfStubEnd
push eax
call edi
jmp 0x4c7c14
xor eax, eax
mov dword [0x62a1ec], eax
mov eax, dword [esi]
test eax, eax
je 0x4c7c29
push str.PerfToolGetLogFilePath
push eax
call edi
jmp 0x4c7c2b
xor eax, eax
mov dword [0x62a1f0], eax
mov eax, dword [esi]
test eax, eax
je 0x4c7c40
push str.PerfToolGetBeginPerfCount
push eax
call edi
jmp 0x4c7c42
xor eax, eax
mov dword [0x62a1f4], eax
mov eax, dword [0x62a1c8]
test eax, eax
je 0x4c7c52
call eax
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x4c7b06
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7afc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c7afc
call fcn.0054b0c3
call fcn.0054b0c3
call fcn.0054b0c3
call fcn.0054b0c3
int3