Function at 0x409ef0
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x544d31
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x409f63
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40a1da
mov eax, dword [esp + 0x64]
cmp dword [eax - 0xc], ebx
jne 0x409f73
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x38]
call fcn.00418ed1
push 0x56f65c
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x68], 1
call fcn.0040db20
add esp, 0xc
mov byte [esp + 0x5c], 2
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.00418f66
mov esi, eax
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409fd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x40a18b
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x38]
call fcn.00418bd5
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.004191e5
mov byte [esp + 0x5c], 3
mov eax, dword [eax]
push 0x56f660
or ebx, 1
push eax
mov dword [esp + 0x24], ebx
call fcn.0050585b
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40a052
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
call fcn.004191e5
mov eax, dword [eax]
push 0x56f664
push eax
or ebx, 2
call fcn.0050585b
add esp, 8
test eax, eax
sete al
mov byte [esp + 0x1b], 0
test al, al
je 0x40a057
mov byte [esp + 0x1b], 1
test bl, 2
je 0x40a083
mov eax, dword [esp + 0x20]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x1c], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a083
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x5c], 1
test bl, 1
je 0x40a0b3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a0b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
jne 0x40a183
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00419159
mov eax, dword [eax]
push 0x80
push eax
call edi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a0f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x3c]
call eax
test eax, eax
je 0x40a150
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
lea ecx, [esp + 0x40]
call fcn.00419159
mov ecx, dword [esp + 0x30]
call fcn.00409ef0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x3c]
call fcn.00419159
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40a177
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00419159
mov eax, dword [eax]
push eax
call ebp
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a183
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x409fe5
lea ecx, [esp + 0x38]
call fcn.00418aef
mov ecx, dword [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0
call fcn.00418ef7
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a1d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4