Function at 0x4198c0
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 0x42e420
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43b050]
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.00415260
test eax, eax
je 0x419c8d
mov esi, dword [eax + 0x18]
add esi, 8
je 0x419c8d
push str.dcur
push esi
call fcn.0042aed3
add esp, 8
test eax, eax
jne 0x419a58
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov esi, str.subkey
mov byte [ebp - 4], 1
call fcn.00415260
test eax, eax
je 0x4199ac
mov eax, dword [eax + 0x18]
add eax, 8
je 0x4199ac
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.004049c0
add esp, 4
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004032d0
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 0x4199ac
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.00415260
xor esi, esi
cmp eax, esi
je 0x419a03
mov ecx, dword [eax + 0x18]
add ecx, 8
cmp ecx, esi
je 0x419a03
lea edx, [ebp - 0x18]
push edx
call fcn.004049c0
add esp, 4
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004032d0
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 0x419a03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], esi
je 0x419a4c
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0xc], esi
je 0x419a4c
push 0x80000001
lea edx, [ebp - 0x28]
push edx
mov eax, 0x20006
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.004043f0
mov esi, dword [ebp - 0x28]
test eax, eax
jne 0x419a41
mov eax, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x419a4c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
jmp 0x419c4e
push str.cdir
push esi
call fcn.0042aed3
add esp, 8
test eax, eax
jne 0x419b60
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 4
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
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.00415260
test eax, eax
je 0x419b32
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x419b32
cmp byte [ecx], 0
je 0x419b32
lea edx, [ebp - 0x18]
push edx
call fcn.004049c0
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 0x419af8
mov eax, edi
lea ecx, [ebp - 0x10]
call fcn.00403e20
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 8], edi
jge 0x419b07
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.004038d0
lea esi, [ebp - 0x10]
call fcn.00403890
cmp dword [ebx - 0xc], 0
je 0x419b54
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]
jmp 0x419c4e
push str.rdir
push esi
call fcn.0042aed3
add esp, 8
test eax, eax
jne 0x419c8d
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 7
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x14]
mov esi, str.file
call fcn.00415260
test eax, eax
je 0x419c3a
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x419c3a
cmp byte [ecx], 0
je 0x419c3a
lea edx, [ebp - 0x1c]
push edx
call fcn.004049c0
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 0x419c00
mov eax, edi
lea ecx, [ebp - 0x10]
call fcn.00403e20
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 8], edi
jge 0x419c0f
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 - 0x1c]
mov byte [ebp - 4], 8
call fcn.004038d0
lea esi, [ebp - 0x10]
call fcn.00403890
cmp dword [ebx - 0xc], 0
je 0x419c47
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 7
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 0x419c6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419c8d
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