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

Disassembly:
push 0xffffffffffffffff
push 0x42cf4c
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 0x403351
test ebx, ebx
je 0x403351
mov eax, dword [esi + 0x34]
test byte [eax + ebp + 8], 0x10
jne 0x403336
lea ebx, [esi + 0x30]
push edi
mov ecx, ebx
call fcn.00403d50
mov ecx, eax
call fcn.00403460
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00423a6d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40309f
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40309f
mov ecx, dword [esi + 0x24]
push ecx
push edi
mov ecx, ebx
call fcn.00403d50
mov ecx, eax
call fcn.00403460
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00423a6d
lea edx, [esp + 0x30]
mov ecx, esi
push edx
call fcn.00403810
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 2
call fcn.00423de5
lea ecx, [esp + 0x28]
mov byte [esp + 0x160], 1
call fcn.00423cf8
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x1c]
push eax
call fcn.004243e9
mov edx, dword [esi + 0x54]
mov ecx, esi
inc edx
mov dword [esi + 0x54], edx
call fcn.00403470
mov ecx, esi
call fcn.004034e0
mov ecx, esi
call fcn.00403560
test eax, eax
je 0x4030c9
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 0x403336
cmp eax, 0xffffffff
jne 0x4030fb
xor eax, eax
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov ecx, esp
mov dword [esp + 0x14], esp
jmp 0x403147
test al, 6
je 0x403118
mov eax, dword [esi + 0x10]
xor edi, edi
cmp eax, edi
jne 0x40311a
mov eax, dword [esi + 0x50]
mov dword [esp + 0x14], edi
dec eax
mov dword [esi + 0x50], eax
jmp 0x403336
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 0x40315d
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], edi
cmp eax, edi
jne 0x40315d
push ecx
mov dword [esp + 0x18], edi
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Delete_failed
call fcn.00423d66
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
jmp 0x403336
cmp dword [esi + 0x28], edi
jne 0x40320c
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 0x4031c2
mov dword [esp + 0x14], esp
push str.Delete_failed
call fcn.00423d66
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 0x40319f
mov dword [esp + 0x14], edi
lea edi, [esi + 0x2c]
push 0x4381fc
mov ecx, edi
call fcn.00424088
mov eax, dword [esi + 0x34]
lea ecx, [eax + ebp + 4]
push ecx
mov ecx, edi
call fcn.004240c4
jmp 0x403336
mov dword [esp + 0x14], esp
push str.Delete_successful
call fcn.00423d66
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
cmp dword [esi + 0x14], edi
je 0x403336
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push eax
call fcn.00403d50
mov ecx, eax
call fcn.00403460
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00423a6d
mov ecx, esi
call fcn.00403590
jmp 0x403336
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.00423a6d
push 0xa
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 3
call fcn.004240dc
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.0042412b
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 0x4032e4
mov dword [esp + 0x14], esp
push str.Delete_failed
call fcn.00423d66
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 0x4032c4
mov dword [esp + 0x14], edi
lea edi, [esi + 0x2c]
push 0x4381fc
mov ecx, edi
call fcn.00424088
mov ecx, dword [esi + 0x34]
lea edx, [ecx + ebp + 4]
mov ecx, edi
push edx
call fcn.004240c4
jmp 0x403325
mov dword [esp + 0x14], esp
push str.Delete_successful
call fcn.00423d66
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esi + 0x14], edi
je 0x403325
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.00403d50
mov ecx, eax
call fcn.00403460
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00423a6d
mov ecx, esi
call fcn.00403590
lea ecx, [esp + 0x24]
mov byte [esp + 0x160], 1
call fcn.00423cf8
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 0x402ff2
mov eax, dword [esi + 0x38]
xor edi, edi
test eax, eax
jle 0x403399
xor ebp, ebp
test ebx, ebx
je 0x403399
mov edx, dword [esi + 0x34]
test byte [edx + ebp + 8], 0x10
je 0x40338e
push edi
lea ecx, [esi + 0x30]
call fcn.00403d50
mov ecx, eax
call fcn.00403460
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00423a6d
mov ecx, esi
call fcn.004036c0
mov eax, dword [esi + 0x38]
inc edi
add ebp, 0x38
cmp edi, eax
jl 0x40335c
push 0x4381fc
lea ecx, [esi + 0x2c]
call fcn.00423236
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4033f5
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4033d9
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4033d9
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 0x403417
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403417
push str.Done
jmp 0x40340f
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x403417
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403417
push str.Error
mov ecx, dword [esi + 0x1c]
call fcn.004243e9
lea ecx, [esp + 0x20]
mov byte [esp + 0x160], 0
call fcn.00423cf8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x160], 0xffffffff
call fcn.00423cf8
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