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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46fa58
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4a2a04]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push esi
mov eax, dword [0x4a2a04]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x298], ebx
mov dword [esp + 0x10], ebx
jle 0x40ac25
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 0x294]
add eax, ebx
cmp byte [eax], 0
je 0x40ac02
add eax, 0x202
xor ecx, ecx
mov word [esp + 0x58], cx
mov ecx, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40aa20
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x58]
call fcn.00404400
mov dword [esp + 0x80], 0
mov edx, dword [edi + 0x294]
lea eax, [edi + 0x278]
lea ebx, [ebx + edx + 0x1202]
push eax
lea esi, [esp + 0x18]
call fcn.00404ea0
mov ebx, 8
add esp, 4
cmp dword [eax + 0x18], ebx
jb 0x40aa73
mov eax, dword [eax + 4]
jmp 0x40aa76
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
cmp dword [esp + 0x2c], ebx
jb 0x40aa92
mov eax, dword [esp + 0x18]
push eax
call fcn.00444c3b
add esp, 4
test esi, esi
je 0x40aae6
mov ecx, dword [edi + 0x294]
mov edx, dword [esp + 0xc]
lea eax, [edi + 0x278]
lea ebx, [edx + ecx + 0x1202]
push eax
lea esi, [esp + 0x18]
call fcn.00404ea0
mov esi, 8
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x40aac9
mov eax, dword [eax + 4]
jmp 0x40aacc
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x2c], esi
jb 0x40aae6
mov eax, dword [esp + 0x18]
push eax
call fcn.00444c3b
add esp, 4
mov ecx, dword [edi + 0x294]
mov edx, dword [esp + 0xc]
lea eax, [edi + 0x278]
push 0
lea ebx, [edx + ecx + 0x1202]
push eax
lea esi, [esp + 0x1c]
call fcn.00404ea0
sub esp, 0x18
mov byte [esp + 0xa0], 1
mov ecx, esp
mov dword [esp + 0x54], esp
push ecx
mov ecx, eax
call fcn.0040b8a0
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x6c], esp
push edx
lea ecx, [esp + 0x94]
mov byte [esp + 0xc0], 2
call fcn.0040b8a0
add esp, 4
mov byte [esp + 0xbc], 1
call fcn.0040b010
mov byte [esp + 0x80], 0
cmp dword [esp + 0x2c], 8
mov bl, al
jb 0x40ab6e
mov eax, dword [esp + 0x18]
push eax
call fcn.00444c3b
add esp, 4
test bl, bl
je 0x40abe3
mov ecx, dword [edi + 0x294]
mov edx, dword [esp + 0xc]
lea eax, [edi + 0x278]
lea ebx, [edx + ecx + 0x1202]
push eax
lea esi, [esp + 0x3c]
call fcn.00404ea0
mov esi, 8
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x40aba5
mov eax, dword [eax + 4]
jmp 0x40aba8
add eax, 4
mov edx, dword [edi + 0x294]
add edx, dword [esp + 0xc]
mov ecx, eax
call fcn.00401400
cmp dword [esp + 0x50], esi
jb 0x40abcc
mov eax, dword [esp + 0x3c]
push eax
call fcn.00444c3b
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], cx
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x6c], 8
jb 0x40ac02
mov edx, dword [esp + 0x58]
push edx
call fcn.00444c3b
add esp, 4
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
inc eax
add ebx, 0x1602
cmp eax, dword [edi + 0x298]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
jl 0x40a9ec
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004516c6
mov esp, ebp
pop ebp
ret