Function at 0x485040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x224], 0
cmp dword [ebp + 8], 0
je 0x4852bc
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0063a460
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x68d9b0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4850e8
xor edx, edx
mov byte [ebp - 0x211], dl
lea ecx, [ebp - 0x211]
call fcn.00488620
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48511a
xor edx, edx
mov byte [ebp - 0x212], dl
lea ecx, [ebp - 0x212]
call fcn.00488a90
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48514c
xor edx, edx
mov byte [ebp - 0x213], dl
lea ecx, [ebp - 0x213]
call fcn.004884f0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x210]
call fcn.004131e0
lea ecx, [ebp - 0x210]
call fcn.0040dcd0
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 1
jl 0x48519c
push 0
lea ecx, [ebp - 0x210]
call fcn.0045d050
movzx edx, ax
cmp edx, 0x22
jne 0x48519c
push 1
push 0
lea ecx, [ebp - 0x210]
call fcn.004836f0
lea ecx, [ebp - 0x210]
call fcn.0040dcd0
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 1
jl 0x4851ea
mov eax, dword [ebp - 0x21c]
sub eax, 1
push eax
lea ecx, [ebp - 0x210]
call fcn.0045d050
movzx ecx, ax
cmp ecx, 0x22
jne 0x4851ea
push 1
mov edx, dword [ebp - 0x21c]
sub edx, 1
push edx
lea ecx, [ebp - 0x210]
call fcn.004836f0
lea ecx, [ebp - 0x238]
call fcn.00488140
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040d360
push str._autorun___fromtask
lea ecx, [ebp - 0x230]
call fcn.00413a70
xor ecx, ecx
mov byte [ebp - 0x214], cl
lea ecx, [ebp - 0x214]
call fcn.00488d30
push eax
lea ecx, [ebp - 0x22c]
call fcn.00413a70
mov dword [ebp - 0x228], 5
call fcn.004bcc60
test eax, eax
je 0x485275
xor edx, edx
mov byte [ebp - 0x215], dl
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x215]
call fcn.00488410
push eax
mov ecx, dword [ebp - 0x220]
call fcn.00485390
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x4852a4
xor ecx, ecx
mov byte [ebp - 0x216], cl
lea edx, [ebp - 0x238]
push edx
lea ecx, [ebp - 0x216]
call fcn.004889b0
push eax
mov ecx, dword [ebp - 0x220]
call fcn.00486b10
lea ecx, [ebp - 0x238]
call fcn.00488250
lea ecx, [ebp - 0x210]
call fcn.00413870
jmp 0x485306
xor eax, eax
mov byte [ebp - 0x217], al
lea ecx, [ebp - 0x217]
call fcn.00488960
push eax
mov ecx, dword [ebp - 0x220]
call fcn.00486500
mov dword [ebp - 0x224], eax
xor ecx, ecx
mov byte [ebp - 0x218], cl
lea ecx, [ebp - 0x218]
call fcn.00488910
push eax
mov ecx, dword [ebp - 0x220]
call fcn.00486c60
mov dword [ebp - 0x224], eax
mov edx, dword [ebp + 8]
push edx
call fcn.004dfe30
mov ecx, eax
call fcn.004e02b0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret 8