Function at 0x4586f0
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4ba476
mov eax, dword fs:[0]
push eax
sub esp, 0x844
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x840], eax
push ebp
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x854]
mov dword fs:[0], eax
mov edi, dword [esp + 0x864]
test edi, edi
je 0x45897c
lea ecx, [esp + 0x10]
call fcn.00475e73
push 0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x864], 0
call fcn.00475f0b
lea ecx, [esp + 0x10]
test eax, eax
jne 0x45876b
call fcn.00475a58
jmp 0x458968
call fcn.00475a58
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x44a]
push ecx
mov word [esp + 0x44c], ax
call fcn.00494750
push edi
lea edx, [esp + 0x450]
push str._s.
push edx
call fcn.00496035
add esp, 0x18
push 0
lea eax, [esp + 0x444]
push eax
lea ecx, [esp + 0x18]
call fcn.00475f0b
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x458940
lea ecx, [esp + 0x10]
call fcn.00475b3e
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], eax
call fcn.00475e34
test eax, eax
jne 0x458935
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x242]
push edx
mov word [esp + 0x244], cx
call fcn.00494750
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.0047619b
mov esi, eax
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x85c], 1
jge 0x45883f
push 0x104
mov ecx, esi
call fcn.00401510
mov ecx, dword [esi]
lea edx, [esp + 0x238]
jmp 0x458850
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x458850
mov byte [esp + 0x85c], al
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458888
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x14]
call eax
push 0x206
push 0
test eax, eax
je 0x4588e8
lea edx, [esp + 0x652]
xor ecx, ecx
push edx
mov word [esp + 0x654], cx
call fcn.00494750
lea eax, [esp + 0x244]
push eax
push edi
lea ecx, [esp + 0x65c]
push str._s_s
push ecx
call fcn.00496035
lea edx, [esp + 0x664]
push 1
push edx
call fcn.004586f0
add esp, 0x24
jmp 0x458935
lea ecx, [esp + 0x3a]
xor eax, eax
push ecx
mov word [esp + 0x3c], ax
call fcn.00494750
lea edx, [esp + 0x244]
push edx
push edi
lea eax, [esp + 0x44]
push str._s_s
push eax
call fcn.00496035
add esp, 0x1c
lea ecx, [esp + 0x30]
push ecx
call ebp
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x28], 0
jne 0x4587c4
lea ecx, [esp + 0x10]
call fcn.00475a58
push edi
call ebp
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x868], 0
je 0x458968
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x10]
mov dword [esp + 0x85c], 0xffffffff
call fcn.00475e9c
mov eax, 1
mov ecx, dword [esp + 0x854]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.004945a7
add esp, 0x850
ret