Function at 0x100115e0
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x2a28
call fcn.10018900
push edi
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0x22d]
mov byte [esp + 0x22c], 0
mov byte [esp + 7], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x100236bc]
mov dword [esp + 0xc], 0x80000002
test al, al
jne 0x10011631
push 0x10e
push 0x100236bc
push 0x10023cc4
call dword [0x1001a184]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push 3
push 0
push str.SxqwahZDxnbyM_e_xFscDZuuhoqsrGPWLII_bdKEMJK_0123xECzVB_oDMs_26
push ecx
call dword [0x1001a0cc]
test eax, eax
je 0x10011658
xor al, al
pop edi
add esp, 0x2a28
ret
push ebx
mov ebx, dword [0x1001a37c]
lea edx, [esp + 0x1c]
push ebp
push esi
mov dword [esp + 0x24], 0x100212d0
mov dword [esp + 0x28], 0x100212b0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 2
mov ecx, 0xa00
xor eax, eax
lea edi, [esp + 0x238]
lea edx, [esp + 0x238]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x30]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0x20]
push ecx
push 0
push eax
push edx
mov byte [esp + 0x2a], 0
mov dword [esp + 0x2c], 0x2800
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x1001181a
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x238]
lea esi, [esp + 0x238]
lea ecx, [esp + eax + 0x236]
cmp edx, ecx
jae 0x1001181a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, esi
lea edi, [ecx + esi + 1]
call dword [0x1001a180]
push 0x100212a8
push esi
call ebx
add esp, 8
test eax, eax
je 0x10011719
lea ebp, [eax + 4]
push 0x100212a8
push edi
call ebx
add esp, 8
test eax, eax
je 0x1001172b
lea edi, [eax + 4]
mov byte [esp + 0x134], 0
mov byte [esp + 0x30], 0
cmp byte [ebp], 0
je 0x1001174f
lea eax, [esp + 0x30]
push 0x104
push eax
push ebp
call dword [0x1001a184]
cmp byte [edi], 0
je 0x10011768
lea ecx, [esp + 0x134]
push 0x104
push ecx
push edi
call dword [0x1001a184]
mov ebp, dword [0x1001a320]
lea edx, [esp + 0x30]
push 0x10023cc4
push edx
call ebp
add esp, 8
test eax, eax
je 0x100117a4
lea eax, [esp + 0x134]
push 0x10023cc4
push eax
call ebp
add esp, 8
test eax, eax
je 0x100117a4
push edi
call dword [0x1001a118]
lea esi, [eax + edi + 1]
jmp 0x100117e0
push edi
call dword [0x1001a118]
mov ecx, dword [esp + 0x14]
lea edi, [eax + edi + 1]
sub ecx, edi
lea edx, [esp + ecx + 0x239]
push edx
push edi
push esi
call dword [0x1001a378]
mov ecx, dword [esp + 0x20]
mov eax, esi
sub eax, edi
add esp, 0xc
add ecx, eax
mov byte [esp + 0x12], 1
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x14]
lea ecx, [esp + eax + 0x236]
cmp esi, ecx
jb 0x100116ed
mov cl, byte [esp + 0x12]
test cl, cl
je 0x1001181a
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x23c]
push edx
push 7
mov eax, dword [eax]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ecx, 4
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
jne 0x10011681
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov al, byte [esp + 0x13]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x2a28
ret