Function at 0x41a460
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bde8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x588790]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, str._ZProgram::Deletefile_Start
mov dword [ebp - 4], ebx
call fcn.00408b90
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x70], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
mov edi, 0xf
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00404580
lea ecx, [ebp - 0x30]
push ecx
call fcn.00420700
add esp, 0x20
push 1
push 0x537530
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004046e0
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x4c]
mov esi, eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.00404580
mov byte [ebp - 4], 2
cmp esi, ebx
jl 0x41a531
mov eax, dword [ebp + 0x18]
lea ecx, [esi + 1]
push eax
lea esi, [ebp - 0x68]
lea edx, [ebp + 8]
call fcn.004043c0
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00404500
mov byte [ebp - 4], 2
cmp dword [ebp - 0x54], 0x10
jb 0x41a531
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004ad85d
add esp, 4
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x41a53d
lea eax, [ebp - 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
setne byte [ebp - 0x69]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x69], bl
jne 0x41a5fd
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x70], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 4
push ebx
lea edx, [ebp - 0x4c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
lea esi, [ebp - 0x5c]
mov byte [ecx], bl
call fcn.00404580
call fcn.0041a1b0
mov eax, esi
add esp, 0x1c
push eax
call fcn.0041a110
mov eax, dword [ebp - 0x30]
add esp, 4
cmp dword [ebp - 0x1c], 8
jae 0x41a5aa
lea eax, [ebp - 0x30]
push eax
call edi
test eax, eax
setne al
mov byte [ebp - 0x69], al
cmp al, bl
jne 0x41a5e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x1c], 0x10
mov esi, eax
mov eax, dword [ebp + 8]
jae 0x41a5cd
lea eax, [ebp + 8]
push eax
mov edi, str._FilePath:
call fcn.00408e10
add esp, 4
push esi
mov edi, str._DeleteFile_Fail__ErrorCode:
call fcn.00408c90
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x41a5fd
push eax
call fcn.004ad85d
add esp, 4
mov edi, str._ZProgram::Deletefile_End
call fcn.00408b90
mov esi, 0x10
cmp dword [ebp - 0x38], esi
jb 0x41a61d
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004ad85d
add esp, 4
cmp dword [ebp - 0x1c], 8
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
jb 0x41a63c
mov edx, dword [ebp - 0x30]
push edx
call fcn.004ad85d
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
cmp dword [ebp + 0x1c], esi
jb 0x41a65d
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ad85d
add esp, 4
mov al, byte [ebp - 0x69]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret