Function at 0x48a5b1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a027a
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x4d2a20]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
call fcn.0048a4af
pop ecx
test eax, eax
je 0x48a5f6
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48a5fd
xor eax, eax
jmp 0x48aa98
mov dword [ebp - 0x68], 0x1c
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x64], eax
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x60], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x50], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x5c], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x58], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x68], 0x1c
cmp dword [ebp - 0x64], 0
je 0x48a64c
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x360], eax
jmp 0x48a657
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x5c], 0
je 0x48a671
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x364], eax
jmp 0x48a67c
mov eax, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x364], eax
mov eax, dword [ebp - 0x364]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x58], 0
je 0x48a696
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x368], eax
jmp 0x48a6a1
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x368], eax
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x54], 0
je 0x48a6be
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x36c], eax
jmp 0x48a6c9
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x36c], eax
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x50], 0
je 0x48a6e6
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x370], eax
jmp 0x48a6f1
mov eax, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x370], eax
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x60], 0
je 0x48a70b
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x374], eax
jmp 0x48a716
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x374], eax
mov eax, dword [ebp - 0x374]
mov dword [ebp - 0x74], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.00406f58
and dword [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.0042daae
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0042daae
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00428568
dec eax
push eax
lea ecx, [ebp - 0x44]
call fcn.0042da41
movzx eax, word [eax]
cmp eax, 0x5c
je 0x48a78a
lea ecx, [ebp - 0x44]
call fcn.00428568
dec eax
push eax
lea ecx, [ebp - 0x44]
call fcn.0042da41
movzx eax, word [eax]
cmp eax, 0x2f
je 0x48a78a
push 0x4b4cdc
lea ecx, [ebp - 0x44]
call fcn.004284bf
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x88]
call fcn.0042daf5
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
call fcn.0042daf5
lea ecx, [ebp - 0x88]
call fcn.0042dac2
movzx eax, al
test eax, eax
jne 0x48a9d4
lea ecx, [ebp - 0x318]
call fcn.00402f21
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.0042da7b
push eax
lea ecx, [ebp - 0x318]
call fcn.00428493
lea ecx, [ebp - 0x88]
call fcn.0042da8c
mov eax, dword [ebp + 0xc]
and eax, 1
jne 0x48a844
lea ecx, [ebp - 0x318]
call fcn.0042da6a
push eax
call dword [ebp - 0x4c]
mov dword [ebp - 0x320], eax
mov eax, dword [ebp - 0x320]
and eax, 0x10
je 0x48a844
mov eax, dword [ebp - 0x320]
and eax, 0x400
je 0x48a844
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x24]
call fcn.0042daf5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x318]
call fcn.00402f4a
jmp 0x48a7a5
lea ecx, [ebp - 0xac]
call fcn.00402f21
mov byte [ebp - 4], 4
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0xac]
call fcn.00428493
push 0x4b4ce0
lea ecx, [ebp - 0xac]
call fcn.004284bf
or dword [ebp - 0x31c], 0xffffffff
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0xac]
call fcn.0041478d
push eax
call dword [ebp - 0x6c]
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0xffffffff
jne 0x48a8ab
jmp 0x48a995
lea ecx, [ebp - 0x33c]
call fcn.00402f21
mov byte [ebp - 4], 5
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x33c]
call fcn.00428493
lea eax, [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x33c]
call fcn.004284bf
mov eax, dword [ebp - 0x2fc]
and eax, 0x10
je 0x48a94a
push 0x4b4ce4
lea eax, [ebp - 0x2d0]
push eax
call sub.MSVCR80.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x48a948
push 0x4b4ce8
lea eax, [ebp - 0x2d0]
push eax
call sub.MSVCR80.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x48a948
push 0x4b4cf0
lea ecx, [ebp - 0x33c]
call fcn.004284bf
lea eax, [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x88]
call fcn.0042daf5
lea eax, [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0042daf5
jmp 0x48a96b
lea ecx, [ebp - 0x33c]
call fcn.0041478d
push eax
call fcn.0048a47a
pop ecx
lea ecx, [ebp - 0x33c]
call fcn.0041478d
push eax
call dword [ebp - 0x70]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x33c]
call fcn.00402f4a
lea eax, [ebp - 0x2fc]
push eax
push dword [ebp - 0x31c]
call dword [ebp - 0x8c]
test eax, eax
jne 0x48a898
cmp dword [ebp - 0x31c], 0xffffffff
je 0x48a9b1
push dword [ebp - 0x31c]
call dword [ebp - 0x90]
or dword [ebp - 0x31c], 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
call fcn.00402f4a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x318]
call fcn.00402f4a
jmp 0x48a7a5
lea ecx, [ebp - 0x24]
call fcn.0042dad3
mov dword [ebp - 0x10], eax
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x24]
call fcn.0042dac2
movzx eax, al
test eax, eax
jne 0x48aa5a
lea ecx, [ebp - 0x358]
call fcn.00402f21
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x24]
call fcn.0042dae4
push eax
lea ecx, [ebp - 0x358]
call fcn.00428493
lea ecx, [ebp - 0x24]
call fcn.0042db0b
lea ecx, [ebp - 0x358]
call fcn.0041478d
push eax
call fcn.0048a47a
pop ecx
lea ecx, [ebp - 0x358]
call fcn.0041478d
push eax
call dword [ebp - 0x74]
test eax, eax
je 0x48aa49
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x358]
call fcn.00402f4a
jmp 0x48a9e3
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x48]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x35c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0042da30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.0042da30
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402f4a
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0047676d
leave
ret