Function at 0x421c13
Capabilities:
Check if file exists

Disassembly:
push 0xa8
mov eax, 0x5b4acc
call fcn.00580e9e
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xb4]
push eax
call fcn.0044884e
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xb4]
push eax
push str.Win32_Process
call fcn.004218e6
pop ecx
pop ecx
mov byte [ebp - 0x21], al
cmp al, bl
je 0x42204a
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 0x42204a
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.00413946
mov esi, dword [eax]
push 0x6778c4
lea edi, [ebp - 0x50]
call fcn.0041bbb1
mov byte [ebp - 4], 6
or dword [ebp - 0x1c], 1
cmp dword [eax], ebx
je 0x421cd5
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x421cd7
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 0x421cf9
cmp word [ebp - 0x7c], 8
jne 0x421cf9
cmp dword [ebp - 0x74], ebx
mov byte [ebp - 0x15], 1
jne 0x421cfc
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], 5
test byte [ebp - 0x1c], 1
je 0x421d15
and dword [ebp - 0x1c], 0xfffffffe
lea edi, [ebp - 0x50]
call fcn.0041bc11
cmp byte [ebp - 0x15], bl
je 0x421ffd
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0xb4]
call fcn.00413946
mov esi, dword [eax]
push str.CommandLine
lea edi, [ebp - 0x58]
call fcn.0041bbb1
mov byte [ebp - 4], 7
or dword [ebp - 0x1c], 2
cmp dword [eax], ebx
je 0x421d4d
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x421d4f
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 0x421d7a
cmp word [ebp - 0x9c], 8
jne 0x421d7a
cmp dword [ebp - 0x94], ebx
mov byte [ebp - 0x15], 1
jne 0x421d7d
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], 5
test byte [ebp - 0x1c], 2
je 0x421d96
and dword [ebp - 0x1c], 0xfffffffd
lea edi, [ebp - 0x58]
call fcn.0041bc11
cmp byte [ebp - 0x15], bl
je 0x421ffd
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0xb4]
call fcn.00413946
mov esi, dword [eax]
push str.ExecutablePath
lea edi, [ebp - 0x54]
call fcn.0041bbb1
mov byte [ebp - 4], 8
or dword [ebp - 0x1c], 4
cmp dword [eax], ebx
je 0x421dce
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x421dd0
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 0x421df2
cmp word [ebp - 0x6c], 8
jne 0x421df2
cmp dword [ebp - 0x64], ebx
mov byte [ebp - 0x15], 1
jne 0x421df5
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], 5
test byte [ebp - 0x1c], 4
je 0x421e0e
and dword [ebp - 0x1c], 0xfffffffb
lea edi, [ebp - 0x54]
call fcn.0041bc11
cmp byte [ebp - 0x15], bl
je 0x421ffd
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0xb4]
call fcn.00413946
mov esi, dword [eax]
push str.ProcessId
lea edi, [ebp - 0x5c]
call fcn.0041bbb1
mov byte [ebp - 4], 9
cmp dword [eax], ebx
je 0x421e42
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x421e44
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.0041bc11
cmp byte [ebp - 0x15], bl
je 0x421ffd
lea eax, [ebp - 0x3c]
push eax
call fcn.00422063
mov byte [ebp - 4], 0xa
push dword [ebp - 0x74]
lea eax, [ebp - 0x38]
push eax
call fcn.00408606
cmp word [ebp - 0x8c], 0x13
movzx eax, word [ebp - 0x84]
je 0x421ea0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x64]
lea eax, [ebp - 0x2c]
push eax
call fcn.00408606
push dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
push eax
call fcn.00422488
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
lea edi, [ebp - 0x30]
call fcn.004085c5
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.004085a2
push dword [ebp - 0x94]
lea eax, [ebp - 0x20]
push eax
call fcn.00408561
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x20]
call fcn.004087b3
lea eax, [ebp - 0x44]
push eax
call fcn.0040850b
mov byte [ebp - 4], 0xd
push str..exe_
xor ecx, ecx
lea esi, [ebp - 0x20]
call fcn.00426385
or ebx, 0xffffffff
cmp eax, ebx
jne 0x421f23
push str..exe
xor ecx, ecx
call fcn.00426385
cmp eax, ebx
je 0x421f9c
push 0x677680
mov ecx, eax
lea esi, [ebp - 0x20]
call fcn.00426385
mov edi, eax
cmp edi, ebx
je 0x421f9c
push 0x672260
mov ecx, edi
call fcn.00426385
lea ecx, [edi - 1]
mov edx, esi
cmp eax, ebx
jne 0x421f77
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.004264e7
mov byte [ebp - 4], 0xe
lea edi, [ebp - 0x34]
call fcn.004085c5
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x48]
jmp 0x421f97
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004264e7
mov byte [ebp - 4], 0xf
lea edi, [ebp - 0x34]
call fcn.004085c5
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4c]
call fcn.004085a2
push 0x677f20
lea ebx, [ebp - 0x34]
call fcn.004136bb
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
je 0x421fca
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421fca
push 0x670fd0
mov eax, ebx
push eax
call fcn.00408606
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
call fcn.00426cb8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x44]
call fcn.004085a2
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x20]
call fcn.004085a2
mov byte [ebp - 4], 5
lea eax, [ebp - 0x3c]
push eax
call fcn.004220b0
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 0x422042
inc dword [ebp - 0x28]
jmp 0x421c57
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb4]
push eax
call fcn.00426e16
mov al, byte [ebp - 0x21]
call fcn.00580f43
ret