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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f166
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
xor eax, eax
mov dword [ebp - 0x40], 0
push esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
call fcn.00419fe0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x88]
cmp eax, esi
je 0x40aa77
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x40aa3f
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aa35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0e1
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov dword [ebp - 0x78], 0
xor eax, eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x78], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40aab1
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aaa7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0e1
push edx
push ecx
call fcn.0041b0e9
add esp, 8
lea eax, [ebp - 0x58]
push eax
call fcn.0040fe70
mov esi, eax
add esp, 4
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x40ab32
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40ab00
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aaf6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0e6
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40ab6c
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0e6
push edx
push ecx
call fcn.0041b0e9
add esp, 8
lea eax, [ebp - 0x58]
push eax
call fcn.00410530
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x40abed
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40abbb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40abb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0eb
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40ac27
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac1d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0eb
push edx
push ecx
call fcn.0041b0e9
add esp, 8
lea eax, [ebp - 0x58]
push eax
call fcn.0040f980
mov esi, eax
add esp, 4
lea eax, [ebp - 0x70]
cmp eax, esi
je 0x40aca8
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x40ac76
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0f0
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40ace2
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40acd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0f0
push edx
push ecx
call fcn.0041b0e9
add esp, 8
cmp dword [ebp - 0x78], 0
je 0x40afa9
cmp dword [ebp - 0x18], 0
je 0x40afa9
cmp dword [ebp - 0x60], 0
je 0x40afa9
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push 0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 4
call fcn.00443e80
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x58]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0xac]
call fcn.00444060
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x40af6a
cmp dword [ebp - 0x30], 0
je 0x40ad89
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
push edx
cmovae ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00433c10
add esp, 0xc
mov eax, 0xf
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0xa0], 0
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 6
je 0x40ae07
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00434880
add esp, 8
cmp dword [ebp - 0x18], 0
je 0x40ae01
cmp dword [ebp - 0x8c], 0x10
lea ecx, [ebp - 0xa0]
push dword [ebp - 0x90]
cmovae ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00433c10
add esp, 0xc
mov eax, dword [ebp - 0x8c]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x40ae41
mov ecx, dword [ebp - 0xa0]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ae37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0f5
push edx
push ecx
call fcn.0041b0e9
add esp, 8
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
call fcn.00443ed0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x40ae9f
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ae95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0f5
push edx
push ecx
call fcn.0041b0e9
add esp, 8
cmp dword [ebp - 0x14], 8
jb 0x40aeaf
cmp dword [ebp - 0x28], 0
je 0x40afa9
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edx, 8
cmovae eax, ecx
cmp word [eax], 0
je 0x40afa9
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40afa9
lea eax, [ebp - 0x28]
push eax
call fcn.00433ee0
add esp, 4
test al, al
jne 0x40af17
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
jmp 0x40afa9
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00411000
mov ecx, dword [ebp + 8]
add esp, 8
mov byte [ebp - 0xd], al
test ecx, ecx
je 0x40af49
lea eax, [ebp - 0x40]
cmp ecx, eax
je 0x40af49
cmp dword [ebp - 0x2c], 8
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00403130
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40afad
lea eax, [ebp - 0x70]
cmp ecx, eax
je 0x40afad
cmp dword [ebp - 0x5c], 8
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.00403130
jmp 0x40afad
lea ecx, [ebp - 0xac]
call fcn.00443ed0
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40afa9
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40af9f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0f5
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov byte [ebp - 0xd], 0
mov edx, dword [ebp - 0x74]
pop esi
cmp edx, 8
jb 0x40afeb
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40afe1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0fa
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp edx, 8
jb 0x40b03c
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b032
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0fa
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x40b086
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b07c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0fa
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x40b0d0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b0c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0fa
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004491bf
call fcn.004491bf
call fcn.004491bf
call fcn.004491bf
call fcn.004491bf
call fcn.004491bf
int3