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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44173a
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x4511b0]
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 dword [ebp - 0x14], 0
push 0x4466be
mov ecx, dword [ebp + 0x10]
call fcn.004061c0
mov eax, dword [ebp + 8]
push eax
call fcn.00405b70
add esp, 4
test eax, eax
je 0x4056b9
xor eax, eax
jmp 0x405b11
mov byte [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
push 0x4466be
lea ecx, [ebp - 0x44]
call fcn.00405ff0
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 5
push 0xa
push 5
call fcn.0041acf0
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0041ad30
add esp, 8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call fcn.004061c0
push 0x4466bc
lea ecx, [ebp - 0x44]
call fcn.00406220
push 0x14
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.0042a550
add esp, 0xc
push 4
push 2
call fcn.0041acf0
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0041ad30
add esp, 8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call fcn.00406220
mov eax, dword [ebp + 0xc]
push eax
call fcn.00405b70
add esp, 4
test eax, eax
jne 0x40586f
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004061c0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004061f0
mov ecx, dword [ebp + 0x10]
call fcn.004063b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4057d6
mov ecx, dword [ebp + 0x10]
call fcn.004063b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4057d6
mov dword [ebp - 0x128], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00406130
mov eax, dword [ebp - 0x128]
jmp 0x405b11
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x17c]
call fcn.00405ff0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x17c]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.0041bd40
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x17c]
call fcn.00406130
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.0041bd40
add esp, 8
mov byte [ebp - 4], 4
call fcn.004067b0
mov dword [ebp - 0x180], eax
push 1
lea ecx, [ebp - 0x80]
call fcn.004065d0
push eax
lea ecx, [ebp - 0x64]
call fcn.004065d0
push eax
mov eax, dword [ebp - 0x180]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x180]
mov eax, dword [edx + 4]
call eax
movzx ecx, al
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.00406570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00406570
cmp dword [ebp - 0x14], 0
jne 0x405af3
mov ecx, 0x45362c
call fcn.004065f0
movzx eax, al
test eax, eax
je 0x40588f
call fcn.00405260
lea eax, [ebp - 0x84]
push eax
mov ecx, 0x45362c
call fcn.00418650
jmp 0x4058b6
push 0
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x84]
call fcn.00406780
lea eax, [ebp - 0x120]
push eax
mov ecx, 0x45362c
call fcn.004274c0
push eax
lea ecx, [ebp - 0x84]
call fcn.00418770
movzx ecx, al
test ecx, ecx
je 0x405af3
lea ecx, [ebp - 0x84]
call fcn.00423370
push eax
lea ecx, [ebp - 0xa0]
call fcn.00405ef0
mov byte [ebp - 4], 5
mov eax, dword [0x4466b8]
push eax
push 0x4466b4
lea ecx, [ebp - 0xa0]
call fcn.00406410
mov esi, eax
lea ecx, [ebp - 0xa0]
call fcn.00407b20
sub eax, 1
cmp esi, eax
je 0x405933
push 0x4466b4
lea ecx, [ebp - 0xa0]
call fcn.00406220
lea ecx, [ebp - 0xa0]
call fcn.004063b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x405970
lea eax, [ebp - 0xa0]
push eax
call fcn.004054d0
add esp, 4
test eax, eax
jne 0x405970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00406130
jmp 0x4058a2
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x160]
push edx
call fcn.004085a0
add esp, 0xc
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x184]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00406100
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x160]
call fcn.00406130
mov ecx, dword [ebp + 0x10]
call fcn.004063b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4059ff
mov ecx, dword [ebp + 0x10]
call fcn.004063b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4059ff
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00406130
jmp 0x405af3
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x144]
call fcn.00405ff0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x144]
push ecx
lea edx, [ebp - 0xbc]
push edx
call fcn.0041bd40
add esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x144]
call fcn.00406130
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.0041bd40
add esp, 8
mov byte [ebp - 4], 0xa
call fcn.004067b0
mov dword [ebp - 0x180], eax
push 1
lea ecx, [ebp - 0xd8]
call fcn.004065d0
push eax
lea ecx, [ebp - 0xbc]
call fcn.004065d0
push eax
mov eax, dword [ebp - 0x180]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x180]
mov eax, dword [edx + 4]
call eax
movzx ecx, al
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x405ac1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd8]
call fcn.00406570
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xbc]
call fcn.00406570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00406130
jmp 0x405af3
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd8]
call fcn.00406570
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xbc]
call fcn.00406570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00406130
jmp 0x4058a2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00406130
mov eax, dword [ebp - 0x11c]
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.0042a65e
mov esp, ebp
pop ebp
ret