Function at 0x52ec67
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x52ec9a
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056f17c
leave
ret
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x5e7310
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00401c3d
mov eax, 0x100
push eax
push eax
lea ecx, [ebp - 0x24]
call fcn.00401e99
push eax
push 0x150a
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.00403287
mov eax, dword [ebp - 0x24]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x52ecff
mov esi, 0x800401fa
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401405
mov eax, esi
jmp 0x52ec8b
lea eax, [ebp - 0x14]
push eax
push str.Shell.Application
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
lea eax, [ebp - 0x18]
push eax
push 0x5be4dc
push 1
push ebx
push 0x5be49c
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jge 0x52ed3d
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x52ecf0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x52ecf0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040460b
push edi
lea ecx, [ebp - 0x20]
call fcn.0040460b
lea ecx, [ebp - 0x20]
call fcn.0052e1f3
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401e7b
push dword [ebp - 0x28]
lea ecx, [ebp - 0x5c]
mov word [ebp - 0x5c], bx
call fcn.004ac6e1
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1c], ebx
mov ecx, dword [eax]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x24]
cmp dword [ebp - 0x1c], ebx
jne 0x52eddc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.00401405
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x52edd2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x80004002
jmp 0x52ecf0
mov esi, dword [ebp - 0x44]
push esi
lea ecx, [ebp - 0x3c]
call fcn.004a9763
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x38]
push edx
push dword [ebp - 0x3c]
mov dword [ebp - 0x38], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x52ee3d
push dword [ebp - 0x3c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x52ee18
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401405
lea ecx, [esi - 0x10]
jmp 0x52edc0
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x58]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
jle 0x52ef04
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x2c]
mov word [ebp - 0x6c], 3
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x30], ebx
mov ecx, dword [eax]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x28]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x6c]
push eax
call edi
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
push dword [ebp - 0x24]
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x34]
call fcn.0040460b
mov ecx, eax
call fcn.00405a19
mov ecx, dword [ebp - 0x4c]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00401405
test bl, bl
jne 0x52ef73
push dword [ebp - 0x34]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x52eef0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
xor ebx, ebx
cmp eax, dword [ebp - 0x48]
jl 0x52ee66
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x52ef11
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x52ef1e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x3c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x52ef34
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401405
lea ecx, [esi - 0x10]
call fcn.00401405
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x52ef69
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x80004005
jmp 0x52ecf0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
push dword [ebp - 0x34]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x52ef94
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x52efa1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x52efae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x3c]
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x52efc0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x5c]
push eax
call edi
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.00401405
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x52eff4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
jmp 0x52ecf0