Function at 0x422680
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5097ee
mov eax, dword fs:[0]
push eax
sub esp, 0xa7c
mov eax, dword [0x547770]
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 ecx, dword [ebp + 0xc]
xor ebx, ebx
push 0x208
lea edx, [ebp - 0x218]
push ebx
push edx
mov dword [ebp - 0xa84], eax
mov dword [ebp - 0xa88], ecx
mov dword [ebp - 0xa80], ebx
call fcn.004bad00
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004252b0
add esp, 0x14
mov dword [ebp - 0xa7c], ebx
mov dword [ebp - 0xa78], ebx
mov dword [ebp - 0xa74], ebx
xor ecx, ecx
push 9
mov word [ebp - 0xa34], cx
mov edi, 7
push str._PerfTool
lea ecx, [ebp - 0xa34]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xa20], edi
mov dword [ebp - 0xa24], ebx
call fcn.004021e0
lea edx, [ebp - 0xa34]
push edx
lea ecx, [ebp - 0xa7c]
mov byte [ebp - 4], 1
call fcn.00406ac0
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0xa20], esi
jb 0x422764
mov eax, dword [ebp - 0xa34]
push eax
call fcn.004b9d66
add esp, 4
xor ecx, ecx
push 0x18
mov word [ebp - 0xa34], cx
push str._PFIgnoreDirtyFilePrompt
lea ecx, [ebp - 0xa34]
mov dword [ebp - 0xa20], edi
mov dword [ebp - 0xa24], ebx
call fcn.004021e0
lea edx, [ebp - 0xa34]
push edx
lea ecx, [ebp - 0xa7c]
mov byte [ebp - 4], 2
call fcn.00406ac0
mov byte [ebp - 4], bl
cmp dword [ebp - 0xa20], esi
jb 0x4227bb
mov eax, dword [ebp - 0xa34]
push eax
call fcn.004b9d66
add esp, 4
call fcn.004252d0
push edx
push eax
lea ecx, [ebp - 0xa6c]
push ecx
call fcn.00408f50
add esp, 0xc
mov dword [ebp - 0xa80], eax
push 0x10
xor edx, edx
push str._PerfBeginCount
lea ecx, [ebp - 0xa34]
mov byte [ebp - 4], 3
mov dword [ebp - 0xa20], edi
mov dword [ebp - 0xa24], ebx
mov word [ebp - 0xa34], dx
call fcn.004021e0
mov eax, dword [ebp - 0xa80]
push eax
lea ecx, [ebp - 0xa34]
push ecx
lea edx, [ebp - 0xa50]
push edx
mov byte [ebp - 4], 4
call fcn.004051d0
add esp, 0xc
push eax
lea ecx, [ebp - 0xa7c]
mov byte [ebp - 4], 5
call fcn.004061f0
cmp dword [ebp - 0xa3c], esi
jb 0x42284a
mov eax, dword [ebp - 0xa50]
push eax
call fcn.004b9d66
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa3c], edi
mov dword [ebp - 0xa40], ebx
mov word [ebp - 0xa50], cx
cmp dword [ebp - 0xa20], esi
jb 0x422876
mov edx, dword [ebp - 0xa34]
push edx
call fcn.004b9d66
add esp, 4
xor eax, eax
mov dword [ebp - 0xa20], edi
mov dword [ebp - 0xa24], ebx
mov word [ebp - 0xa34], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0xa58], esi
jb 0x4228a5
mov ecx, dword [ebp - 0xa6c]
push ecx
call fcn.004b9d66
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str._PerfVtune
push eax
call fcn.004bc7da
add esp, 8
test eax, eax
je 0x422914
push 0xa
xor edx, edx
push str._PerfVtune
lea ecx, [ebp - 0xa34]
mov dword [ebp - 0xa20], edi
mov dword [ebp - 0xa24], ebx
mov word [ebp - 0xa34], dx
call fcn.004021e0
lea eax, [ebp - 0xa34]
push eax
lea ecx, [ebp - 0xa7c]
mov byte [ebp - 4], 6
call fcn.00406ac0
mov byte [ebp - 4], bl
cmp dword [ebp - 0xa20], esi
jb 0x422914
mov ecx, dword [ebp - 0xa34]
push ecx
call fcn.004b9d66
add esp, 4
lea edx, [ebp - 0x218]
push 0x2e
push edx
call fcn.004bc66c
add esp, 8
cmp eax, ebx
je 0x422a63
push 0x800
lea edx, [ebp - 0xa18]
xor ecx, ecx
push ebx
push edx
mov word [eax], cx
call fcn.004bad00
mov eax, dword [0x54e21c]
mov ecx, eax
inc eax
mov dword [0x54e21c], eax
mov eax, dword [ebp - 0xa88]
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x422961
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
push str._ws__ws__lu.kpl
lea ecx, [ebp - 0xa18]
push 0x400
push ecx
call fcn.004bbb2a
add esp, 0x18
push 0xe
xor edx, edx
push str.__PerfLogFile
lea ecx, [ebp - 0xa34]
mov dword [ebp - 0xa20], edi
mov dword [ebp - 0xa24], ebx
mov word [ebp - 0xa34], dx
call fcn.004021e0
lea eax, [ebp - 0xa18]
push eax
lea ecx, [ebp - 0xa34]
push ecx
lea edx, [ebp - 0xa6c]
push edx
mov byte [ebp - 4], 7
call fcn.00401890
push 0x5142d0
push eax
lea eax, [ebp - 0xa50]
push eax
mov byte [ebp - 4], 8
call fcn.00401890
add esp, 0x18
push eax
lea ecx, [ebp - 0xa7c]
mov byte [ebp - 4], 9
call fcn.004061f0
cmp dword [ebp - 0xa3c], esi
jb 0x422a08
mov ecx, dword [ebp - 0xa50]
push ecx
call fcn.004b9d66
add esp, 4
xor edx, edx
mov dword [ebp - 0xa3c], edi
mov dword [ebp - 0xa40], ebx
mov word [ebp - 0xa50], dx
cmp dword [ebp - 0xa58], esi
jb 0x422a34
mov eax, dword [ebp - 0xa6c]
push eax
call fcn.004b9d66
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa58], edi
mov dword [ebp - 0xa5c], ebx
mov word [ebp - 0xa6c], cx
mov byte [ebp - 4], bl
cmp dword [ebp - 0xa20], esi
jb 0x422a63
mov edx, dword [ebp - 0xa34]
push edx
call fcn.004b9d66
add esp, 4
mov esi, dword [ebp - 0xa84]
lea eax, [ebp - 0xa7c]
push eax
push esi
call fcn.00417a30
mov eax, dword [ebp - 0xa7c]
add esp, 8
cmp eax, ebx
je 0x422aad
mov ecx, dword [ebp - 0xa84]
push ecx
mov ecx, dword [ebp - 0xa78]
lea edx, [ebp - 0xa70]
push edx
push ecx
push eax
call fcn.00402e20
mov edx, dword [ebp - 0xa7c]
push edx
call fcn.004b9d66
add esp, 0x14
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.004ba901
mov esp, ebp
pop ebp
ret