Function at 0x402f80
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42cf3c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov eax, dword [0x439f2c]
push ebx
push ebp
mov ebx, 1
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], eax
xor ebp, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x160], ebp
mov eax, dword [esi + 0x38]
xor edi, edi
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x38]
cmp eax, ebp
mov byte [esp + 0x160], bl
mov dword [esp + 0x1c], edi
jle 0x403341
test ebx, ebx
je 0x403341
mov eax, dword [esi + 0x34]
test byte [eax + ebp + 8], 0x10
jne 0x403326
lea ebx, [esi + 0x30]
push edi
mov ecx, ebx
call fcn.00403d40
mov ecx, eax
call fcn.00403450
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00423a5d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40308f
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40308f
mov ecx, dword [esi + 0x24]
push ecx
push edi
mov ecx, ebx
call fcn.00403d40
mov ecx, eax
call fcn.00403450
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00423a5d
lea edx, [esp + 0x30]
mov ecx, esi
push edx
call fcn.00403800
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 2
call fcn.00423dd5
lea ecx, [esp + 0x28]
mov byte [esp + 0x160], 1
call fcn.00423ce8
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x1c]
push eax
call fcn.004243d9
mov edx, dword [esi + 0x54]
mov ecx, esi
inc edx
mov dword [esi + 0x54], edx
call fcn.00403460
mov ecx, esi
call fcn.004034d0
mov ecx, esi
call fcn.00403550
test eax, eax
je 0x4030b9
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx + ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x403326
cmp eax, 0xffffffff
jne 0x4030eb
xor eax, eax
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov ecx, esp
mov dword [esp + 0x14], esp
jmp 0x403137
test al, 6
je 0x403108
mov eax, dword [esi + 0x10]
xor edi, edi
cmp eax, edi
jne 0x40310a
mov eax, dword [esi + 0x50]
mov dword [esp + 0x14], edi
dec eax
mov dword [esi + 0x50], eax
jmp 0x403326
xor edi, edi
mov eax, dword [esi + 0x34]
push 0x80
mov eax, dword [eax + ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40314d
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], edi
cmp eax, edi
jne 0x40314d
push ecx
mov dword [esp + 0x18], edi
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Delete_failed
call fcn.00423d56
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
jmp 0x403326
cmp dword [esi + 0x28], edi
jne 0x4031fc
mov eax, dword [esi + 0x34]
mov eax, dword [eax + ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
test eax, eax
mov ecx, esp
jne 0x4031b2
mov dword [esp + 0x14], esp
push str.Delete_failed
call fcn.00423d56
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], edi
cmp eax, edi
jne 0x40318f
mov dword [esp + 0x14], edi
lea edi, [esi + 0x2c]
push 0x4381fc
mov ecx, edi
call fcn.00424078
mov eax, dword [esi + 0x34]
lea ecx, [eax + ebp + 4]
push ecx
mov ecx, edi
call fcn.004240b4
jmp 0x403326
mov dword [esp + 0x14], esp
push str.Delete_successful
call fcn.00423d56
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
cmp dword [esi + 0x14], edi
je 0x403326
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push eax
call fcn.00403d40
mov ecx, eax
call fcn.00403450
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00423a5d
mov ecx, esi
call fcn.00403580
jmp 0x403326
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x34]
stosw word es:[edi], ax
lea edx, [ecx + ebp + 4]
lea ecx, [esp + 0x24]
push edx
call fcn.00423a5d
push 0xa
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 3
call fcn.004240cc
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.0042411b
lea edx, [esp + 0x30]
xor edi, edi
lea ecx, [esp + 0x50]
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 3
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edi
mov word [esp + 0x44], 0x50
mov dword [esp + 0x4e], edi
mov dword [esp + 0x4a], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push ecx
test eax, eax
mov ecx, esp
je 0x4032d4
mov dword [esp + 0x14], esp
push str.Delete_failed
call fcn.00423d56
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], edi
cmp eax, edi
jne 0x4032b4
mov dword [esp + 0x14], edi
lea edi, [esi + 0x2c]
push 0x4381fc
mov ecx, edi
call fcn.00424078
mov ecx, dword [esi + 0x34]
lea edx, [ecx + ebp + 4]
mov ecx, edi
push edx
call fcn.004240b4
jmp 0x403315
mov dword [esp + 0x14], esp
push str.Delete_successful
call fcn.00423d56
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esi + 0x14], edi
je 0x403315
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.00403d40
mov ecx, eax
call fcn.00403450
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00423a5d
mov ecx, esi
call fcn.00403580
lea ecx, [esp + 0x24]
mov byte [esp + 0x160], 1
call fcn.00423ce8
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 0x38]
mov ebx, dword [esp + 0x14]
inc edi
add ebp, 0x38
cmp edi, eax
mov dword [esp + 0x1c], edi
jl 0x402fe2
mov eax, dword [esi + 0x38]
xor edi, edi
test eax, eax
jle 0x403389
xor ebp, ebp
test ebx, ebx
je 0x403389
mov edx, dword [esi + 0x34]
test byte [edx + ebp + 8], 0x10
je 0x40337e
push edi
lea ecx, [esi + 0x30]
call fcn.00403d40
mov ecx, eax
call fcn.00403450
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00423a5d
mov ecx, esi
call fcn.004036b0
mov eax, dword [esi + 0x38]
inc edi
add ebp, 0x38
cmp edi, eax
jl 0x40334c
push 0x4381fc
lea ecx, [esi + 0x2c]
call fcn.00423226
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4033e5
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4033c9
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4033c9
mov eax, dword [esi + 0x18]
push 0
push 0x64
push 0x402
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x403407
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403407
push str.Done
jmp 0x4033ff
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x403407
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403407
push str.Error
mov ecx, dword [esi + 0x1c]
call fcn.004243d9
lea ecx, [esp + 0x20]
mov byte [esp + 0x160], 0
call fcn.00423ce8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x160], 0xffffffff
call fcn.00423ce8
mov ecx, dword [esp + 0x158]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x154
ret