Function at 0x100694f0
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10187036
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x102d5908]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x14]
push 0xb
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x1c]
push 0x102d7edc
push eax
call dword [sym.imp.MSVCR120.dll_strncpy]
push 0x103
lea eax, [ebp - 0x37b]
mov byte [ebp - 0x37c], 0
push 0
push eax
call sub.MSVCR120.dll_memset
push esi
push dword [ebp - 0x424]
lea eax, [ebp - 0x37c]
push edi
push str._s_s_s
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
push 0x103
lea eax, [ebp - 0x277]
mov byte [ebp - 0x278], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0x38
push 0x104
push str.ProgramData
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
push eax
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.MSVCR120.dll_strncpy]
lea eax, [ebp - 0x420]
push eax
call fcn.10157560
xor ecx, ecx
add esp, 0x10
cmp byte [ebp - 0x37c], cl
je 0x100695e0
lea eax, [ebp - 0x37c]
lea eax, [eax + 1]
inc ecx
cmp byte [eax], 0
jne 0x100695d7
push ecx
lea eax, [ebp - 0x37c]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.100f8350
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.100f8230
add esp, 0x14
lea edi, [ebp - 0x70]
xor esi, esi
lea esp, [esp]
movzx eax, byte [ebp + esi - 0x4c]
push eax
push str._02x
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x10069610
xor ecx, ecx
cmp byte [ebp - 0x1c], cl
je 0x1006964a
lea eax, [ebp - 0x1c]
mov dl, byte [eax]
cmp dl, 0x20
je 0x10069644
mov byte [ebp + ecx - 0x1c], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x10069638
push 6
mov byte [ebp + ecx - 0x1c], 0
lea ecx, [ebp - 0x394]
push str.mantra
mov dword [ebp - 0x380], 0xf
mov dword [ebp - 0x384], 0
mov byte [ebp - 0x394], 0
call fcn.10050790
cmp byte [0x102d7eda], 0
mov dword [ebp - 4], 0
je 0x1006969e
push 0xb
push str.mantra_risl
lea ecx, [ebp - 0x394]
call fcn.10050790
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x3c4]
push 0x10192634
push eax
call fcn.10058d60
push str.crd_b_
push eax
lea eax, [ebp - 0x3ac]
mov byte [ebp - 4], 1
push eax
call fcn.10058b30
add esp, 0x18
cmp dword [ebp - 0x3b0], 0x10
jb 0x100696e6
push dword [ebp - 0x3c4]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x398], 0x10
lea edx, [ebp - 0x3ac]
xorps xmm0, xmm0
mov byte [ebp - 0x3c], 0
cmovae edx, dword [ebp - 0x3ac]
xor ecx, ecx
movdqu xmmword [ebp - 0x3b], xmm0
mov dword [ebp - 0x23], 0
movq qword [ebp - 0x2b], xmm0
mov word [ebp - 0x1f], 0
mov byte [ebp - 0x1d], 0
cmp byte [edx], cl
je 0x1006972d
mov eax, edx
lea eax, [eax + 1]
inc ecx
cmp byte [eax], 0
jne 0x10069724
mov esi, dword [sym.imp.MSVCR120.dll_strncpy_s]
lea eax, [ecx + 1]
push ecx
push edx
push eax
lea eax, [ebp - 0x3c]
push eax
call esi
push 0x103
lea eax, [ebp - 0x173]
mov byte [ebp - 0x174], 0
push 0
push eax
call sub.MSVCR120.dll_memset
xor ecx, ecx
add esp, 0x1c
cmp byte [ebp - 0x278], cl
je 0x10069779
lea eax, [ebp - 0x278]
lea esp, [esp]
lea eax, [eax + 1]
inc ecx
cmp byte [eax], 0
jne 0x10069770
push ecx
lea eax, [ebp - 0x278]
push eax
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x174]
push eax
call esi
lea edx, [ebp - 0x3c]
add esp, 0x10
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10069796
lea edi, [ebp - 0x174]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100697a6
mov ecx, edx
lea eax, [ebp - 0x174]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.MSVCR120.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x1006985f
cmp dword [ebp - 0x380], 0x10
lea eax, [ebp - 0x394]
cmovae eax, dword [ebp - 0x394]
push eax
lea eax, [ebp - 0x278]
push eax
push 0x10192638
push 0x104
lea eax, [ebp - 0x174]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll__snprintf_s]
mov edi, dword [sym.imp.MSVCR120.dll__mkdir]
lea eax, [ebp - 0x174]
push eax
call edi
mov esi, dword [sym.imp.MSVCR120.dll_strcat_s]
lea eax, [ebp - 0x174]
push str.crd
push 0x104
push eax
call esi
lea eax, [ebp - 0x174]
push eax
call edi
push 0x10192648
lea eax, [ebp - 0x174]
push 0x104
push eax
call esi
lea eax, [ebp - 0x174]
push eax
call edi
add esp, 0x3c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x174]
push eax
push 0x1019264c
push dword [ebp - 0x428]
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
cmp dword [ebp - 0x398], 0x10
jb 0x10069895
push dword [ebp - 0x3ac]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x380], 0x10
mov dword [ebp - 0x398], 0xf
mov dword [ebp - 0x39c], 0
mov byte [ebp - 0x3ac], 0
jb 0x100698c7
push dword [ebp - 0x394]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018427c
mov esp, ebp
pop ebp
ret