Function at 0x10c4ada
Capabilities:
Create directory
Delete file
Query environment variable
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x10de03c]
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xc]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x34]
mov esi, edx
mov dword [ebp - 0x430], ecx
xor ecx, ecx
mov edi, 0x4000
test dword [esi + 0x40], edi
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x438], 0x80
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x420], ecx
jne 0x10c4b3e
cmp word [eax + 0x30], cx
je 0x10c4b3e
mov dword [ebp - 0x438], 4
mov eax, dword [esi + 0x7c]
mov word [esi + 0x88], cx
mov dword [esi + 0x84], ecx
mov eax, dword [eax + 0x18]
push 0x1011c9c
push dword [ebx + 0xc]
mov dword [ebp - 0x42c], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10c4bc0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x434]
push eax
push 0x1011db0
push dword [ebp - 0x42c]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0x14
push dword [ebp - 0x424]
push dword [ebp - 0x41c]
push dword [ebp - 0x434]
push ebx
call fcn.010a65a0
test eax, eax
je 0x10c4bc0
mov eax, dword [eax + 0x10]
and dword [ebp - 0x42c], 0
mov dword [ebp - 0x430], eax
push 0
push 0
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x42c]
push dword [ebp - 0x430]
push ebx
call fcn.010b5387
test ax, ax
jne 0x10c506f
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x5c]
test byte [eax + 0x10], 0x80
je 0x10c4bfc
mov dword [ebp - 0x43c], 0x200000
mov eax, dword [esi + 0x40]
and eax, edi
mov edi, dword [sym.imp.msvcrt.dll_wcschr]
neg eax
sbb eax, eax
and eax, 0x400f0183
add eax, 0xc10d0000
cmp dword [0x10eec48], 0
mov dword [ebp - 0x424], eax
mov ebx, 0x208
jne 0x10c4c74
push ebx
push 0x10ee838
push 0x1012b18
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
mov dword [0x10ee830], eax
je 0x10c4c6d
cmp eax, ebx
ja 0x10c4c6d
push 0x3a
push 0x10ee838
call edi
test eax, eax
pop ecx
pop ecx
je 0x10c4c74
add eax, 0xfffffffe
push eax
mov dword [0x10eec48], eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov dword [0x10ee830], eax
jmp 0x10c4c74
and dword [0x10ee830], 0
push 0x5c
push dword [ebp - 0x418]
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x41c], eax
je 0x10c4dda
add eax, 2
push 0x1012afc
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10c4d0c
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x1012ac0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x414]
push 0x3a
push eax
call edi
push 0x3a
push dword [ebp - 0x418]
mov ebx, eax
call edi
add esp, 0x18
test ebx, ebx
je 0x10c4e16
test eax, eax
je 0x10c4e16
add eax, 0xfffffffe
push eax
add ebx, 0xfffffffe
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
jmp 0x10c4e08
mov eax, dword [ebp - 0x41c]
add eax, 2
push 0x1012ab0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10c4dda
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x1012a74
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x414]
push 0x3a
push eax
call edi
push 0x3a
push dword [ebp - 0x418]
mov dword [ebp - 0x434], eax
call edi
mov ecx, dword [ebp - 0x434]
add esp, 0x18
test ecx, ecx
je 0x10c4e16
test eax, eax
je 0x10c4e16
add eax, 0xfffffffe
push eax
add ecx, 0xfffffffe
push ecx
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10c4e16
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x1012a40
call edi
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x1012a00
call edi
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10c4e16
push 0x3a
push dword [ebp - 0x418]
call edi
test eax, eax
pop ecx
pop ecx
je 0x10c4e16
mov ecx, dword [0x10eec48]
test ecx, ecx
je 0x10c4e16
push dword [0x10ee830]
add eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10c4e16
mov dword [ebp - 0x420], 1
test byte [esi + 0x41], 0x40
jne 0x10c4e35
mov eax, dword [ebp - 0x440]
cmp word [eax + 0x30], 0
je 0x10c4e35
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
je 0x10c4e59
or dword [esi + 0x80], 0xffffffff
push 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10c4f1f
mov ebx, dword [ebp - 0x43c]
or ebx, dword [ebp - 0x438]
push 0
or ebx, 0xa000000
push ebx
push 2
push 0
push 7
push dword [ebp - 0x424]
push dword [ebp - 0x418]
call edi
mov dword [esi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010a6bef
cmp dword [esi + 0x80], 0xffffffff
jne 0x10c4f28
cmp ax, 0xfe05
jne 0x10c4ee1
push 0x80
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push ebx
push 2
push 0
push 7
push dword [ebp - 0x424]
push dword [ebp - 0x418]
call edi
mov dword [esi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010a6bef
cmp dword [esi + 0x80], 0xffffffff
jne 0x10c4f28
cmp ax, 0xfe05
jne 0x10c4f1f
mov eax, dword [ebp - 0x424]
push 0
push ebx
push 2
push 0
push 7
and eax, 0xfeffffff
push eax
push dword [ebp - 0x418]
call edi
mov dword [esi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010a6bef
cmp dword [esi + 0x80], 0xffffffff
je 0x10c4f34
and dword [ebp - 0x41c], 0
jmp 0x10c5027
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call fcn.010a6bef
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x428]
mov eax, dword [eax + 4]
test byte [eax + 0x60], 0x80
jne 0x10c5027
cmp ebx, 0x20
je 0x10c4f6c
cmp ebx, 0x4c8
jne 0x10c5027
push dword [ebp - 0x418]
push eax
call fcn.01099bfb
test ax, ax
je 0x10c4f86
mov word [esi + 0x88], 1
push reloc.ADVAPI32.dll_CloseServiceHandle
push dword [ebp - 0x418]
call fcn.010ad833
test eax, eax
mov dword [ebp - 0x420], eax
je 0x10c5027
mov eax, dword [ebp - 0x43c]
or eax, dword [ebp - 0x438]
mov ebx, eax
xor eax, eax
push eax
or ebx, 0xa000000
push ebx
push 4
push eax
push eax
push 0xc10c0000
push dword [ebp - 0x420]
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x80], eax
jne 0x10c4ff4
push 0
push ebx
push 4
push 0
push 7
push 0xc00c0000
push dword [ebp - 0x420]
call edi
mov dword [esi + 0x80], eax
cmp dword [esi + 0x80], 0xffffffff
je 0x10c501a
mov edi, dword [ebp - 0x420]
push edi
push dword [ebp - 0x418]
call fcn.010b3d18
mov dword [esi + 0x84], edi
jmp 0x10c4f28
push dword [ebp - 0x420]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x428]
call fcn.010b4ca9
xor ebx, ebx
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], bx
je 0x10c50fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 1
mov edi, eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x42c]
push dword [ebp - 0x430]
push dword [ebp - 0x428]
call fcn.010b5387
test ax, ax
je 0x10c5078
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10c5101
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push 8
push 0x1011dec
push dword [ebp - 0x418]
call esi
add esp, 0xc
test eax, eax
jne 0x10c50a9
add dword [ebp - 0x418], 0xc
mov eax, dword [ebp - 0x418]
mov dword [eax], 0x5c005c
jmp 0x10c50c6
push 4
push 0x1005db4
push dword [ebp - 0x418]
call esi
add esp, 0xc
test eax, eax
jne 0x10c50c6
add dword [ebp - 0x418], 8
push dword [ebp - 0x418]
push 0x232f
push edi
push ebx
push dword [ebp - 0x428]
call fcn.01089474
push dword [ebp - 0x428]
call fcn.010b4ca9
xor eax, eax
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0xfe30
sete al
add eax, 0xfffffe3f
jmp 0x10c5101
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret