Function at 0x1003d970
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1013771e
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x101ba518]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov eax, dword [0x101ba518]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], eax
cmp dword [ebp + 8], ebx
jle 0x1003dfde
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x1003dfc9
xor ecx, ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], cx
mov dword [esp + 0x148], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ecx
mov word [esp + 0x30], cx
mov byte [esp + 0x148], 1
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x4c]
push ecx
push eax
call fcn.1003e010
mov esi, edx
mov edi, eax
mov ecx, esi
xor eax, eax
and ecx, 0x80
or eax, ecx
jne 0x1003da95
mov byte [esp + 0x148], 0
cmp dword [esp + 0x44], 8
jb 0x1003da59
push dword [esp + 0x30]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov dword [esp + 0x148], 0xffffffff
cmp dword [esp + 0x5c], 8
jb 0x1003da8e
push dword [esp + 0x48]
call fcn.10115284
add esp, 4
xor eax, eax
jmp 0x1003dfa6
cmp dword [esp + 0x40], 0x7fff
jbe 0x1003dd4f
push 0x4f
xor eax, eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea ecx, [esp + 0x7c]
push str.The_value_for__1__is_longer_than_32767_characters__cant_process._Value_is:__2_
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
call fcn.10009290
mov byte [esp + 0x148], 2
xor eax, eax
xor ecx, ecx
mov word [esp + 0x60], ax
cmp word [str.VEnv], cx
mov eax, 4
mov dword [esp + 0x70], 0
cmove eax, ecx
mov dword [esp + 0x74], 0
push eax
push str.VEnv
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
call fcn.10009290
mov byte [esp + 0x148], 3
call fcn.10010ed0
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x100]
push eax
call fcn.10036150
mov esi, eax
mov byte [esp + 0x148], 4
lea ecx, [esp + 0x90]
push 0x1f
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
push str.VEnvVarRewriter::try_set_envVar
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], 0
mov byte [esp + 0x98], 0
call fcn.1000b360
mov byte [esp + 0x148], 5
mov dword [esp + 0xa8], 0x52
mov byte [esp + 0x148], 6
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.1002c7f0
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.1002c7f0
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.10035690
mov byte [esp + 0x148], 7
lea ecx, [esp + 0x90]
push eax
lea eax, [esp + 0x64]
push eax
push 4
call fcn.10036260
mov byte [esp + 0x148], 6
cmp dword [esp + 0x2c], 8
jb 0x1003dc1e
push dword [esp + 0x18]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov byte [esp + 0x148], 4
cmp dword [esp + 0xa4], 0x10
jb 0x1003dc56
push dword [esp + 0x90]
call fcn.10115284
add esp, 4
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
mov byte [esp + 0x148], 3
mov dword [esp + 0xfc], vtable.AppV::LogFormatter.0
mov byte [esp + 0x148], 3
cmp dword [esp + 0x118], 8
jb 0x1003dca8
push dword [esp + 0x104]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], 0
mov word [esp + 0x104], ax
mov byte [esp + 0x148], 2
cmp dword [esp + 0x74], 8
jb 0x1003dce3
push dword [esp + 0x60]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], ax
mov byte [esp + 0x148], 1
cmp dword [esp + 0x8c], 8
jb 0x1003dd18
push dword [esp + 0x78]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], ax
call fcn.1003d8f0
mov edi, eax
mov esi, edx
or edi, 0xb000a
or esi, 0xa0a
jmp 0x1003da3e
cmp byte [ebp + 0x10], 0
je 0x1003dd65
cmp dword [esp + 0x44], 8
lea ecx, [esp + 0x30]
cmovae ecx, dword [esp + 0x30]
jmp 0x1003dd67
xor ecx, ecx
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
push ecx
cmovae eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x1003df4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.The_Windows_API_setEnvironmentVariable___failed._Error_code:__1_
lea ecx, [esp + 0xc8]
mov dword [esp + 0x14], eax
call fcn.100062a0
mov byte [esp + 0x148], 0xa
lea ecx, [esp + 0xac]
push str.VEnv
call fcn.100062a0
mov byte [esp + 0x148], 0xb
call fcn.10010ed0
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.10036150
mov edi, eax
mov byte [esp + 0x148], 0xc
lea ecx, [esp + 0x11c]
push 0x5e
push str.VEnvVarRewriter::try_set_envVar
call fcn.100361d0
mov esi, eax
mov byte [esp + 0x148], 0xd
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.100116c0
push edi
lea eax, [esp + 0xb0]
mov ecx, esi
push eax
push 1
call fcn.100363f0
mov byte [esp + 0x148], 0xc
cmp dword [esp + 0x130], 0x10
jb 0x1003de41
push dword [esp + 0x11c]
call fcn.10115284
add esp, 4
mov dword [esp + 0x130], 0xf
mov dword [esp + 0x12c], 0
mov byte [esp + 0x11c], 0
mov byte [esp + 0x148], 0xb
mov dword [esp + 0xdc], vtable.AppV::LogFormatter.0
mov byte [esp + 0x148], 0xb
cmp dword [esp + 0xf8], 8
jb 0x1003de93
push dword [esp + 0xe4]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0xf8], 7
mov dword [esp + 0xf4], 0
mov word [esp + 0xe4], ax
mov byte [esp + 0x148], 0xa
cmp dword [esp + 0xc0], 8
jb 0x1003ded4
push dword [esp + 0xac]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], 0
mov word [esp + 0xac], ax
mov byte [esp + 0x148], 1
cmp dword [esp + 0xd8], 8
jb 0x1003df15
push dword [esp + 0xc4]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], 0
mov word [esp + 0xc4], ax
call fcn.1003d8f0
mov edi, eax
mov esi, edx
or edi, dword [esp + 0x10]
or esi, 0xb2a
jmp 0x1003da3e
mov byte [esp + 0x148], 0
cmp dword [esp + 0x44], 8
jb 0x1003df68
push dword [esp + 0x30]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov dword [esp + 0x148], 0xffffffff
cmp dword [esp + 0x5c], 8
jb 0x1003df9d
push dword [esp + 0x48]
call fcn.10115284
add esp, 4
xor eax, eax
mov esi, 0x80
xor edi, edi
mov word [esp + 0x48], ax
mov ecx, esi
and ecx, 0x80
mov dword [esp + 0x58], 0
xor eax, eax
mov dword [esp + 0x5c], 7
or eax, ecx
je 0x1003dfd8
inc ebx
cmp ebx, dword [ebp + 8]
jge 0x1003dfde
mov eax, dword [esp + 0x14]
jmp 0x1003d9c2
mov eax, edi
mov edx, esi
jmp 0x1003dfe5
xor eax, eax
mov edx, 0x80
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.10115289
mov esp, ebp
pop ebp
ret 0xc