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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
push esi
push edi
mov esi, eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x24], ecx
xor ecx, ecx
mov edi, 0x4000
test dword [esi + 0x40], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x80
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
jne 0x10b5b0e
cmp word [eax + 0x30], cx
je 0x10b5b0e
mov dword [ebp - 0x20], 4
mov eax, dword [esi + 0x7c]
mov word [esi + 0x88], cx
mov dword [esi + 0x84], ecx
mov eax, dword [eax + 0x18]
push 0x1011c24
push dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10b5b72
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1011d38
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0x14
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0x1c]
push ebx
call fcn.01099d30
test eax, eax
je 0x10b5b72
mov eax, dword [eax + 0x10]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x24], eax
push 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push ebx
call fcn.010a7a67
test ax, ax
jne 0x10b5f89
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x5c]
test byte [eax + 0x10], 0x80
je 0x10b5ba2
mov dword [ebp - 0x18], 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 [0x10df3f8], 0
mov dword [ebp - 0x10], eax
mov ebx, 0x208
jne 0x10b5c17
push ebx
push 0x10defe8
push 0x1012aa0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
mov dword [0x10defe0], eax
je 0x10b5c10
cmp eax, ebx
ja 0x10b5c10
push 0x3a
push 0x10defe8
call edi
test eax, eax
pop ecx
pop ecx
je 0x10b5c17
add eax, 0xfffffffe
push eax
mov dword [0x10df3f8], eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov dword [0x10defe0], eax
jmp 0x10b5c17
and dword [0x10defe0], 0
push 0x5c
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x10b5d5f
add eax, 2
push 0x1012a84
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10b5ca3
push ebx
lea eax, [ebp - 0x438]
push eax
push 0x1012a48
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 8]
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x438]
push 0x3a
push eax
call edi
push 0x3a
push dword [ebp - 4]
mov ebx, eax
call edi
add esp, 0x18
test ebx, ebx
je 0x10b5d95
test eax, eax
je 0x10b5d95
add eax, 0xfffffffe
push eax
add ebx, 0xfffffffe
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
jmp 0x10b5d8a
mov eax, dword [ebp - 8]
add eax, 2
push 0x1012a38
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10b5d5f
push ebx
lea eax, [ebp - 0x438]
push eax
push 0x10129fc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 8]
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x438]
push 0x3a
push eax
call edi
push 0x3a
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
call edi
mov ecx, dword [ebp - 0x1c]
add esp, 0x18
test ecx, ecx
je 0x10b5d95
test eax, eax
je 0x10b5d95
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 0x10b5d95
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
lea eax, [ebp - 0x438]
push eax
push 0x10129c8
call edi
push 0
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea eax, [ebp - 0x438]
push eax
push 0x1012988
call edi
lea eax, [ebp - 0x438]
mov dword [ebp - 4], eax
jmp 0x10b5d95
push 0x3a
push dword [ebp - 4]
call edi
test eax, eax
pop ecx
pop ecx
je 0x10b5d95
mov ecx, dword [0x10df3f8]
test ecx, ecx
je 0x10b5d95
push dword [0x10defe0]
add eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10b5d95
mov dword [ebp - 0xc], 1
test byte [esi + 0x41], 0x40
jne 0x10b5dae
mov eax, dword [ebp - 0x28]
cmp word [eax + 0x30], 0
je 0x10b5dae
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [ebp - 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
je 0x10b5dcf
or dword [esi + 0x80], 0xffffffff
push 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10b5e76
mov ebx, dword [ebp - 0x18]
or ebx, dword [ebp - 0x20]
push 0
or ebx, 0xa000000
push ebx
push 2
push 0
push 7
push dword [ebp - 0x10]
push dword [ebp - 4]
call edi
mov dword [esi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0109a2fe
cmp dword [esi + 0x80], 0xffffffff
jne 0x10b5e7f
cmp ax, 0xfe05
jne 0x10b5e3e
push 0x80
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push ebx
push 2
push 0
push 7
push dword [ebp - 0x10]
push dword [ebp - 4]
call edi
mov dword [esi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0109a2fe
cmp dword [esi + 0x80], 0xffffffff
jne 0x10b5e7f
cmp ax, 0xfe05
jne 0x10b5e76
mov eax, dword [ebp - 0x10]
push 0
push ebx
push 2
push 0
push 7
and eax, 0xfeffffff
push eax
push dword [ebp - 4]
call edi
mov dword [esi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0109a2fe
cmp dword [esi + 0x80], 0xffffffff
je 0x10b5e88
and dword [ebp - 8], 0
jmp 0x10b5f53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call fcn.0109a2fe
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test byte [eax + 0x60], 0x80
jne 0x10b5f53
cmp ebx, 0x20
je 0x10b5eba
cmp ebx, 0x4c8
jne 0x10b5f53
push dword [ebp - 4]
push eax
call fcn.0108e0a1
test ax, ax
je 0x10b5ed1
mov word [esi + 0x88], 1
push 0x1011c58
push dword [ebp - 4]
call fcn.010a0850
test eax, eax
mov dword [ebp - 0xc], eax
je 0x10b5f53
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x20]
mov ebx, eax
xor eax, eax
push eax
or ebx, 0xa000000
push ebx
push 4
push eax
push eax
push 0xc10c0000
push dword [ebp - 0xc]
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x80], eax
jne 0x10b5f29
push 0
push ebx
push 4
push 0
push 7
push 0xc00c0000
push dword [ebp - 0xc]
call edi
mov dword [esi + 0x80], eax
cmp dword [esi + 0x80], 0xffffffff
je 0x10b5f49
mov edi, dword [ebp - 0xc]
push edi
push dword [ebp - 4]
call fcn.010a64c7
mov dword [esi + 0x84], edi
jmp 0x10b5e7f
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp + 8]
call fcn.010a7422
xor ebx, ebx
cmp word [ebp - 8], bx
je 0x10b5ffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 1
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.010a7a67
test ax, ax
je 0x10b5f8f
or ax, 0xffff
jmp 0x10b5ffd
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push 8
push 0x1011d74
push dword [ebp - 4]
call esi
add esp, 0xc
test eax, eax
jne 0x10b5fb7
add dword [ebp - 4], 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 0x5c005c
jmp 0x10b5fce
push 4
push 0x1005e34
push dword [ebp - 4]
call esi
add esp, 0xc
test eax, eax
jne 0x10b5fce
add dword [ebp - 4], 8
push dword [ebp - 4]
push 0x232f
push edi
push ebx
push dword [ebp + 8]
call fcn.0107f1b8
push dword [ebp + 8]
call fcn.010a7422
xor eax, eax
cmp word [ebp - 8], 0xfe30
sete al
add eax, 0xfffffe3f
jmp 0x10b5ffd
xor ax, ax
pop edi
pop esi
pop ebx
leave
ret 4