Function at 0x528700
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x631c76
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x374], ecx
mov ecx, dword [ebp - 0x374]
add ecx, 0x2fc
call fcn.0052ba80
test eax, eax
jne 0x52874b
jmp 0x528da3
push 6
lea eax, [ebp - 0x2c]
push eax
call fcn.00412530
mov ecx, eax
call fcn.0040c9e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5287a7
lea ecx, [ebp - 0x2c]
call fcn.0040e5d0
push eax
push 0x65348c
call fcn.00412530
push eax
call fcn.0040d040
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e530
jmp 0x528da3
push 7
lea ecx, [ebp - 0x48]
push ecx
call fcn.00412530
mov ecx, eax
call fcn.0040c9e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x528830
lea ecx, [ebp - 0x48]
call fcn.0040e5d0
push eax
call fcn.00432f80
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x528830
lea ecx, [ebp - 0x48]
call fcn.0040e5d0
push eax
push 0x6534ac
call fcn.00412530
push eax
call fcn.0040d040
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e530
jmp 0x528da3
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x374]
add ecx, 0x2fc
call fcn.00414550
jmp 0x528858
push 0
lea eax, [ebp - 0x300]
push eax
lea ecx, [ebp - 0x50]
call fcn.0052bbb0
lea ecx, [ebp - 0x308]
push ecx
mov ecx, dword [ebp - 0x374]
add ecx, 0x2fc
call fcn.0040e8c0
push eax
lea ecx, [ebp - 0x50]
call fcn.00449590
movzx edx, al
test edx, edx
je 0x528d88
lea ecx, [ebp - 0x50]
call fcn.0052bb90
mov ecx, eax
call fcn.0040e5d0
push eax
lea eax, [ebp - 0x2f8]
push eax
call fcn.00438b60
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0xd4]
call fcn.0040e4f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.0052bb90
add eax, 0x38
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040e590
push 0x6534c4
lea ecx, [ebp - 0xd4]
call fcn.0040e5b0
lea ecx, [ebp - 0xd4]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x528961
lea ecx, [ebp - 0xd4]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xd4]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x528961
lea ecx, [ebp - 0xd4]
call fcn.0040e5d0
push eax
push 0x6534d0
call fcn.00412530
push eax
call fcn.0040d040
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2f8]
call fcn.0040e530
jmp 0x528847
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x70]
call fcn.0040e4f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.0052bb90
mov ecx, eax
call fcn.0040e5d0
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.00438b60
add esp, 8
mov dword [ebp - 0x378], eax
mov ecx, dword [ebp - 0x378]
mov dword [ebp - 0x37c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x37c]
push edx
lea ecx, [ebp - 0x70]
call fcn.0040e590
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x324]
call fcn.0040e530
lea ecx, [ebp - 0x70]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5289e6
lea ecx, [ebp - 0x70]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xb8]
call fcn.0044a670
mov byte [ebp - 4], 6
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x340]
push ecx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x380], eax
mov edx, dword [ebp - 0x380]
mov dword [ebp - 0x384], edx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x384]
call fcn.0040e460
push eax
lea ecx, [ebp - 0x50]
call fcn.0052bb90
push eax
lea eax, [ebp - 0x35c]
push eax
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x388], eax
mov ecx, dword [ebp - 0x388]
mov dword [ebp - 0x38c], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x38c]
call fcn.0040e460
push eax
lea ecx, [ebp - 0xb8]
call fcn.0044a9a0
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x35c]
call fcn.0040e3e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x340]
call fcn.0040e3e0
cmp dword [ebp - 0x54], 0
je 0x528af9
lea ecx, [ebp - 0x50]
call fcn.0052bb90
mov ecx, eax
call fcn.0040e5d0
push eax
push 0x6534ec
call fcn.00412530
push eax
call fcn.0040d040
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2f8]
call fcn.0040e530
jmp 0x528847
lea ecx, [ebp - 0x50]
call fcn.0052bb90
add eax, 0x54
mov ecx, eax
call fcn.0040e5d0
push eax
push 0
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.0040e5d0
push eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.0040e5d0
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040e5d0
push eax
call fcn.0043d1e0
add esp, 0x20
push 0x653504
lea ecx, [ebp - 0x8c]
call fcn.0040e4b0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
call fcn.0052bb90
add eax, 0x38
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040e590
call fcn.00412590
lea ecx, [ebp - 0x50]
call fcn.0052bb90
add eax, 0x1c
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x360], esp
push eax
push edx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x390], eax
mov eax, dword [ebp - 0x390]
mov dword [ebp - 0x394], eax
mov byte [ebp - 4], 0xa
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x364], esp
lea edx, [ebp - 0x8c]
push edx
push ecx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x398], eax
mov byte [ebp - 4], 9
call fcn.00520340
add esp, 0x38
xor eax, eax
mov word [ebp - 0x2dc], ax
push 0x206
push 0
lea ecx, [ebp - 0x2da]
push ecx
call fcn.005b4de0
add esp, 0xc
call fcn.00434900
push eax
push 0x653514
lea edx, [ebp - 0x2dc]
push edx
call fcn.005b50ec
add esp, 0xc
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
lea eax, [ebp - 0x2dc]
push eax
call fcn.0040e4b0
mov dword [ebp - 0x39c], eax
mov ecx, dword [ebp - 0x39c]
mov dword [ebp - 0x3a0], ecx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2f8]
call fcn.0040e5d0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x36c], esp
push eax
call fcn.0040e4b0
mov dword [ebp - 0x3a4], eax
mov edx, dword [ebp - 0x3a4]
mov dword [ebp - 0x3a8], edx
mov byte [ebp - 4], 0xc
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x370], esp
push 0x65351c
call fcn.0040e4b0
mov dword [ebp - 0x3ac], eax
mov eax, dword [ebp - 0x3ac]
mov dword [ebp - 0x3b0], eax
mov byte [ebp - 4], 0xd
call fcn.00412530
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.0040b820
lea ecx, [ebp - 0x50]
call fcn.0052bb90
cmp dword [eax + 0x70], 0
je 0x528d3b
mov ecx, dword [ebp - 0x374]
mov edx, dword [ecx + 0x314]
sub edx, 1
mov eax, dword [ebp - 0x374]
mov dword [eax + 0x314], edx
mov ecx, dword [ebp - 0x374]
cmp dword [ecx + 0x314], 0
jg 0x528d3b
push 0x653524
call fcn.00412530
push eax
call fcn.0040d040
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8c]
call fcn.0040e530
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2f8]
call fcn.0040e530
jmp 0x528d88
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8c]
call fcn.0040e530
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2f8]
call fcn.0040e530
jmp 0x528847
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret