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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab250
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x639354]
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 - 0x40], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str._PerfTool
push eax
call fcn.00561570
add esp, 8
test eax, eax
je 0x4d45e4
cmp dword [ebx + 0x10], 0
jne 0x4d44f8
lea eax, [ebp - 0x58]
push eax
call fcn.004d5010
add esp, 4
mov edi, dword [ebp - 0x48]
mov byte [ebp - 4], 2
test edi, edi
jne 0x4d4452
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x4d44d1
mov ebx, dword [ebp - 0x44]
lea edx, [ebp - 0x58]
cmp ebx, 8
lea eax, [edi - 1]
cmovae edx, dword [ebp - 0x58]
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x4d4481
cmp ecx, edx
je 0x4d44c5
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x4d4474
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4d44c5
xor eax, eax
mov dword [ebp - 0x28], 0
cmp edi, ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x18], 0
cmovb ecx, edi
mov dword [ebp - 0x14], 7
cmp ebx, 8
push ecx
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
push eax
call fcn.0042e330
mov eax, 0xc
jmp 0x4d44d6
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043f4c0
mov eax, 4
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xd4], eax
call fcn.0042ab30
mov ecx, dword [ebp - 0xd4]
lea edx, [ebp - 0x28]
or ecx, 1
mov dword [ebp - 0xd4], ecx
jmp 0x4d4518
push ebx
lea ecx, [ebp - 0x88]
call fcn.0043f520
mov edx, eax
mov ecx, 2
lea eax, [ebp - 0x40]
mov dword [ebp - 0xd4], ecx
cmp eax, edx
je 0x4d4556
mov eax, dword [edx + 4]
mov edi, dword [edx + 0x14]
mov ebx, dword [edx]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0x2c], edi
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
jmp 0x4d4559
mov ebx, dword [ebp - 0x40]
test cl, 2
je 0x4d4578
and ecx, 0xfffffffd
mov dword [ebp - 0xd4], ecx
lea ecx, [ebp - 0x88]
call fcn.0042ab30
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 4], 1
test cl, 1
je 0x4d4970
mov edx, dword [ebp - 0x14]
and ecx, 0xfffffffe
mov dword [ebp - 0xd4], ecx
cmp edx, 8
jb 0x4d45cb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d45c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4ce9
push edx
push ecx
call fcn.0055c524
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x4d4970
push 6
xor eax, eax
mov dword [ebp - 0x28], 0
push str.switch
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042e330
push 0x2d
push str.SOFTWAREKingsoftOffice6.0pluginsperftool
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
call fcn.0042e330
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0xec]
push edx
lea edx, [ebp - 0xe0]
mov dword [ebp - 0xe0], 0
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xec], 4
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push 0
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebx, dword [ebp - 0xe0]
xor ecx, ecx
mov edx, dword [ebp - 0x44]
test eax, eax
cmovne ebx, ecx
cmp edx, 8
jb 0x4d46c4
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d46ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4cee
push edx
push ecx
call fcn.0055c524
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4d4716
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d470c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4cee
push edx
push ecx
call fcn.0055c524
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ebx, ebx
je 0x4d4b49
push eax
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x88]
push 0x5b8734
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.0042e330
push 3
xor eax, eax
mov dword [ebp - 0xb8], 0
push 0x5cd864
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.0042e330
push 0x2d
xor eax, eax
mov dword [ebp - 0xa0], 0
push str.SOFTWAREKingsoftOffice6.0pluginsperftool
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
call fcn.0042e330
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xd0]
push 0x80000001
push eax
call fcn.004d5390
mov ecx, eax
add esp, 0x14
lea eax, [ebp - 0x40]
cmp eax, ecx
je 0x4d4848
mov eax, dword [ecx + 4]
mov edi, dword [ecx + 0x14]
mov ebx, dword [ecx]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0x2c], edi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
jmp 0x4d484b
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0xd0]
call fcn.0042ab30
mov edx, dword [ebp - 0x8c]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x4d489a
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d4890
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4cf3
push edx
push ecx
call fcn.0055c524
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], 5
cmp edx, 8
jb 0x4d48fb
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d48f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4cf3
push edx
push ecx
call fcn.0055c524
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 0x4d4959
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d494f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4cf3
push edx
push ecx
call fcn.0055c524
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x4d49ab
cmp edi, 8
jb 0x4d4b49
lea edi, [edi*2 + 2]
mov eax, ebx
cmp edi, 0x1000
jb 0x4d49a5
mov ebx, dword [ebx - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4ce4
push edi
jmp 0x4d4b40
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0xd
jb 0x4d4cf8
cmp edi, 8
mov dword [ebp - 0x70], 0
lea eax, [ebp - 0x40]
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 0x4d4a2a
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4d4a00
mov esi, 0x7ffffffe
jmp 0x4d4a0a
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x70]
call fcn.0042e2d0
mov ecx, dword [ebp - 0x30]
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 fcn.00560500
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, 0x10
mov dword [ebp - 0xdc], eax
mov esi, dword [ebp - 0xf0]
mov byte [ebp - 4], 8
mov eax, dword [esi]
test eax, eax
je 0x4d4a91
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 0x4d4aac
cmp dword [ebp - 0x5c], 8
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.0042e330
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4d4aea
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d4ae0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4ce4
push edx
push ecx
call fcn.0055c524
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.004d5100
test al, al
jne 0x4d4b69
mov eax, dword [ebp - 0xd8]
cmp eax, 8
jb 0x4d4b49
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4d4b3f
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4ce4
push ecx
push ebx
call fcn.0055c524
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.0055c3a9
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x6421fc], 1
mov eax, dword [esi]
test eax, eax
je 0x4d4b86
push str.PerfToolInit
push eax
call edi
jmp 0x4d4b88
xor eax, eax
mov dword [0x642200], eax
mov eax, dword [esi]
test eax, eax
je 0x4d4b9d
push str.PerfToolTerm
push eax
call edi
jmp 0x4d4b9f
xor eax, eax
mov dword [0x642204], eax
mov eax, dword [esi]
test eax, eax
je 0x4d4bb4
push str.PerfToolTermForce
push eax
call edi
jmp 0x4d4bb6
xor eax, eax
mov dword [0x642208], eax
mov eax, dword [esi]
test eax, eax
je 0x4d4bcb
push str.PerfLogBegin
push eax
call edi
jmp 0x4d4bcd
xor eax, eax
mov dword [0x64220c], eax
mov eax, dword [esi]
test eax, eax
je 0x4d4be2
push str.PerfLogEnd
push eax
call edi
jmp 0x4d4be4
xor eax, eax
mov dword [0x642210], eax
mov eax, dword [esi]
test eax, eax
je 0x4d4bf9
push str.PerfLogBegin2
push eax
call edi
jmp 0x4d4bfb
xor eax, eax
mov dword [0x642214], eax
mov eax, dword [esi]
test eax, eax
je 0x4d4c10
push str.PerfLogEnd2
push eax
call edi
jmp 0x4d4c12
xor eax, eax
mov dword [0x642218], eax
mov eax, dword [esi]
test eax, eax
je 0x4d4c27
push str.AddToStrTable
push eax
call edi
jmp 0x4d4c29
xor eax, eax
mov dword [0x64221c], eax
mov eax, dword [esi]
test eax, eax
je 0x4d4c3e
push str.PerfStubBegin
push eax
call edi
jmp 0x4d4c40
xor eax, eax
mov dword [0x642220], eax
mov eax, dword [esi]
test eax, eax
je 0x4d4c55
push str.PerfStubEnd
push eax
call edi
jmp 0x4d4c57
xor eax, eax
mov dword [0x642224], eax
mov eax, dword [esi]
test eax, eax
je 0x4d4c6c
push str.PerfToolGetLogFilePath
push eax
call edi
jmp 0x4d4c6e
xor eax, eax
mov dword [0x642228], eax
mov eax, dword [esi]
test eax, eax
je 0x4d4c83
push str.PerfToolGetBeginPerfCount
push eax
call edi
jmp 0x4d4c85
xor eax, eax
mov dword [0x64222c], eax
mov eax, dword [esi]
test eax, eax
je 0x4d4c9a
push str.PerfToolSetUIStable
push eax
call edi
jmp 0x4d4c9c
xor eax, eax
mov dword [0x642230], eax
mov eax, dword [0x642200]
test eax, eax
je 0x4d4cac
call eax
mov eax, dword [ebp - 0xd8]
cmp eax, 8
jb 0x4d4b49
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4d4b3f
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4d4b3f
call fcn.0056af64
call fcn.0056af64
call fcn.0056af64
call fcn.0056af64
call fcn.0042e260
int3