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

Disassembly:
push 0xffffffffffffffff
push 0x45e588
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4770c4]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4770c4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x88]
mov edi, 8
mov dword [esp + 0x1c], eax
cmp dword [eax + 0x18], edi
jb 0x40cff9
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [eax]
jmp 0x40d000
add eax, 4
mov dword [esp + 0x14], eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
cmp dword [ebp + 0x30], ebx
je 0x40d1a9
cmp dword [ebp + 0x34], edi
lea esi, [ebp + 0x1c]
jb 0x40d01f
mov eax, dword [esi + 4]
jmp 0x40d022
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d1a9
cmp dword [ebp + 0x8c], ebx
jne 0x40d04d
mov edi, ebp
call fcn.0040ced0
test al, al
je 0x40d1f3
mov edi, 8
cmp dword [esi + 0x18], edi
jb 0x40d057
mov ecx, dword [esi + 4]
jmp 0x40d05a
lea ecx, [esi + 4]
mov eax, dword [ebp + 0x8c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x50]
call eax
cmp dword [ebp + 0x14], ebx
je 0x40d08a
cmp dword [ebp + 0x18], edi
jb 0x40d078
mov ecx, dword [ebp + 4]
jmp 0x40d07b
lea ecx, [ebp + 4]
mov eax, dword [ebp + 0x8c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
mov edi, 1
mov ebx, esi
call fcn.0040d450
push esi
mov ecx, eax
xor edx, edx
lea esi, [esp + 0x5c]
call fcn.004029e0
mov dword [esp + 0x80], edi
cmp dword [esp + 0x6c], 0
lea esi, [edi + 7]
je 0x40d0d2
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x40d0c3
lea ecx, [esp + 0x5c]
mov eax, dword [ebp + 0x8c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x24]
call eax
cmp dword [ebp + 0x68], 0
je 0x40d0f6
cmp dword [ebp + 0x6c], esi
jb 0x40d0e2
mov ecx, dword [ebp + 0x58]
jmp 0x40d0e5
lea ecx, [ebp + 0x58]
mov eax, dword [ebp + 0x8c]
mov edx, dword [eax]
push 0
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
mov eax, dword [ebp + 0x8c]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0
mov ecx, dword [eax]
push 0x4605c8
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jge 0x40d12c
cmp dword [esp + 0x70], esi
jb 0x40d1f3
mov ecx, dword [esp + 0x5c]
jmp 0x40d1ea
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x18], esi
jb 0x40d13d
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
jmp 0x40d141
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push 1
push ecx
push eax
mov eax, dword [edx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
jge 0x40d19c
mov eax, 0x46d130
lea ecx, [esp + 0x3c]
call fcn.004014c0
push 0xffffffffffffffff
push 0
lea ecx, [ebp + 0x70]
lea eax, [esp + 0x44]
mov byte [esp + 0x88], 2
call fcn.00401ac0
lea esi, [esp + 0x3c]
call fcn.00401b70
lea esi, [esp + 0x58]
call fcn.00401b70
jmp 0x40d1f3
lea esi, [esp + 0x58]
call fcn.00401b70
mov al, 1
jmp 0x40d1f5
xor eax, eax
mov word [esp + 0x24], ax
push 0xa
mov eax, 0x46d118
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
call fcn.004016d0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x70]
mov eax, esi
mov dword [esp + 0x88], ebx
call fcn.00401ac0
cmp dword [esp + 0x38], edi
jb 0x40d1f3
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00445f80
add esp, 4
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00445f20
add esp, 0x70
ret 8