Function at 0x10c4993
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 0x10c49f7
cmp word [eax + 0x30], cx
je 0x10c49f7
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 0x1011c84
push dword [ebx + 0xc]
mov dword [ebp - 0x42c], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10c4a79
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x434]
push eax
push 0x1011d98
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.010a63e5
test eax, eax
je 0x10c4a79
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.010b51f9
test ax, ax
jne 0x10c4f28
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x5c]
test byte [eax + 0x10], 0x80
je 0x10c4ab5
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 [0x10eec40], 0
mov dword [ebp - 0x424], eax
mov ebx, 0x208
jne 0x10c4b2d
push ebx
push 0x10ee830
push 0x1012b00
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
mov dword [0x10ee828], eax
je 0x10c4b26
cmp eax, ebx
ja 0x10c4b26
push 0x3a
push 0x10ee830
call edi
test eax, eax
pop ecx
pop ecx
je 0x10c4b2d
add eax, 0xfffffffe
push eax
mov dword [0x10eec40], eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov dword [0x10ee828], eax
jmp 0x10c4b2d
and dword [0x10ee828], 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 0x10c4c93
add eax, 2
push 0x1012ae4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10c4bc5
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x1012aa8
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 0x10c4ccf
test eax, eax
je 0x10c4ccf
add eax, 0xfffffffe
push eax
add ebx, 0xfffffffe
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
jmp 0x10c4cc1
mov eax, dword [ebp - 0x41c]
add eax, 2
push 0x1012a98
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10c4c93
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x1012a5c
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 0x10c4ccf
test eax, eax
je 0x10c4ccf
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 0x10c4ccf
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x1012a28
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 0x10129e8
call edi
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10c4ccf
push 0x3a
push dword [ebp - 0x418]
call edi
test eax, eax
pop ecx
pop ecx
je 0x10c4ccf
mov ecx, dword [0x10eec40]
test ecx, ecx
je 0x10c4ccf
push dword [0x10ee828]
add eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10c4ccf
mov dword [ebp - 0x420], 1
test byte [esi + 0x41], 0x40
jne 0x10c4cee
mov eax, dword [ebp - 0x440]
cmp word [eax + 0x30], 0
je 0x10c4cee
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [ebp - 0x420], 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
je 0x10c4d12
or dword [esi + 0x80], 0xffffffff
push 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10c4dd8
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.010a6a34
cmp dword [esi + 0x80], 0xffffffff
jne 0x10c4de1
cmp ax, 0xfe05
jne 0x10c4d9a
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.010a6a34
cmp dword [esi + 0x80], 0xffffffff
jne 0x10c4de1
cmp ax, 0xfe05
jne 0x10c4dd8
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.010a6a34
cmp dword [esi + 0x80], 0xffffffff
je 0x10c4ded
and dword [ebp - 0x41c], 0
jmp 0x10c4ee0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call fcn.010a6a34
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x428]
mov eax, dword [eax + 4]
test byte [eax + 0x60], 0x80
jne 0x10c4ee0
cmp ebx, 0x20
je 0x10c4e25
cmp ebx, 0x4c8
jne 0x10c4ee0
push dword [ebp - 0x418]
push eax
call fcn.01099a6d
test ax, ax
je 0x10c4e3f
mov word [esi + 0x88], 1
push 0x1011cb8
push dword [ebp - 0x418]
call fcn.010ad678
test eax, eax
mov dword [ebp - 0x420], eax
je 0x10c4ee0
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 0x10c4ead
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 0x10c4ed3
mov edi, dword [ebp - 0x420]
push edi
push dword [ebp - 0x418]
call fcn.010b3b8a
mov dword [esi + 0x84], edi
jmp 0x10c4de1
push dword [ebp - 0x420]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x428]
call fcn.010b4b1b
xor ebx, ebx
cmp word [ebp - 0x41c], bx
je 0x10c4fb7
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.010b51f9
test ax, ax
je 0x10c4f31
or ax, 0xffff
jmp 0x10c4fba
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push 8
push 0x1011dd4
push dword [ebp - 0x418]
call esi
add esp, 0xc
test eax, eax
jne 0x10c4f62
add dword [ebp - 0x418], 0xc
mov eax, dword [ebp - 0x418]
mov dword [eax], 0x5c005c
jmp 0x10c4f7f
push 4
push 0x1005db4
push dword [ebp - 0x418]
call esi
add esp, 0xc
test eax, eax
jne 0x10c4f7f
add dword [ebp - 0x418], 8
push dword [ebp - 0x418]
push 0x232f
push edi
push ebx
push dword [ebp - 0x428]
call fcn.010892e6
push dword [ebp - 0x428]
call fcn.010b4b1b
xor eax, eax
cmp word [ebp - 0x41c], 0xfe30
sete al
add eax, 0xfffffe3f
jmp 0x10c4fba
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret