Function at 0x100d78df
Capabilities:
Set environment variable

Disassembly:
push 0xa4
mov eax, 0x10115eb9
call fcn.10062c32
mov eax, dword [ebp + 8]
xor edx, edx
push 7
pop ebx
xor ecx, ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], ebx
mov word [ebp - 0x70], cx
mov dword [ebp - 4], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x58], cx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
call fcn.100d7571
mov edi, edx
xor ecx, ecx
mov esi, edi
mov ebx, eax
and esi, 0x80
or ecx, esi
je 0x100d7b49
cmp dword [ebp - 0x48], 0x7fff
jbe 0x100d7a2a
push 0x1003accc
lea ecx, [ebp - 0x8c]
call fcn.100786bc
mov dword [ebp - 0x74], 0x55
mov byte [ebp - 4], 2
call fcn.1006c4b2
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
push 7
pop ebx
xor eax, eax
mov dword [ebp - 0x2c], ebx
push 0x1003acf0
mov word [ebp - 0x40], ax
call fcn.100786bc
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.100786bc
mov esi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.1008145d
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.1008145d
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], ebx
push 0x1001df4c
mov word [ebp - 0x28], ax
call fcn.100786bc
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
push 4
lea ecx, [ebp - 0x8c]
call fcn.10081090
lea ecx, [ebp - 0x28]
call fcn.1006af06
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xac], 0x10002e5c
call fcn.1006af06
lea ecx, [ebp - 0x40]
call fcn.1006af06
lea ecx, [ebp - 0x8c]
call fcn.1006b804
call fcn.100d6eca
or eax, 0xb000a
or edx, 0xa0a
mov ebx, eax
mov edi, edx
jmp 0x100d7b49
cmp byte [ebp + 0xc], 0
je 0x100d7a3e
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
jb 0x100d7a40
mov eax, dword [ebp - 0x58]
jmp 0x100d7a40
xor eax, eax
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
jb 0x100d7a4c
mov ecx, dword [ebp - 0x70]
push eax
push ecx
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x100d7b42
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x1003accc
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xb0], eax
call fcn.100786bc
mov dword [ebp - 0x74], 0x61
mov byte [ebp - 4], 6
call fcn.1006c4b2
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push 7
pop ebx
xor eax, eax
mov dword [ebp - 0x14], ebx
push 0x1003ade0
mov word [ebp - 0x28], ax
call fcn.100786bc
lea eax, [ebp - 0x28]
mov byte [ebp - 4], bl
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.100786bc
mov esi, eax
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 8
push eax
mov ecx, esi
call fcn.1006e1ed
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x2c], ebx
push 0x1001df4c
mov word [ebp - 0x40], ax
call fcn.100786bc
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 9
push eax
push 1
lea ecx, [ebp - 0x8c]
call fcn.10081090
lea ecx, [ebp - 0x40]
call fcn.1006af06
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xac], 0x10002e5c
call fcn.1006af06
lea ecx, [ebp - 0x28]
call fcn.1006af06
lea ecx, [ebp - 0x8c]
call fcn.1006b804
call fcn.100d6eca
or eax, dword [ebp - 0xb0]
or edx, 0xc2a
jmp 0x100d7a21
xor ebx, ebx
mov edi, 0x80
lea ecx, [ebp - 0x58]
call fcn.1006af06
lea ecx, [ebp - 0x70]
call fcn.1006af06
mov eax, ebx
mov edx, edi
call fcn.10062bca
ret 8