Function at 0x417e40
Capabilities:
Delete directory
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x482e8a
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4a4720]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [esp + 0x270]
mov ecx, dword [esp + 0x274]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x260], 0
mov eax, dword [esp + 0x268]
cmp dword [eax - 0xc], 0
jne 0x417ed7
add eax, 0xfffffff0
mov dword [esp + 0x260], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417ed0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41829d
lea ecx, [esp + 0x30]
call fcn.0044fe8f
mov byte [esp + 0x260], 1
call fcn.004440b8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417f02
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
push 0x48ebe8
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x26c], 2
call fcn.004073c0
add esp, 0xc
mov byte [esp + 0x260], 3
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.0044ff27
mov esi, eax
mov byte [esp + 0x260], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417f74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4181d3
lea esp, [esp]
lea ecx, [esp + 0x30]
call fcn.0044fb8f
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
mov ebx, eax
call fcn.004501b7
mov esi, eax
push 0x49151c
lea edx, [esp + 0x26c]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x26c], 4
call fcn.004073c0
add esp, 0xc
push esi
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x26c], 5
call fcn.0040d8d0
add esp, 0xc
mov byte [esp + 0x260], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x418033
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x418021
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x418021
push eax
call fcn.00401fe0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x418018
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebp + 0x10]
mov dword [esp + 0x1c], edi
jmp 0x418033
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00401da0
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x260], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41805b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x260], 4
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 0x418083
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x260], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4180ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
call fcn.0044fe50
test eax, eax
jne 0x4181cb
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x34]
call eax
test eax, eax
je 0x41810e
mov eax, dword [esp + 0x26c]
test eax, eax
je 0x4181cb
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x58], esp
mov esi, esp
push eax
call fcn.00401fe0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00417e40
add esp, 0x10
jmp 0x4181cb
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x38]
push 1
lea ecx, [esp + 0x34]
call edx
test eax, eax
je 0x418133
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebp
test eax, eax
jne 0x4181cb
push 0x206
push eax
lea ecx, [esp + 0x56]
push ecx
mov word [esp + 0x58], ax
call fcn.00464a00
mov eax, dword [esp + 0x274]
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
push 0
push 0x4914c8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4181cb
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
lea ecx, [esp + 0x50]
push ecx
push edi
call esi
test eax, eax
jne 0x4181a8
lea edx, [esp + 0x4c]
push edx
call ebp
push 4
push 0
push edi
call esi
mov eax, dword [esp + 0x18]
mov dword [eax], 1
jmp 0x4181cb
lea ecx, [esp + 0x4c]
push ecx
call ebp
test eax, eax
jne 0x4181cb
push 2
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 4
push 0
lea eax, [esp + 0x54]
push eax
call esi
test ebx, ebx
jne 0x417f80
lea ecx, [esp + 0x30]
call fcn.0044faa9
mov ecx, dword [esp + 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x418207
and eax, 0xfffffffe
jne 0x4181f8
mov eax, 0x80
mov edx, dword [esp + 0x268]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x418238
mov ecx, dword [esp + 0x268]
push 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [esp + 0x18]
mov esi, eax
mov dword [edx], 1
lea eax, [edi - 0x10]
mov byte [esp + 0x260], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41825c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x260], 0
call fcn.0044feb8
mov dword [esp + 0x260], 0xffffffff
mov eax, dword [esp + 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41829b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00461706
add esp, 0x250
ret