Function at 0x4218d1
Capabilities:
Check if file exists

Disassembly:
push 0xb0
mov eax, 0x5bb667
call fcn.0058708e
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x9c]
push eax
call fcn.00448527
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x9c]
push eax
push 0x6896e4
call fcn.004215a4
pop ecx
pop ecx
mov byte [ebp - 0x21], al
cmp al, bl
je 0x421d20
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x90]
sar eax, 2
mov edi, dword [ebp - 0x28]
cmp edi, eax
jae 0x421d20
mov byte [ebp - 4], 1
lea eax, [ebp - 0x84]
push eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
call esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x74]
push eax
call esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0xac]
push eax
call esi
mov byte [ebp - 4], 4
lea eax, [ebp - 0xbc]
push eax
call esi
mov byte [ebp - 4], 5
lea esi, [ebp - 0x9c]
call fcn.00413f62
mov esi, dword [eax]
push 0x689700
lea edi, [ebp - 0x58]
call fcn.0041b722
mov byte [ebp - 4], 6
or dword [ebp - 0x1c], 1
cmp dword [eax], ebx
je 0x421996
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x421998
xor eax, eax
mov ecx, dword [esi]
push ebx
push ebx
lea edx, [ebp - 0x84]
push edx
push ebx
push eax
push esi
call dword [ecx + 0x10]
test eax, eax
jl 0x4219c0
cmp word [ebp - 0x84], 8
jne 0x4219c0
cmp dword [ebp - 0x7c], ebx
mov byte [ebp - 0x15], 1
jne 0x4219c3
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], 5
test byte [ebp - 0x1c], 1
je 0x4219dc
and dword [ebp - 0x1c], 0xfffffffe
lea edi, [ebp - 0x58]
call fcn.0041b782
cmp byte [ebp - 0x15], bl
je 0x421cd0
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0x9c]
call fcn.00413f62
mov esi, dword [eax]
push 0x68970c
lea edi, [ebp - 0x60]
call fcn.0041b722
mov byte [ebp - 4], 7
or dword [ebp - 0x1c], 2
cmp dword [eax], ebx
je 0x421a14
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x421a16
xor eax, eax
mov ecx, dword [esi]
push ebx
push ebx
lea edx, [ebp - 0x74]
push edx
push ebx
push eax
push esi
call dword [ecx + 0x10]
test eax, eax
jl 0x421a38
cmp word [ebp - 0x74], 8
jne 0x421a38
cmp dword [ebp - 0x6c], ebx
mov byte [ebp - 0x15], 1
jne 0x421a3b
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], 5
test byte [ebp - 0x1c], 2
je 0x421a54
and dword [ebp - 0x1c], 0xfffffffd
lea edi, [ebp - 0x60]
call fcn.0041b782
cmp byte [ebp - 0x15], bl
je 0x421cd0
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0x9c]
call fcn.00413f62
mov esi, dword [eax]
push 0x689724
lea edi, [ebp - 0x5c]
call fcn.0041b722
mov byte [ebp - 4], 8
or dword [ebp - 0x1c], 4
cmp dword [eax], ebx
je 0x421a8c
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x421a8e
xor eax, eax
mov ecx, dword [esi]
push ebx
push ebx
lea edx, [ebp - 0xbc]
push edx
push ebx
push eax
push esi
call dword [ecx + 0x10]
test eax, eax
jl 0x421ab9
cmp word [ebp - 0xbc], 8
jne 0x421ab9
cmp dword [ebp - 0xb4], ebx
mov byte [ebp - 0x15], 1
jne 0x421abc
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], 5
test byte [ebp - 0x1c], 4
je 0x421ad5
and dword [ebp - 0x1c], 0xfffffffb
lea edi, [ebp - 0x5c]
call fcn.0041b782
cmp byte [ebp - 0x15], bl
je 0x421cd0
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0x9c]
call fcn.00413f62
mov esi, dword [eax]
push 0x689744
lea edi, [ebp - 0x64]
call fcn.0041b722
mov byte [ebp - 4], 9
cmp dword [eax], ebx
je 0x421b09
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x421b0b
xor eax, eax
mov ecx, dword [esi]
push ebx
push ebx
lea edx, [ebp - 0xac]
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 - 0x64]
call fcn.0041b782
cmp byte [ebp - 0x15], bl
je 0x421cd0
lea eax, [ebp - 0x44]
push eax
call fcn.0041b9dc
mov byte [ebp - 4], 0xa
push dword [ebp - 0x7c]
lea eax, [ebp - 0x3c]
push eax
call fcn.004085bd
cmp word [ebp - 0xac], 0x13
movzx eax, word [ebp - 0xa4]
je 0x421b67
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x44], eax
push dword [ebp - 0xb4]
lea eax, [ebp - 0x2c]
push eax
call fcn.004085bd
push dword [ebp - 0x6c]
lea eax, [ebp - 0x30]
push eax
call fcn.004085bd
push dword [ebp - 0x2c]
lea eax, [ebp - 0x48]
push eax
call fcn.0042211d
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
lea edi, [ebp - 0x34]
call fcn.0040857c
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x48]
call fcn.00408559
push dword [ebp - 0x6c]
lea eax, [ebp - 0x20]
push eax
call fcn.00408518
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x20]
call fcn.0040876a
lea eax, [ebp - 0x4c]
push eax
call fcn.004084c2
mov byte [ebp - 4], 0xd
push str..exe_
xor ecx, ecx
lea esi, [ebp - 0x20]
call fcn.004260a9
or ebx, 0xffffffff
cmp eax, ebx
jne 0x421bf6
push 0x689768
xor ecx, ecx
call fcn.004260a9
cmp eax, ebx
je 0x421c6f
push 0x689774
mov ecx, eax
lea esi, [ebp - 0x20]
call fcn.004260a9
mov edi, eax
cmp edi, ebx
je 0x421c6f
push 0x689778
mov ecx, edi
call fcn.004260a9
lea ecx, [edi - 1]
mov edx, esi
cmp eax, ebx
jne 0x421c4a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 0xc]
dec eax
sub eax, edi
inc eax
inc eax
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0042620b
mov byte [ebp - 4], 0xe
lea edi, [ebp - 0x38]
call fcn.0040857c
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x50]
jmp 0x421c6a
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0042620b
mov byte [ebp - 4], 0xf
lea edi, [ebp - 0x38]
call fcn.0040857c
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x54]
call fcn.00408559
push 0x68977c
lea ebx, [ebp - 0x38]
call fcn.0041384e
mov eax, dword [ebp - 0x38]
cmp dword [eax - 0xc], 0
je 0x421c9d
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421c9d
push 0x689788
mov eax, ebx
push eax
call fcn.004085bd
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
call fcn.00426af6
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x4c]
call fcn.00408559
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x20]
call fcn.00408559
mov byte [ebp - 4], 5
lea eax, [ebp - 0x44]
push eax
call fcn.00421d39
xor ebx, ebx
mov byte [ebp - 4], 4
lea eax, [ebp - 0xbc]
push eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
call esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0xac]
push eax
call esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x74]
push eax
call esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x84]
push eax
call esi
mov dword [ebp - 4], ebx
jmp 0x421d18
inc dword [ebp - 0x28]
jmp 0x421915
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x9c]
push eax
call fcn.00426da0
mov al, byte [ebp - 0x21]
call fcn.00587133
ret