Function at 0x4697e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499840
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4cc99c]
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 ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x469c27
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov eax, dword [0x4cc964]
mov edx, dword [eax + 0xc]
mov ecx, 0x4cc964
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
test esi, esi
je 0x4698fd
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x100
cmp byte [ebp + 0xc], 0
je 0x469885
or eax, ecx
jge 0x469878
push 0x100
lea ecx, [ebp - 0x24]
call fcn.00402640
mov edi, dword [ebp - 0x24]
push 0x100
push edi
push 0x150a
jmp 0x4698a4
or eax, ecx
jge 0x469899
push 0x100
lea ecx, [ebp - 0x24]
call fcn.00402640
mov edi, dword [ebp - 0x24]
push 0x100
push edi
push 0x150b
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [edi - 8]
push eax
push edi
call dword [sym.imp.MSVCR100.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x4698f3
cmp eax, dword [edi - 8]
jg 0x4698f3
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [edi - 0xc], ecx
jne 0x4698fd
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x469c1b
push 0x80070057
call fcn.00401050
lea ecx, [ebp - 0x20]
push ecx
push str.Shell.Application
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x38]
push edx
push 0x4ab16c
push 1
push 0
push 0x4ab17c
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x48]
call fcn.004022c0
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004022c0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0045d740
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
push eax
call fcn.00415250
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x50], edi
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00414ac0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov ebx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
lea eax, [ebp - 0x3c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ebp - 0x64]
mov dword [eax + 4], ebx
mov ebx, dword [ebp - 0x60]
mov dword [eax + 8], ebx
mov ebx, dword [ebp - 0x5c]
push ecx
mov ecx, dword [edx + 0x24]
mov byte [ebp - 4], 6
mov dword [eax + 0xc], ebx
call ecx
mov eax, dword [ebp - 0x48]
cmp eax, esi
jne 0x469abe
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
lea ecx, [ebp - 0x30]
push ecx
push ebx
push eax
mov byte [ebp - 4], 8
call edx
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x58]
mov byte [ebp - 4], 9
call eax
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x44]
mov dword [ebp - 0x44], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp dword [ebp - 0x44], 0
jle 0x469b3e
xor ecx, ecx
cmp dword [ebp - 0x24], ecx
setne cl
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x28], 0
mov edx, 3
mov ecx, esi
mov word [ebp - 0x78], dx
mov dword [ebp - 0x70], ecx
mov ebx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x2c]
mov edi, dword [edx]
lea eax, [ebp - 0x28]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ebp - 0x74]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x6c]
push edx
mov edx, dword [edi + 0x28]
mov byte [ebp - 4], 0xb
mov dword [eax + 0xc], ecx
call edx
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x78]
push eax
call edi
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push edx
push eax
mov eax, dword [ecx + 0x24]
mov byte [ebp - 4], 0xc
call eax
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x54]
call fcn.004022c0
cmp dword [ebp - 0x58], 0
mov byte [ebp - 4], 0xd
je 0x469c45
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x469adc
test dx, dx
je 0x469aba
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x469adc
add eax, 4
add ecx, 4
test dx, dx
jne 0x469a98
xor eax, eax
jmp 0x469ae1
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
mov dword [ebp - 0x4c], ebx
cmp ebx, esi
jne 0x4699be
push 0x8007000e
call fcn.00401050
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x54]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x469b09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x469c4f
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 9
test eax, eax
je 0x469b2e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
inc esi
cmp esi, dword [ebp - 0x44]
jl 0x469a12
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 8
test eax, eax
je 0x469b51
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 7
test eax, eax
je 0x469b64
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 5
test eax, eax
je 0x469b7e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469ba8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469bcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469bee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0
test eax, eax
je 0x469c01
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469c27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
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.00497792
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401050
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push eax
call edx
mov eax, dword [ebp - 0x40]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 9
test eax, eax
je 0x469c79
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 8
test eax, eax
je 0x469c8c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 7
test eax, eax
je 0x469c9f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x4c]
push eax
call esi
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 5
test eax, eax
je 0x469cb8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x68]
push eax
call edi
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469ce1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469d04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469d27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0
test eax, eax
je 0x469d3a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469d60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x469c29