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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5166bc
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [section..data]
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 eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x12c], edi
mov dword [esi], edi
mov ebx, 7
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x130], eax
mov word [esi + 4], cx
xor edx, edx
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str._PerfTool
push eax
call fcn.00406341
add esp, 8
test eax, eax
je 0x4104ca
mov eax, dword [ebp - 0x130]
cmp dword [eax + 0x10], edi
jne 0x410417
lea eax, [ebp - 0x10c]
push eax
call fcn.0043d658
add esp, 4
mov byte [ebp - 4], 2
mov dword [ebp - 0x12c], 1
jmp 0x410443
push 0xffffffffffffffff
xor ecx, ecx
push edi
mov word [ebp - 0x80], cx
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], edi
call fcn.00404e84
lea eax, [ebp - 0x80]
mov dword [ebp - 4], 3
mov dword [ebp - 0x12c], 2
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404e84
test byte [ebp - 0x12c], 2
je 0x41047d
and dword [ebp - 0x12c], 0xfffffffd
cmp dword [ebp - 0x6c], 8
jb 0x410471
mov edx, dword [ebp - 0x80]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], ax
test byte [ebp - 0x12c], 1
mov dword [ebp - 4], 1
je 0x410715
and dword [ebp - 0x12c], 0xfffffffe
cmp dword [ebp - 0xf8], 8
jb 0x4104b0
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.00404f7d
add esp, 4
xor edx, edx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xfc], edi
mov word [ebp - 0x10c], dx
jmp 0x410715
push 6
xor eax, eax
push str.enable
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
call fcn.0040392d
xor ecx, ecx
push 0x2d
mov word [ebp - 0x48], cx
push str.SOFTWAREKingsoftOffice6.0pluginsperftool
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
call fcn.0040392d
mov ecx, dword [ebp - 0x64]
mov eax, 8
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x13c], 4
cmp dword [ebp - 0x50], eax
jae 0x410524
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
jae 0x41052f
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x13c]
push edx
lea edx, [ebp - 0x134]
push edx
push edi
push ecx
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 0x134]
cmp dword [ebp - 0x34], 8
jb 0x41056b
mov eax, dword [ebp - 0x48]
push eax
call fcn.00404f7d
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
mov byte [ebp - 4], 1
jb 0x41058d
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
cmp esi, edi
je 0x41070f
xor ecx, ecx
push edi
mov word [ebp - 0xb8], cx
push 0x523b80
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], edi
call fcn.0040392d
push 3
xor edx, edx
push 0x526bc0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], dx
call fcn.0040392d
push 0x2d
xor eax, eax
push str.SOFTWAREKingsoftOffice6.0pluginsperftool
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 6
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xc4], edi
mov word [ebp - 0xd4], ax
call fcn.0040392d
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x128]
push 0x80000001
push ecx
mov byte [ebp - 4], bl
call fcn.0043d2d5
add esp, 0x14
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00403fa0
mov esi, 8
cmp dword [ebp - 0x114], esi
jb 0x410672
mov edx, dword [ebp - 0x128]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x118], edi
mov word [ebp - 0x128], ax
cmp dword [ebp - 0xc0], esi
jb 0x41069e
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.00404f7d
add esp, 4
xor edx, edx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xc4], edi
mov word [ebp - 0xd4], dx
cmp dword [ebp - 0x88], esi
jb 0x4106ca
mov eax, dword [ebp - 0x9c]
push eax
call fcn.00404f7d
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], cx
mov byte [ebp - 4], 1
cmp dword [ebp - 0xa4], esi
jb 0x4106fa
mov edx, dword [ebp - 0xb8]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], edi
mov word [ebp - 0xb8], ax
mov esi, dword [ebp - 0x138]
cmp dword [ebp - 0x1c], edi
jne 0x41072d
cmp dword [ebp - 0x18], 8
jb 0x410904
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x4108fc
push str.perftool.dll
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0xf0]
push eax
call fcn.00404f88
add esp, 0xc
mov dword [ebp - 0x140], eax
mov eax, dword [esi]
mov byte [ebp - 4], 9
cmp eax, edi
je 0x41075e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], edi
mov ecx, dword [ebp - 0x140]
push 0xffffffffffffffff
push edi
push ecx
lea ecx, [esi + 4]
call fcn.00404e84
cmp dword [ebp - 0xdc], 8
mov byte [ebp - 4], 1
jb 0x41078c
mov edx, dword [ebp - 0xf0]
push edx
call fcn.00404f7d
add esp, 4
mov ecx, dword [ebp - 0x130]
xor eax, eax
push ecx
mov ecx, esi
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xe0], edi
mov word [ebp - 0xf0], ax
call fcn.0043d548
test al, al
jne 0x4107c6
cmp dword [ebp - 0x18], 8
jb 0x410904
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x4108fc
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x55f474], 1
mov eax, dword [esi]
cmp eax, edi
je 0x4107e3
push str.PerfToolInit
push eax
call ebx
jmp 0x4107e5
xor eax, eax
mov dword [0x55f440], eax
mov eax, dword [esi]
cmp eax, edi
je 0x4107fa
push str.PerfToolTerm
push eax
call ebx
jmp 0x4107fc
xor eax, eax
mov dword [0x55f444], eax
mov eax, dword [esi]
cmp eax, edi
je 0x410811
push str.PerfToolTermForce
push eax
call ebx
jmp 0x410813
xor eax, eax
mov dword [0x55f448], eax
mov eax, dword [esi]
cmp eax, edi
je 0x410828
push str.PerfLogBegin
push eax
call ebx
jmp 0x41082a
xor eax, eax
mov dword [0x55f44c], eax
mov eax, dword [esi]
cmp eax, edi
je 0x41083f
push str.PerfLogEnd
push eax
call ebx
jmp 0x410841
xor eax, eax
mov dword [0x55f450], eax
mov eax, dword [esi]
cmp eax, edi
je 0x410856
push str.PerfLogBegin2
push eax
call ebx
jmp 0x410858
xor eax, eax
mov dword [0x55f454], eax
mov eax, dword [esi]
cmp eax, edi
je 0x41086d
push str.PerfLogEnd2
push eax
call ebx
jmp 0x41086f
xor eax, eax
mov dword [0x55f458], eax
mov eax, dword [esi]
cmp eax, edi
je 0x410884
push str.AddToStrTable
push eax
call ebx
jmp 0x410886
xor eax, eax
mov dword [0x55f45c], eax
mov eax, dword [esi]
cmp eax, edi
je 0x41089b
push str.PerfStubBegin
push eax
call ebx
jmp 0x41089d
xor eax, eax
mov dword [0x55f460], eax
mov eax, dword [esi]
cmp eax, edi
je 0x4108b2
push str.PerfStubEnd
push eax
call ebx
jmp 0x4108b4
xor eax, eax
mov dword [0x55f464], eax
mov eax, dword [esi]
cmp eax, edi
je 0x4108c9
push str.PerfToolGetLogFilePath
push eax
call ebx
jmp 0x4108cb
xor eax, eax
mov dword [0x55f468], eax
mov eax, dword [esi]
cmp eax, edi
je 0x4108e0
push str.PerfToolGetBeginPerfCount
push eax
call ebx
jmp 0x4108e2
xor eax, eax
mov dword [0x55f46c], eax
mov eax, dword [0x55f440]
cmp eax, edi
je 0x4108f2
call eax
cmp dword [ebp - 0x18], 8
jb 0x410904
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
add esp, 4
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.0040330b
mov esp, ebp
pop ebp
ret 4