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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x631074
mov eax, dword fs:[0]
push eax
sub esp, 0x348
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 - 0x328], ecx
mov dword [ebp - 0x324], 0
mov dword [ebp - 4], 3
push 0
push 0x65243c
lea ecx, [ebp + 0xc]
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
jne 0x5217c1
push 0x652448
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov eax, dword [ebp - 0x324]
or eax, 1
mov dword [ebp - 0x324], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x28]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x44]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x521f2a
mov dword [ebp - 0x7c], 1
lea ecx, [ebp - 0x30]
push ecx
call fcn.00412530
mov ecx, eax
call fcn.0040ac90
mov byte [ebp - 4], 4
xor edx, edx
mov word [ebp - 0x284], dx
push 0x206
push 0
lea eax, [ebp - 0x282]
push eax
call fcn.005b4de0
add esp, 0xc
mov ecx, dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040e5d0
push eax
push 0x65244c
lea edx, [ebp - 0x284]
push edx
call fcn.005b50ec
add esp, 0x10
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5219a3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c0], esp
lea edx, [ebp - 0x284]
push edx
call fcn.0040e4b0
mov dword [ebp - 0x32c], eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.0042fbd0
add esp, 0x20
mov dword [ebp - 0x330], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.0043a5c0
add esp, 4
push 0x652468
lea edx, [ebp - 0x2a0]
push edx
call fcn.00412570
add esp, 8
movzx eax, al
test eax, eax
je 0x52198f
lea ecx, [ebp + 0x28]
call fcn.0040e5d0
push eax
lea ecx, [ebp - 0x2a0]
call fcn.0040e5d0
push eax
call fcn.005b501e
add esp, 8
test eax, eax
jne 0x521931
lea ecx, [ebp + 0xc]
call fcn.0040e5d0
push eax
push 0x65246c
call fcn.004560b0
add esp, 8
lea ecx, [ebp - 0x284]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov edx, dword [ebp - 0x324]
or edx, 1
mov dword [ebp - 0x324], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2a0]
call fcn.0040e530
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x28]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x44]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x521f2a
push 0
lea ecx, [ebp - 0x2a0]
call fcn.0040e5d0
push eax
mov ecx, dword [ebp - 0x328]
add ecx, 0x16c
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
jne 0x521965
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x7c]
add ecx, 1
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x30]
call fcn.0040e5d0
push eax
push str._sskin_d.zip
lea eax, [ebp - 0x284]
push eax
call fcn.005b50ec
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2a0]
call fcn.0040e530
jmp 0x52181c
mov ecx, dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040e5d0
push eax
push 0x6524a0
lea edx, [ebp - 0x284]
push edx
call fcn.005b50ec
add esp, 0x10
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x521b4b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c4], esp
lea edx, [ebp - 0x284]
push edx
call fcn.0040e4b0
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0x2bc]
push eax
call fcn.0042fbd0
add esp, 0x20
mov dword [ebp - 0x338], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2bc]
push ecx
call fcn.0043a5c0
add esp, 4
push 0x6524b8
lea edx, [ebp - 0x2bc]
push edx
call fcn.00412570
add esp, 8
movzx eax, al
test eax, eax
je 0x521b37
lea ecx, [ebp + 0x28]
call fcn.0040e5d0
push eax
lea ecx, [ebp - 0x2bc]
call fcn.0040e5d0
push eax
call fcn.005b501e
add esp, 8
test eax, eax
jne 0x521ad9
lea ecx, [ebp + 0xc]
call fcn.0040e5d0
push eax
push 0x6524bc
call fcn.004560b0
add esp, 8
lea ecx, [ebp - 0x284]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov edx, dword [ebp - 0x324]
or edx, 1
mov dword [ebp - 0x324], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2bc]
call fcn.0040e530
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x28]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x44]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x521f2a
push 0
lea ecx, [ebp - 0x2bc]
call fcn.0040e5d0
push eax
mov ecx, dword [ebp - 0x328]
add ecx, 0x16c
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
jne 0x521b0d
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x7c]
add ecx, 1
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x30]
call fcn.0040e5d0
push eax
push str._stmp_d.zip
lea eax, [ebp - 0x284]
push eax
call fcn.005b50ec
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2bc]
call fcn.0040e530
jmp 0x5219c4
mov dword [ebp - 0x7c], 1
mov ecx, dword [ebp - 0x7c]
push ecx
lea ecx, [ebp + 0x44]
call fcn.0040e5d0
push eax
lea ecx, [ebp - 0x30]
call fcn.0040e5d0
push eax
push 0x6524ec
lea edx, [ebp - 0x284]
push edx
call fcn.005b50ec
add esp, 0x14
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x521bc2
mov ecx, dword [ebp - 0x7c]
add ecx, 1
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
push edx
lea ecx, [ebp + 0x44]
call fcn.0040e5d0
push eax
lea ecx, [ebp - 0x30]
call fcn.0040e5d0
push eax
push str._s_s_d.zip
lea eax, [ebp - 0x284]
push eax
call fcn.005b50ec
add esp, 0x14
jmp 0x521b7c
lea ecx, [ebp - 0x5c]
call fcn.0044a670
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x2e0]
call fcn.0040e4b0
mov byte [ebp - 4], 8
push 0
lea edx, [ebp - 0x2e0]
push edx
lea eax, [ebp - 0x2fc]
push eax
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
mov dword [ebp - 0x340], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x340]
call fcn.0040e460
push eax
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x318]
push eax
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x344], eax
mov ecx, dword [ebp - 0x344]
mov dword [ebp - 0x348], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x348]
call fcn.0040e460
push eax
lea ecx, [ebp - 0x5c]
call fcn.0044a9a0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x318]
call fcn.0040e3e0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2fc]
call fcn.0040e3e0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2e0]
call fcn.0040e530
cmp dword [ebp - 0x14], 0
je 0x521d07
lea ecx, [ebp + 0xc]
call fcn.0040e5d0
push eax
push 0x65251c
call fcn.004560b0
add esp, 8
push 0x652534
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov edx, dword [ebp - 0x324]
or edx, 1
mov dword [ebp - 0x324], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x28]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x44]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x521f2a
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x521d8e
lea ecx, [ebp + 0xc]
call fcn.0040e5d0
push eax
push 0x652538
call fcn.004560b0
add esp, 8
push 0x652550
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov ecx, dword [ebp - 0x324]
or ecx, 1
mov dword [ebp - 0x324], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x28]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x44]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x521f2a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x31c], esp
lea edx, [ebp - 0x284]
push edx
call fcn.0040e4b0
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x78]
push eax
call fcn.0042fbd0
add esp, 0x20
mov dword [ebp - 0x350], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0x28]
call fcn.0040e5d0
push eax
lea ecx, [ebp - 0x78]
call fcn.0040e5d0
push eax
call fcn.005b501e
add esp, 8
test eax, eax
je 0x521ead
push 0x652554
lea ecx, [ebp + 0x28]
push ecx
call fcn.00412570
add esp, 8
movzx edx, al
test edx, edx
je 0x521eab
push 0x652558
call fcn.004560b0
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x320], esp
push 0x652578
call fcn.0040e3a0
mov dword [ebp - 0x354], eax
mov ecx, dword [ebp - 0x328]
call fcn.0051f960
call fcn.00412530
mov ecx, eax
call fcn.0040c3e0
test eax, eax
jne 0x521eab
push 0x6525a8
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov eax, dword [ebp - 0x324]
or eax, 1
mov dword [ebp - 0x324], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x78]
call fcn.0040e530
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x28]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x44]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x521f2a
jmp 0x521ec1
lea ecx, [ebp - 0x284]
push ecx
push 0x6525ac
call fcn.004560b0
add esp, 8
lea edx, [ebp - 0x284]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov eax, dword [ebp - 0x324]
or eax, 1
mov dword [ebp - 0x324], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x78]
call fcn.0040e530
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x28]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x44]
call fcn.0040e530
mov eax, dword [ebp + 8]
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 0x58