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

Disassembly:
push 0xffffffffffffffff
push 0x42dd8c
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 0x4032e1
test ebx, ebx
je 0x4032e1
mov eax, dword [esi + 0x34]
test byte [eax + ebp + 8], 0x10
jne 0x4032c6
lea ebx, [esi + 0x30]
push edi
mov ecx, ebx
call fcn.00403ce0
mov ecx, eax
call fcn.004033f0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0042487d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40302f
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40302f
mov ecx, dword [esi + 0x24]
push ecx
push edi
mov ecx, ebx
call fcn.00403ce0
mov ecx, eax
call fcn.004033f0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0042487d
lea edx, [esp + 0x30]
mov ecx, esi
push edx
call fcn.004037a0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 2
call fcn.00424bf5
lea ecx, [esp + 0x28]
mov byte [esp + 0x160], 1
call fcn.00424b08
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x1c]
push eax
call fcn.004251f9
mov edx, dword [esi + 0x54]
mov ecx, esi
inc edx
mov dword [esi + 0x54], edx
call fcn.00403400
mov ecx, esi
call fcn.00403470
mov ecx, esi
call fcn.004034f0
test eax, eax
je 0x403059
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 0x4032c6
cmp eax, 0xffffffff
jne 0x40308b
xor eax, eax
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov ecx, esp
mov dword [esp + 0x14], esp
jmp 0x4030d7
test al, 6
je 0x4030a8
mov eax, dword [esi + 0x10]
xor edi, edi
cmp eax, edi
jne 0x4030aa
mov eax, dword [esi + 0x50]
mov dword [esp + 0x14], edi
dec eax
mov dword [esi + 0x50], eax
jmp 0x4032c6
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 0x4030ed
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], edi
cmp eax, edi
jne 0x4030ed
push ecx
mov dword [esp + 0x18], edi
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Delete_failed
call fcn.00424b76
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
jmp 0x4032c6
cmp dword [esi + 0x28], edi
jne 0x40319c
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 0x403152
mov dword [esp + 0x14], esp
push str.Delete_failed
call fcn.00424b76
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 0x40312f
mov dword [esp + 0x14], edi
lea edi, [esi + 0x2c]
push 0x4391fc
mov ecx, edi
call fcn.00424e98
mov eax, dword [esi + 0x34]
lea ecx, [eax + ebp + 4]
push ecx
mov ecx, edi
call fcn.00424ed4
jmp 0x4032c6
mov dword [esp + 0x14], esp
push str.Delete_successful
call fcn.00424b76
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
cmp dword [esi + 0x14], edi
je 0x4032c6
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push eax
call fcn.00403ce0
mov ecx, eax
call fcn.004033f0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0042487d
mov ecx, esi
call fcn.00403520
jmp 0x4032c6
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.0042487d
push 0xa
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 3
call fcn.00424eec
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.00424f3b
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 0x403274
mov dword [esp + 0x14], esp
push str.Delete_failed
call fcn.00424b76
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 0x403254
mov dword [esp + 0x14], edi
lea edi, [esi + 0x2c]
push 0x4391fc
mov ecx, edi
call fcn.00424e98
mov ecx, dword [esi + 0x34]
lea edx, [ecx + ebp + 4]
mov ecx, edi
push edx
call fcn.00424ed4
jmp 0x4032b5
mov dword [esp + 0x14], esp
push str.Delete_successful
call fcn.00424b76
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esi + 0x14], edi
je 0x4032b5
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.00403ce0
mov ecx, eax
call fcn.004033f0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0042487d
mov ecx, esi
call fcn.00403520
lea ecx, [esp + 0x24]
mov byte [esp + 0x160], 1
call fcn.00424b08
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 0x402f82
mov eax, dword [esi + 0x38]
xor edi, edi
test eax, eax
jle 0x403329
xor ebp, ebp
test ebx, ebx
je 0x403329
mov edx, dword [esi + 0x34]
test byte [edx + ebp + 8], 0x10
je 0x40331e
push edi
lea ecx, [esi + 0x30]
call fcn.00403ce0
mov ecx, eax
call fcn.004033f0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0042487d
mov ecx, esi
call fcn.00403650
mov eax, dword [esi + 0x38]
inc edi
add ebp, 0x38
cmp edi, eax
jl 0x4032ec
push 0x4391fc
lea ecx, [esi + 0x2c]
call fcn.00424046
mov edi, dword [esp + 0x18]
test edi, edi
je 0x403385
mov eax, dword [esi + 0x18]
test eax, eax
je 0x403369
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403369
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 0x4033a7
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4033a7
push str.Done
jmp 0x40339f
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4033a7
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4033a7
push str.Error
mov ecx, dword [esi + 0x1c]
call fcn.004251f9
lea ecx, [esp + 0x20]
mov byte [esp + 0x160], 0
call fcn.00424b08
lea ecx, [esp + 0x2c]
mov dword [esp + 0x160], 0xffffffff
call fcn.00424b08
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