Function at 0x4270de
Capabilities:
Check if file exists

Disassembly:
push 0xa8
mov eax, 0x5c0d1b
call fcn.0058ec5e
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xb4]
push eax
call fcn.0042c700
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xb4]
push eax
push str.Win32_Process
call fcn.00426d86
pop ecx
pop ecx
mov byte [ebp - 0x21], al
cmp al, bl
je 0x427515
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0xa8]
sar eax, 2
mov edi, dword [ebp - 0x28]
cmp edi, eax
jae 0x427515
mov byte [ebp - 4], 1
lea eax, [ebp - 0x7c]
push eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
call esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x9c]
push eax
call esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x8c]
push eax
call esi
mov byte [ebp - 4], 4
lea eax, [ebp - 0x6c]
push eax
call esi
mov byte [ebp - 4], 5
lea esi, [ebp - 0xb4]
call fcn.0041e10a
mov esi, dword [eax]
push 0x6882a0
lea edi, [ebp - 0x50]
call fcn.00420108
mov byte [ebp - 4], 6
or dword [ebp - 0x1c], 1
cmp dword [eax], ebx
je 0x4271a0
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x4271a2
xor eax, eax
mov ecx, dword [esi]
push ebx
push ebx
lea edx, [ebp - 0x7c]
push edx
push ebx
push eax
push esi
call dword [ecx + 0x10]
test eax, eax
jl 0x4271c4
cmp word [ebp - 0x7c], 8
jne 0x4271c4
cmp dword [ebp - 0x74], ebx
mov byte [ebp - 0x15], 1
jne 0x4271c7
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], 5
test byte [ebp - 0x1c], 1
je 0x4271e0
and dword [ebp - 0x1c], 0xfffffffe
lea edi, [ebp - 0x50]
call fcn.00420168
cmp byte [ebp - 0x15], bl
je 0x4274c8
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0xb4]
call fcn.0041e10a
mov esi, dword [eax]
push str.CommandLine
lea edi, [ebp - 0x58]
call fcn.00420108
mov byte [ebp - 4], 7
or dword [ebp - 0x1c], 2
cmp dword [eax], ebx
je 0x427218
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x42721a
xor eax, eax
mov ecx, dword [esi]
push ebx
push ebx
lea edx, [ebp - 0x9c]
push edx
push ebx
push eax
push esi
call dword [ecx + 0x10]
test eax, eax
jl 0x427245
cmp word [ebp - 0x9c], 8
jne 0x427245
cmp dword [ebp - 0x94], ebx
mov byte [ebp - 0x15], 1
jne 0x427248
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], 5
test byte [ebp - 0x1c], 2
je 0x427261
and dword [ebp - 0x1c], 0xfffffffd
lea edi, [ebp - 0x58]
call fcn.00420168
cmp byte [ebp - 0x15], bl
je 0x4274c8
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0xb4]
call fcn.0041e10a
mov esi, dword [eax]
push str.ExecutablePath
lea edi, [ebp - 0x54]
call fcn.00420108
mov byte [ebp - 4], 8
or dword [ebp - 0x1c], 4
cmp dword [eax], ebx
je 0x427299
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x42729b
xor eax, eax
mov ecx, dword [esi]
push ebx
push ebx
lea edx, [ebp - 0x6c]
push edx
push ebx
push eax
push esi
call dword [ecx + 0x10]
test eax, eax
jl 0x4272bd
cmp word [ebp - 0x6c], 8
jne 0x4272bd
cmp dword [ebp - 0x64], ebx
mov byte [ebp - 0x15], 1
jne 0x4272c0
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], 5
test byte [ebp - 0x1c], 4
je 0x4272d9
and dword [ebp - 0x1c], 0xfffffffb
lea edi, [ebp - 0x54]
call fcn.00420168
cmp byte [ebp - 0x15], bl
je 0x4274c8
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0xb4]
call fcn.0041e10a
mov esi, dword [eax]
push str.ProcessId
lea edi, [ebp - 0x5c]
call fcn.00420108
mov byte [ebp - 4], 9
cmp dword [eax], ebx
je 0x42730d
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x42730f
xor eax, eax
mov ecx, dword [esi]
push ebx
push ebx
lea edx, [ebp - 0x8c]
push edx
push ebx
push eax
push esi
call dword [ecx + 0x10]
test eax, eax
setge byte [ebp - 0x15]
mov byte [ebp - 4], 5
lea edi, [ebp - 0x5c]
call fcn.00420168
cmp byte [ebp - 0x15], bl
je 0x4274c8
lea eax, [ebp - 0x3c]
push eax
call fcn.0042752e
mov byte [ebp - 4], 0xa
push dword [ebp - 0x74]
lea eax, [ebp - 0x38]
push eax
call fcn.0040865a
cmp word [ebp - 0x8c], 0x13
movzx eax, word [ebp - 0x84]
je 0x42736b
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x64]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040865a
push dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
push eax
call fcn.00427953
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
lea edi, [ebp - 0x30]
call fcn.00408619
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.004085f6
push dword [ebp - 0x94]
lea eax, [ebp - 0x20]
push eax
call fcn.004085b5
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x20]
call fcn.00408807
lea eax, [ebp - 0x44]
push eax
call fcn.0040855f
mov byte [ebp - 4], 0xd
push str..exe_
xor ecx, ecx
lea esi, [ebp - 0x20]
call fcn.0042b6cc
or ebx, 0xffffffff
cmp eax, ebx
jne 0x4273ee
push str..exe
xor ecx, ecx
call fcn.0042b6cc
cmp eax, ebx
je 0x427467
push 0x6880b0
mov ecx, eax
lea esi, [ebp - 0x20]
call fcn.0042b6cc
mov edi, eax
cmp edi, ebx
je 0x427467
push 0x682320
mov ecx, edi
call fcn.0042b6cc
lea ecx, [edi - 1]
mov edx, esi
cmp eax, ebx
jne 0x427442
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 0xc]
dec eax
sub eax, edi
inc eax
inc eax
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0042b830
mov byte [ebp - 4], 0xe
lea edi, [ebp - 0x34]
call fcn.00408619
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x48]
jmp 0x427462
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0042b830
mov byte [ebp - 4], 0xf
lea edi, [ebp - 0x34]
call fcn.00408619
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4c]
call fcn.004085f6
push 0x68890c
lea ebx, [ebp - 0x34]
call fcn.00416903
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
je 0x427495
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x427495
push 0x6810b8
mov eax, ebx
push eax
call fcn.0040865a
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
call fcn.0042c40e
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x44]
call fcn.004085f6
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x20]
call fcn.004085f6
mov byte [ebp - 4], 5
lea eax, [ebp - 0x3c]
push eax
call fcn.0042757b
xor ebx, ebx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x6c]
push eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
call esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x8c]
push eax
call esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x9c]
push eax
call esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x7c]
push eax
call esi
mov dword [ebp - 4], ebx
jmp 0x42750d
inc dword [ebp - 0x28]
jmp 0x427122
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb4]
push eax
call fcn.0042c752
mov al, byte [ebp - 0x21]
call fcn.0058ed03
ret