Function at 0x401390
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421690
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x42ab14]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00402550
test al, al
je 0x40177b
lea ecx, [esp + 0x34]
call fcn.00403024
push str..
lea eax, [esp + 0x1c]
push edi
push eax
mov dword [esp + 0x64], 0
call fcn.00401d50
add esp, 0xc
mov byte [esp + 0x58], 1
mov ecx, dword [esp + 0x18]
push 0
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040310a
or ebx, 0xffffffff
test eax, eax
je 0x4015cd
lea ecx, [esp + 0x34]
call fcn.00402cbf
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], eax
call fcn.00402fc2
test eax, eax
jne 0x4015c2
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x38]
call eax
test eax, eax
jne 0x401508
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x38]
call fcn.00403491
mov esi, eax
push 0x425d04
lea edx, [esp + 0x24]
push edi
push edx
mov byte [esp + 0x64], 2
call fcn.00401d50
push esi
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x70], 3
call fcn.00402490
add esp, 0x18
mov byte [esp + 0x58], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4016a7
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4015b6
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x38]
call fcn.00403491
mov esi, eax
push 0x425d04
lea edx, [esp + 0x2c]
push edi
push edx
mov byte [esp + 0x64], 8
call fcn.00401d50
push esi
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x70], 9
call fcn.00402490
add esp, 0x18
mov byte [esp + 0x58], 0xb
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401565
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 0xc
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401589
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401390
add esp, 4
mov byte [esp + 0x58], 1
test al, al
mov eax, dword [esp + 0x1c]
je 0x40172f
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4015c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x30], 0
jne 0x401412
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4015f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x58], ebx
call fcn.00403057
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x401790
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [esp + 0x20]
call fcn.004023a0
lea ecx, [esp + 0x30]
push str.RemoveDirectory
push ecx
mov ecx, esi
mov dword [esp + 0x60], 0xd
call fcn.00401e30
mov eax, dword [eax]
add esp, 8
push 0
push str.st_delete:st_menu
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40166d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40177b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [esp + 0x1c]
call fcn.004023a0
lea ecx, [esp + 0x30]
push 0x425d08
push ecx
mov ecx, esi
mov byte [esp + 0x60], 7
call fcn.00401e30
mov eax, dword [eax]
add esp, 8
push 0
push str.st_delete:st_menu
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401702
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401726
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40174a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40176e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x58], ebx
call fcn.00403057
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret