Function at 0x41cf50
Capabilities:
Create directory
Delete directory
Delete file
Delete registry value
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431a60
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43e0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ebx, [ecx + 0x2c]
mov esi, str.name
mov edi, ebx
mov dword [ebp - 0x14], ebx
call fcn.00418960
test eax, eax
je 0x41d359
mov esi, dword [eax + 0x18]
add esi, 8
je 0x41d359
push str.dcur
push esi
call fcn.0042e5d1
add esp, 8
test eax, eax
jne 0x41d0e7
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov esi, str.subkey
mov byte [ebp - 4], 1
call fcn.00418960
test eax, eax
je 0x41d03c
mov eax, dword [eax + 0x18]
add eax, 8
je 0x41d03c
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.004082c0
add esp, 4
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004048a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d03c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, str.keyname
mov edi, ebx
call fcn.00418960
xor esi, esi
cmp eax, esi
je 0x41d093
mov ecx, dword [eax + 0x18]
add ecx, 8
cmp ecx, esi
je 0x41d093
lea edx, [ebp - 0x18]
push edx
call fcn.004082c0
add esp, 4
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004048a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d093
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
cmp dword [ebx - 0xc], esi
je 0x41d0db
cmp dword [edi - 0xc], esi
je 0x41d0db
lea ecx, [ebp - 0x28]
push ecx
mov edx, 0x20006
mov eax, ebx
mov ecx, 0x80000001
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.00405c00
mov esi, dword [ebp - 0x28]
test eax, eax
jne 0x41d0d0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x41d0db
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea eax, [edi - 0x10]
jmp 0x41d321
push str.cdir
push esi
call fcn.0042e5d1
add esp, 8
test eax, eax
jne 0x41d232
mov edx, dword [0x43e060]
mov eax, dword [edx + 0xc]
mov ecx, 0x43e060
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 4
mov edx, dword [0x43e060]
mov eax, dword [edx + 0xc]
mov ecx, 0x43e060
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x14]
mov esi, str.file
call fcn.00418960
test eax, eax
je 0x41d1c1
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x41d1c1
cmp byte [ecx], 0
je 0x41d1c1
lea edx, [ebp - 0x18]
push edx
call fcn.004082c0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 6
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x41d187
mov eax, edi
lea ecx, [ebp - 0x10]
call fcn.004055c0
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 8], edi
jge 0x41d196
push 0x80070057
call fcn.00401540
xor eax, eax
mov dword [ebx - 0xc], edi
push edi
mov word [ebx + 0x208], ax
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00404f80
lea esi, [ebp - 0x10]
call fcn.00404ec0
cmp dword [ebx - 0xc], 0
je 0x41d1e3
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d206
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d359
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x41d359
push str.rdir
push esi
call fcn.0042e5d1
add esp, 8
test eax, eax
jne 0x41d359
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 7
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x14]
mov esi, str.file
call fcn.00418960
test eax, eax
je 0x41d30a
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x41d30a
cmp byte [ecx], 0
je 0x41d30a
lea eax, [ebp - 0x1c]
push eax
call fcn.004082c0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 9
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x41d2d0
mov eax, edi
lea ecx, [ebp - 0x10]
call fcn.004055c0
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 8], edi
jge 0x41d2df
push 0x80070057
call fcn.00401540
mov dword [ebx - 0xc], edi
xor ecx, ecx
push edi
mov word [ebx + 0x208], cx
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00404f80
lea esi, [ebp - 0x10]
call fcn.00404ec0
cmp dword [ebx - 0xc], 0
je 0x41d317
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d33a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d359
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret