Function at 0x10c5113
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 0x10c5252
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], cx
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, 0x104
jne 0x10c516a
push edi
push 0x10ed9f8
push 0x1012d30
call esi
push edi
push 0x10edc00
push 0x1012a74
call esi
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], 0
mov ebx, 0x1012ce0
jne 0x10c5182
push edi
push 0x10ee218
push ebx
call esi
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], 0
jne 0x10c51a2
push edi
push 0x10ee010
push 0x1012c60
call esi
push edi
push 0x10ede08
push ebx
call esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x10ee016
push dword [eax + 0x18]
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10c51d4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
push 0x10ee21e
push dword [eax + 0x18]
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10c51e0
mov eax, dword [ebp - 0xc]
mov word [eax + 0x90], 1
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], 0
jne 0x10c51f7
push edi
push 0x10ee420
push 0x1012bd0
call esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
push 0x10ee426
push dword [eax + 0x18]
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10c5219
mov eax, dword [ebp - 0xc]
mov word [eax + 0x92], 1
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], 0
jne 0x10c5230
push edi
push 0x10ee628
push 0x1012b68
call esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
push 0x10ee62e
push dword [eax + 0x18]
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10c5252
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 0x101089c
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 0x10ed9fe
push eax
inc ebx
mov dword [ebp - 4], eax
call esi
add esp, 0x10
test eax, eax
jne 0x10c52a9
mov dword [ebp - 4], 0x10edc04
jmp 0x10c52d0
push 0x10ee21e
push dword [ebp - 4]
call esi
test eax, eax
pop ecx
pop ecx
je 0x10c52c9
push 0x10ee016
push dword [ebp - 4]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10c52d0
mov dword [ebp - 4], 0x10ede0c
push 0x1011c9e
push dword [ebp - 4]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10c5300
mov esi, 0x1011c9c
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.010a79df
jmp 0x10c55c9
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 0x10c5521
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.010b5387
test ax, ax
jne 0x10c5555
mov ax, word [edi + 0x84]
test al, 0x11
jne 0x10c5361
test al, 2
je 0x10c5361
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.010a5fbd
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 0x10c53e7
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10c53ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x10], 0
cmp eax, 0xb7
je 0x10c53ee
test bx, bx
jne 0x10c53cb
cmp eax, 5
jne 0x10c53cb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10c53ee
push 0x5c
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x10c549d
and word [eax], 0
mov ecx, dword [ebp - 4]
lea edx, [edi + ecx]
cmp eax, edx
ja 0x10c5395
push dword [ebp - 4]
call esi
cmp ax, word [ebp - 0x14]
pop ecx
jae 0x10c5457
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 0x10c542a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x5c]
cmp dword [eax + 0x28], 0
je 0x10c542a
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 0x10c5450
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10c5450
push eax
call fcn.010a6bef
mov dword [ebp - 8], eax
cmp word [ebp - 8], 0
je 0x10c53ee
cmp word [ebp - 8], 0
jne 0x10c5521
push 4
push 0x1004204
push dword [ebp + 8]
call fcn.010a79df
test ax, ax
mov dword [ebp - 8], eax
jne 0x10c54dc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
mov edi, dword [eax + 0x18]
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x10ed9fe
push edi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10c54a6
mov edi, 0x10edc06
jmp 0x10c54c7
mov dword [ebp - 8], 0xfffffe05
jmp 0x10c5521
push 0x10ee21e
push edi
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10c54c2
push 0x10ee016
push edi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10c54c7
mov edi, 0x10ede0e
push edi
call esi
pop ecx
lea eax, [eax + eax + 2]
push eax
push edi
push dword [ebp + 8]
call fcn.010a7a87
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x4000
test ecx, eax
je 0x10c54f7
mov eax, dword [ebp - 0xc]
mov word [eax + 0x30], 1
mov eax, dword [ebp + 0xc]
test dword [eax + 0x40], ecx
je 0x10c5510
test byte [eax + 0x16], 2
jne 0x10c5521
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x10c5521
test byte [eax + 0x16], 2
jne 0x10c5521
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
push dword [ebp + 8]
call fcn.010b4ca9
xor edi, edi
cmp word [ebp - 8], di
je 0x10c55c6
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.010b5387
test ax, ax
je 0x10c555b
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10c55c9
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push 8
push 0x1011dec
push dword [ebp - 4]
call esi
add esp, 0xc
test eax, eax
jne 0x10c5583
add dword [ebp - 4], 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 0x5c005c
jmp 0x10c559a
push 4
push 0x1005db4
push dword [ebp - 4]
call esi
add esp, 0xc
test eax, eax
jne 0x10c559a
add dword [ebp - 4], 8
push dword [ebp - 4]
push 0x232f
push ebx
push edi
push dword [ebp + 8]
call fcn.01089474
push dword [ebp + 8]
call fcn.010b4ca9
xor eax, eax
cmp word [ebp - 8], 0xfe30
sete al
add eax, 0xfffffe3f
jmp 0x10c55c9
xor ax, ax
pop edi
pop esi
pop ebx
leave
ret 8