Function at 0x421913
Capabilities:
Check if file exists

Disassembly:
push 0xa8
mov eax, 0x5b4831
call fcn.00580b7e
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xb4]
push eax
call fcn.0044e552
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xb4]
push eax
push 0x681dac
call fcn.004215e6
pop ecx
pop ecx
mov byte [ebp - 0x21], al
cmp al, bl
je 0x421d4a
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 0x421d4a
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.004138a1
mov esi, dword [eax]
push 0x681dc8
lea edi, [ebp - 0x50]
call fcn.0041b829
mov byte [ebp - 4], 6
or dword [ebp - 0x1c], 1
cmp dword [eax], ebx
je 0x4219d5
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x4219d7
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 0x4219f9
cmp word [ebp - 0x7c], 8
jne 0x4219f9
cmp dword [ebp - 0x74], ebx
mov byte [ebp - 0x15], 1
jne 0x4219fc
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], 5
test byte [ebp - 0x1c], 1
je 0x421a15
and dword [ebp - 0x1c], 0xfffffffe
lea edi, [ebp - 0x50]
call fcn.0041b889
cmp byte [ebp - 0x15], bl
je 0x421cfd
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0xb4]
call fcn.004138a1
mov esi, dword [eax]
push str.CommandLine
lea edi, [ebp - 0x58]
call fcn.0041b829
mov byte [ebp - 4], 7
or dword [ebp - 0x1c], 2
cmp dword [eax], ebx
je 0x421a4d
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x421a4f
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 0x421a7a
cmp word [ebp - 0x9c], 8
jne 0x421a7a
cmp dword [ebp - 0x94], ebx
mov byte [ebp - 0x15], 1
jne 0x421a7d
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], 5
test byte [ebp - 0x1c], 2
je 0x421a96
and dword [ebp - 0x1c], 0xfffffffd
lea edi, [ebp - 0x58]
call fcn.0041b889
cmp byte [ebp - 0x15], bl
je 0x421cfd
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0xb4]
call fcn.004138a1
mov esi, dword [eax]
push 0x681dec
lea edi, [ebp - 0x54]
call fcn.0041b829
mov byte [ebp - 4], 8
or dword [ebp - 0x1c], 4
cmp dword [eax], ebx
je 0x421ace
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x421ad0
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 0x421af2
cmp word [ebp - 0x6c], 8
jne 0x421af2
cmp dword [ebp - 0x64], ebx
mov byte [ebp - 0x15], 1
jne 0x421af5
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], 5
test byte [ebp - 0x1c], 4
je 0x421b0e
and dword [ebp - 0x1c], 0xfffffffb
lea edi, [ebp - 0x54]
call fcn.0041b889
cmp byte [ebp - 0x15], bl
je 0x421cfd
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0xb4]
call fcn.004138a1
mov esi, dword [eax]
push 0x681e0c
lea edi, [ebp - 0x5c]
call fcn.0041b829
mov byte [ebp - 4], 9
cmp dword [eax], ebx
je 0x421b42
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x421b44
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.0041b889
cmp byte [ebp - 0x15], bl
je 0x421cfd
lea eax, [ebp - 0x3c]
push eax
call fcn.00421d63
mov byte [ebp - 4], 0xa
push dword [ebp - 0x74]
lea eax, [ebp - 0x38]
push eax
call fcn.004085d2
cmp word [ebp - 0x8c], 0x13
movzx eax, word [ebp - 0x84]
je 0x421ba0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x64]
lea eax, [ebp - 0x2c]
push eax
call fcn.004085d2
push dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
push eax
call fcn.00422188
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
lea edi, [ebp - 0x30]
call fcn.00408591
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.0040856e
push dword [ebp - 0x94]
lea eax, [ebp - 0x20]
push eax
call fcn.0040852d
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x20]
call fcn.0040877f
lea eax, [ebp - 0x44]
push eax
call fcn.004084d7
mov byte [ebp - 4], 0xd
push str..exe_
xor ecx, ecx
lea esi, [ebp - 0x20]
call fcn.00426092
or ebx, 0xffffffff
cmp eax, ebx
jne 0x421c23
push 0x681e30
xor ecx, ecx
call fcn.00426092
cmp eax, ebx
je 0x421c9c
push 0x681e3c
mov ecx, eax
lea esi, [ebp - 0x20]
call fcn.00426092
mov edi, eax
cmp edi, ebx
je 0x421c9c
push 0x681e40
mov ecx, edi
call fcn.00426092
lea ecx, [edi - 1]
mov edx, esi
cmp eax, ebx
jne 0x421c77
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.004261f4
mov byte [ebp - 4], 0xe
lea edi, [ebp - 0x34]
call fcn.00408591
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x48]
jmp 0x421c97
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004261f4
mov byte [ebp - 4], 0xf
lea edi, [ebp - 0x34]
call fcn.00408591
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4c]
call fcn.0040856e
push 0x681e44
lea ebx, [ebp - 0x34]
call fcn.004136ac
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
je 0x421cca
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421cca
push 0x681e50
mov eax, ebx
push eax
call fcn.004085d2
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
call fcn.004269e8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x44]
call fcn.0040856e
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x20]
call fcn.0040856e
mov byte [ebp - 4], 5
lea eax, [ebp - 0x3c]
push eax
call fcn.00421db0
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 0x421d42
inc dword [ebp - 0x28]
jmp 0x421957
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb4]
push eax
call fcn.00426b7e
mov al, byte [ebp - 0x21]
call fcn.00580c23
ret