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

Disassembly:
push 0xffffffffffffffff
push 0x42dcec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov eax, dword [0x43af64]
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 0x4032d1
test ebx, ebx
je 0x4032d1
mov eax, dword [esi + 0x34]
test byte [eax + ebp + 8], 0x10
jne 0x4032b6
lea ebx, [esi + 0x30]
push edi
mov ecx, ebx
call fcn.00403cd0
mov ecx, eax
call fcn.004033e0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0042480d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40301f
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40301f
mov ecx, dword [esi + 0x24]
push ecx
push edi
mov ecx, ebx
call fcn.00403cd0
mov ecx, eax
call fcn.004033e0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0042480d
lea edx, [esp + 0x30]
mov ecx, esi
push edx
call fcn.00403790
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 2
call fcn.00424b85
lea ecx, [esp + 0x28]
mov byte [esp + 0x160], 1
call fcn.00424a98
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x1c]
push eax
call fcn.00425189
mov edx, dword [esi + 0x54]
mov ecx, esi
inc edx
mov dword [esi + 0x54], edx
call fcn.004033f0
mov ecx, esi
call fcn.00403460
mov ecx, esi
call fcn.004034e0
test eax, eax
je 0x403049
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 0x4032b6
cmp eax, 0xffffffff
jne 0x40307b
xor eax, eax
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov ecx, esp
mov dword [esp + 0x14], esp
jmp 0x4030c7
test al, 6
je 0x403098
mov eax, dword [esi + 0x10]
xor edi, edi
cmp eax, edi
jne 0x40309a
mov eax, dword [esi + 0x50]
mov dword [esp + 0x14], edi
dec eax
mov dword [esi + 0x50], eax
jmp 0x4032b6
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 0x4030dd
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], edi
cmp eax, edi
jne 0x4030dd
push ecx
mov dword [esp + 0x18], edi
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Delete_failed
call fcn.00424b06
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
jmp 0x4032b6
cmp dword [esi + 0x28], edi
jne 0x40318c
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 0x403142
mov dword [esp + 0x14], esp
push str.Delete_failed
call fcn.00424b06
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 0x40311f
mov dword [esp + 0x14], edi
lea edi, [esi + 0x2c]
push 0x4391fc
mov ecx, edi
call fcn.00424e28
mov eax, dword [esi + 0x34]
lea ecx, [eax + ebp + 4]
push ecx
mov ecx, edi
call fcn.00424e64
jmp 0x4032b6
mov dword [esp + 0x14], esp
push str.Delete_successful
call fcn.00424b06
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
cmp dword [esi + 0x14], edi
je 0x4032b6
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push eax
call fcn.00403cd0
mov ecx, eax
call fcn.004033e0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0042480d
mov ecx, esi
call fcn.00403510
jmp 0x4032b6
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.0042480d
push 0xa
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 3
call fcn.00424e7c
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.00424ecb
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 0x403264
mov dword [esp + 0x14], esp
push str.Delete_failed
call fcn.00424b06
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 0x403244
mov dword [esp + 0x14], edi
lea edi, [esi + 0x2c]
push 0x4391fc
mov ecx, edi
call fcn.00424e28
mov ecx, dword [esi + 0x34]
lea edx, [ecx + ebp + 4]
mov ecx, edi
push edx
call fcn.00424e64
jmp 0x4032a5
mov dword [esp + 0x14], esp
push str.Delete_successful
call fcn.00424b06
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esi + 0x14], edi
je 0x4032a5
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.00403cd0
mov ecx, eax
call fcn.004033e0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0042480d
mov ecx, esi
call fcn.00403510
lea ecx, [esp + 0x24]
mov byte [esp + 0x160], 1
call fcn.00424a98
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 0x402f72
mov eax, dword [esi + 0x38]
xor edi, edi
test eax, eax
jle 0x403319
xor ebp, ebp
test ebx, ebx
je 0x403319
mov edx, dword [esi + 0x34]
test byte [edx + ebp + 8], 0x10
je 0x40330e
push edi
lea ecx, [esi + 0x30]
call fcn.00403cd0
mov ecx, eax
call fcn.004033e0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0042480d
mov ecx, esi
call fcn.00403640
mov eax, dword [esi + 0x38]
inc edi
add ebp, 0x38
cmp edi, eax
jl 0x4032dc
push 0x4391fc
lea ecx, [esi + 0x2c]
call fcn.00423fd6
mov edi, dword [esp + 0x18]
test edi, edi
je 0x403375
mov eax, dword [esi + 0x18]
test eax, eax
je 0x403359
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403359
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 0x403397
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403397
push str.Done
jmp 0x40338f
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x403397
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403397
push str.Error
mov ecx, dword [esi + 0x1c]
call fcn.00425189
lea ecx, [esp + 0x20]
mov byte [esp + 0x160], 0
call fcn.00424a98
lea ecx, [esp + 0x2c]
mov dword [esp + 0x160], 0xffffffff
call fcn.00424a98
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