Function at 0x4f6ea0
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab1c5
mov eax, dword fs:[0]
push eax
mov eax, 0x1408
call fcn.0056e430
mov eax, dword [0x608554]
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 edi, ecx
push ecx
push str.CBaseInfoProperty::BackupPropertyData
lea ecx, [ebp - 0x1278]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4f6f2c
test byte [ecx + 0x1c], 1
je 0x4f6f2c
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5db7e4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1a
call fcn.00401840
add esp, 0xc
push 0x200
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0xa10]
push ebx
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x1210]
push ebx
push eax
call fcn.00571c00
xor eax, eax
mov dword [ebp - 0x1230], ebx
mov dword [ebp - 0x122c], 7
mov word [ebp - 0x1240], ax
mov dword [ebp - 0x1218], eax
mov dword [ebp - 0x1214], 7
mov word [ebp - 0x1228], ax
add esp, 0x20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x133c]
mov dword [ebp - 0x1280], eax
mov dword [ebp - 0x127c], eax
call fcn.004f3840
mov byte [ebp - 4], 3
mov eax, dword [0x6184f0]
mov eax, dword [eax + 8]
cmp dword [eax + 0x3a4], ebx
je 0x4f7774
mov ecx, edi
call fcn.004f8140
lea ebx, [edi + 0xc]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f6fef
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 8
lea ecx, [ebp - 0x133c]
push ebx
call fcn.004f37e0
cmp dword [ebp - 0x12ec], 0
jne 0x4f701b
mov ebx, 0x80010005
mov dword [0x6183ec], 5
jmp 0x4f7774
push 0
push 4
push 0x5c63d0
lea ecx, [ebp - 0x133c]
call fcn.004d5260
lea ecx, [ebp - 0x133c]
call fcn.0042b970
push 0
push 4
push 0x5c6430
lea ecx, [ebp - 0x133c]
call fcn.004d5260
lea ecx, [ebp - 0x133c]
call fcn.0042b970
lea ecx, [ebp - 0x1284]
call fcn.00475e00
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 4
push eax
push 0x100
lea ecx, [ebp - 0x1284]
call fcn.004775d0
push 0
push 0x200
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x133c]
call fcn.004d5260
lea ecx, [ebp - 0x133c]
call fcn.0042b970
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x133c]
push 0
mov dword [ebp - 0x1280], eax
lea eax, [ebp - 0x1280]
push 4
push eax
call fcn.004d5260
lea ecx, [ebp - 0x133c]
call fcn.0042b970
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x4f75f5
nop word [eax + eax]
push 0
push 4
push 0x5c6400
lea ecx, [ebp - 0x133c]
call fcn.004d5260
mov eax, dword [ebp - 0x133c]
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0x1304], 0
je 0x4f71e2
mov ecx, dword [ebp + ecx - 0x1304]
lea edx, [ebp - 0x133c]
mov dword [ebp - 0x128c], edx
test ecx, ecx
je 0x4f712d
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x133c]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0x1330], 0
jne 0x4f715e
mov ecx, dword [ebp + ecx - 0x1300]
test ecx, ecx
je 0x4f715e
lea edx, [ebp - 0x133c]
cmp ecx, edx
je 0x4f715e
call fcn.0042b970
mov eax, dword [ebp - 0x133c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x1330]
test eax, eax
sete byte [ebp - 0x1288]
mov byte [ebp - 4], 6
test eax, eax
jne 0x4f71a9
mov ecx, dword [ebp + ecx - 0x1304]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xffffffff
jne 0x4f71a9
mov eax, dword [ebp - 0x133c]
lea ecx, [ebp - 0x133c]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 4
push eax
call fcn.004133b0
mov byte [ebp - 4], 7
call fcn.0056f591
test al, al
jne 0x4f71c1
lea ecx, [ebp - 0x133c]
call fcn.0042bc40
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x133c]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x1304]
test ecx, ecx
je 0x4f71de
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 4
push 0x800
lea eax, [ebp - 0xa10]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x1210]
push 0
push eax
call fcn.00571c00
lea eax, [esi + 0x10]
add esp, 0x18
lea ecx, [ebp - 0x1240]
cmp ecx, eax
je 0x4f7231
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4f7222
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x1240]
call fcn.004035d0
lea eax, [esi + 0x28]
lea ecx, [ebp - 0x1228]
cmp ecx, eax
je 0x4f7257
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4f7248
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x1228]
call fcn.004035d0
cmp dword [ebp - 0x122c], 8
lea eax, [ebp - 0x1240]
cmovae eax, dword [ebp - 0x1240]
push eax
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x1214], 8
lea eax, [ebp - 0x1228]
cmovae eax, dword [ebp - 0x1228]
push eax
lea eax, [ebp - 0x1210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0x800
lea eax, [ebp - 0xa10]
push eax
lea ecx, [ebp - 0x133c]
call fcn.004d5260
mov eax, dword [ebp - 0x133c]
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0x1304], 0
je 0x4f73a2
mov ecx, dword [ebp + ecx - 0x1304]
lea edx, [ebp - 0x133c]
mov dword [ebp - 0x1344], edx
test ecx, ecx
je 0x4f72ed
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x133c]
mov byte [ebp - 4], 9
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0x1330], 0
jne 0x4f731e
mov ecx, dword [ebp + ecx - 0x1300]
test ecx, ecx
je 0x4f731e
lea edx, [ebp - 0x133c]
cmp ecx, edx
je 0x4f731e
call fcn.0042b970
mov eax, dword [ebp - 0x133c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x1330]
test eax, eax
sete byte [ebp - 0x1340]
mov byte [ebp - 4], 0xa
test eax, eax
jne 0x4f7369
mov ecx, dword [ebp + ecx - 0x1304]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xffffffff
jne 0x4f7369
mov eax, dword [ebp - 0x133c]
lea ecx, [ebp - 0x133c]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 4
push eax
call fcn.004133b0
mov byte [ebp - 4], 0xb
call fcn.0056f591
test al, al
jne 0x4f7381
lea ecx, [ebp - 0x133c]
call fcn.0042bc40
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x133c]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x1304]
test ecx, ecx
je 0x4f739e
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 4
push 0
push 0x800
lea eax, [ebp - 0x1210]
push eax
lea ecx, [ebp - 0x133c]
call fcn.004d5260
mov eax, dword [ebp - 0x133c]
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0x1304], 0
je 0x4f74a9
mov ecx, dword [ebp + ecx - 0x1304]
lea edx, [ebp - 0x133c]
mov dword [ebp - 0x134c], edx
test ecx, ecx
je 0x4f73f4
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x133c]
mov byte [ebp - 4], 0xd
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0x1330], 0
jne 0x4f7425
mov ecx, dword [ebp + ecx - 0x1300]
test ecx, ecx
je 0x4f7425
lea edx, [ebp - 0x133c]
cmp ecx, edx
je 0x4f7425
call fcn.0042b970
mov eax, dword [ebp - 0x133c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x1330]
test eax, eax
sete byte [ebp - 0x1348]
mov byte [ebp - 4], 0xe
test eax, eax
jne 0x4f7470
mov ecx, dword [ebp + ecx - 0x1304]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xffffffff
jne 0x4f7470
mov eax, dword [ebp - 0x133c]
lea ecx, [ebp - 0x133c]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 4
push eax
call fcn.004133b0
mov byte [ebp - 4], 0xf
call fcn.0056f591
test al, al
jne 0x4f7488
lea ecx, [ebp - 0x133c]
call fcn.0042bc40
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x133c]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x1304]
test ecx, ecx
je 0x4f74a5
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 4
push 0
push 4
push 0x5c6408
lea ecx, [ebp - 0x133c]
call fcn.004d5260
mov eax, dword [ebp - 0x133c]
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0x1304], 0
je 0x4f75ab
mov ecx, dword [ebp + ecx - 0x1304]
lea edx, [ebp - 0x133c]
mov dword [ebp - 0x1354], edx
test ecx, ecx
je 0x4f74f6
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x133c]
mov byte [ebp - 4], 0x11
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0x1330], 0
jne 0x4f7527
mov ecx, dword [ebp + ecx - 0x1300]
test ecx, ecx
je 0x4f7527
lea edx, [ebp - 0x133c]
cmp ecx, edx
je 0x4f7527
call fcn.0042b970
mov eax, dword [ebp - 0x133c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x1330]
test eax, eax
sete byte [ebp - 0x1350]
mov byte [ebp - 4], 0x12
test eax, eax
jne 0x4f7572
mov ecx, dword [ebp + ecx - 0x1304]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xffffffff
jne 0x4f7572
mov eax, dword [ebp - 0x133c]
lea ecx, [ebp - 0x133c]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 4
push eax
call fcn.004133b0
mov byte [ebp - 4], 0x13
call fcn.0056f591
test al, al
jne 0x4f758a
lea ecx, [ebp - 0x133c]
call fcn.0042bc40
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x133c]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x1304]
test ecx, ecx
je 0x4f75a7
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 4
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4f75d4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4f75d0
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x4f75d0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4f75c0
mov esi, eax
jmp 0x4f75ec
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4f75ec
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4f75e0
cmp esi, dword [edi + 4]
jne 0x4f70e0
push 0
push 4
push 0x5c6434
lea ecx, [ebp - 0x133c]
call fcn.004d5260
lea ecx, [ebp - 0x133c]
call fcn.0042b970
push 0
push 4
lea eax, [ebp - 0x127c]
mov dword [ebp - 0x127c], 0
push eax
lea ecx, [ebp - 0x133c]
call fcn.004d5260
lea ecx, [ebp - 0x1338]
call fcn.0042b530
test eax, eax
jne 0x4f766e
mov eax, dword [ebp - 0x133c]
lea ecx, [ebp - 0x133c]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004133b0
lea ecx, [ebp - 0x1288]
call fcn.0046a2f0
push 0
push ebx
lea ecx, [ebp - 0x1288]
mov byte [ebp - 4], 0x15
call fcn.00470140
push ecx
lea ecx, [ebp - 0x1414]
mov dword [ebp - 0x127c], eax
call fcn.00470470
push ecx
push 0x23
push ebx
lea ecx, [ebp - 0x13fc]
mov byte [ebp - 4], 0x16
call fcn.0042b5f0
test eax, eax
lea ecx, [ebp - 0x1414]
mov eax, dword [ebp - 0x1414]
push 0
mov eax, dword [eax + 4]
jne 0x4f76db
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
jmp 0x4f76ea
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.004133b0
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffc
lea ecx, [ebp - 0x1404]
call fcn.004706d0
push 0
push 4
lea eax, [ebp - 0x127c]
push eax
lea ecx, [ebp - 0x1404]
call fcn.004d5260
lea ecx, [ebp - 0x13fc]
call fcn.0042b530
test eax, eax
jne 0x4f7751
mov eax, dword [ebp - 0x1414]
lea ecx, [ebp - 0x1414]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004133b0
lea ecx, [ebp - 0x1414]
call fcn.00470310
lea ecx, [ebp - 0x1288]
call fcn.0046a3c0
lea ecx, [ebp - 0x1284]
call fcn.00475ed0
xor ebx, ebx
mov byte [ebp - 0x1274], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4f77bc
test byte [ecx + 0x1c], 1
je 0x4f77bc
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5db7e4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1b
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x133c]
call fcn.004cce00
mov edx, dword [ebp - 0x1214]
cmp edx, 8
jb 0x4f7807
mov ecx, dword [ebp - 0x1228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f77fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f78a6
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov edx, dword [ebp - 0x122c]
xor eax, eax
mov dword [ebp - 0x1218], 0
mov dword [ebp - 0x1214], 7
mov word [ebp - 0x1228], ax
cmp edx, 8
jb 0x4f7860
mov ecx, dword [ebp - 0x1240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f7856
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f78ab
push edx
push ecx
call fcn.0056deb6
add esp, 8
xor eax, eax
mov dword [ebp - 0x1230], 0
lea ecx, [ebp - 0x1278]
mov dword [ebp - 0x122c], 7
mov word [ebp - 0x1240], ax
call fcn.0040a570
mov eax, ebx
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.0056d977
mov esp, ebp
pop ebp
ret
call fcn.00574908
call fcn.00574908
int3