Function at 0x10c4fcc
Capabilities:
Check if file exists
Create directory
Get file attributes
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
push ebx
xor ecx, ecx
cmp word [eax + 0x8c], cx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
je 0x10c510b
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], cx
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, 0x104
jne 0x10c5023
push edi
push 0x10ed9f0
push 0x1012d18
call esi
push edi
push 0x10edbf8
push 0x1012a5c
call esi
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], 0
mov ebx, 0x1012cc8
jne 0x10c503b
push edi
push 0x10ee210
push ebx
call esi
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], 0
jne 0x10c505b
push edi
push 0x10ee008
push 0x1012c48
call esi
push edi
push 0x10ede00
push ebx
call esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x10ee00e
push dword [eax + 0x18]
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10c508d
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
push 0x10ee216
push dword [eax + 0x18]
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10c5099
mov eax, dword [ebp - 0xc]
mov word [eax + 0x90], 1
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], 0
jne 0x10c50b0
push edi
push 0x10ee418
push 0x1012bb8
call esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
push 0x10ee41e
push dword [eax + 0x18]
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10c50d2
mov eax, dword [ebp - 0xc]
mov word [eax + 0x92], 1
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], 0
jne 0x10c50e9
push edi
push 0x10ee620
push 0x1012b50
call esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
push 0x10ee626
push dword [eax + 0x18]
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10c510b
mov eax, dword [ebp - 0xc]
mov word [eax + 0x94], 1
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], LoadLibraryW
mov eax, dword [eax + 0x5c]
push 0x1010884
push dword [eax + 0x14]
call dword [sym.imp.msvcrt.dll_wcscmp]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
mov ebx, eax
mov eax, dword [edi + 0x7c]
mov eax, dword [eax + 0x18]
neg ebx
sbb ebx, ebx
push 0x10ed9f6
push eax
inc ebx
mov dword [ebp - 4], eax
call esi
add esp, 0x10
test eax, eax
jne 0x10c5162
mov dword [ebp - 4], 0x10edbfc
jmp 0x10c5189
push 0x10ee216
push dword [ebp - 4]
call esi
test eax, eax
pop ecx
pop ecx
je 0x10c5182
push 0x10ee00e
push dword [ebp - 4]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10c5189
mov dword [ebp - 4], 0x10ede04
push 0x1011c86
push dword [ebp - 4]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10c51b9
mov esi, 0x1011c84
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push dword [ebp + 8]
call fcn.010a7824
jmp 0x10c5482
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push eax
mov dword [ebp - 0x1c], eax
call esi
test eax, eax
pop ecx
je 0x10c53da
xor eax, eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.010b51f9
test ax, ax
jne 0x10c540e
mov ax, word [edi + 0x84]
test al, 0x11
jne 0x10c521a
test al, 2
je 0x10c521a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx + 0x9c]
shr ecx, 0x16
and ecx, 1
push ecx
push 1
push 0
push eax
call fcn.010a5e02
push dword [ebp - 4]
call esi
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x7c]
push dword [eax + 0x18]
call esi
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
call esi
push dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0x18]
sub edi, eax
call esi
mov ecx, dword [ebp - 4]
movsx edi, di
add esp, 0x10
lea eax, [ecx + eax*2]
shl edi, 1
jmp 0x10c52a0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10c52a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x10], 0
cmp eax, 0xb7
je 0x10c52a7
test bx, bx
jne 0x10c5284
cmp eax, 5
jne 0x10c5284
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10c52a7
push 0x5c
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x10c5356
and word [eax], 0
mov ecx, dword [ebp - 4]
lea edx, [edi + ecx]
cmp eax, edx
ja 0x10c524e
push dword [ebp - 4]
call esi
cmp ax, word [ebp - 0x14]
pop ecx
jae 0x10c5310
push dword [ebp - 4]
call esi
mov ecx, dword [ebp - 4]
mov word [ecx + eax*2], 0x5c
push dword [ebp - 4]
call esi
cmp ax, word [ebp - 0x14]
pop ecx
pop ecx
jne 0x10c52e3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x5c]
cmp dword [eax + 0x28], 0
je 0x10c52e3
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10c5309
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10c5309
push eax
call fcn.010a6a34
mov dword [ebp - 8], eax
cmp word [ebp - 8], 0
je 0x10c52a7
cmp word [ebp - 8], 0
jne 0x10c53da
push 4
push 0x1004204
push dword [ebp + 8]
call fcn.010a7824
test ax, ax
mov dword [ebp - 8], eax
jne 0x10c5395
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
mov edi, dword [eax + 0x18]
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x10ed9f6
push edi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10c535f
mov edi, 0x10edbfe
jmp 0x10c5380
mov dword [ebp - 8], 0xfffffe05
jmp 0x10c53da
push 0x10ee216
push edi
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10c537b
push 0x10ee00e
push edi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10c5380
mov edi, 0x10ede06
push edi
call esi
pop ecx
lea eax, [eax + eax + 2]
push eax
push edi
push dword [ebp + 8]
call fcn.010a78cc
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x4000
test ecx, eax
je 0x10c53b0
mov eax, dword [ebp - 0xc]
mov word [eax + 0x30], 1
mov eax, dword [ebp + 0xc]
test dword [eax + 0x40], ecx
je 0x10c53c9
test byte [eax + 0x16], 2
jne 0x10c53da
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x10c53da
test byte [eax + 0x16], 2
jne 0x10c53da
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
push dword [ebp + 8]
call fcn.010b4b1b
xor edi, edi
cmp word [ebp - 8], di
je 0x10c547f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 1
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.010b51f9
test ax, ax
je 0x10c5414
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10c5482
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push 8
push 0x1011dd4
push dword [ebp - 4]
call esi
add esp, 0xc
test eax, eax
jne 0x10c543c
add dword [ebp - 4], 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 0x5c005c
jmp 0x10c5453
push 4
push 0x1005db4
push dword [ebp - 4]
call esi
add esp, 0xc
test eax, eax
jne 0x10c5453
add dword [ebp - 4], 8
push dword [ebp - 4]
push 0x232f
push ebx
push edi
push dword [ebp + 8]
call fcn.010892e6
push dword [ebp + 8]
call fcn.010b4b1b
xor eax, eax
cmp word [ebp - 8], 0xfe30
sete al
add eax, 0xfffffe3f
jmp 0x10c5482
xor ax, ax
pop edi
pop esi
pop ebx
leave
ret 8