Function at 0x10003eb0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023560
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10034034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [0x10035934], 0
je 0x10003efd
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x1000
or eax, ecx
jge 0x10003f3b
push 0x1000
lea ecx, [ebp - 0x10]
call fcn.10004850
mov edi, dword [ebp - 0x10]
push 0x1000
push edi
push str.Path
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
or ebx, 0xffffffff
test ecx, ecx
jne 0x10003f64
cmp dword [edi - 8], eax
jge 0x10003fd7
push 0x80070057
call fcn.10003dd0
cmp ecx, 0x1000
ja 0x10003f77
push ecx
lea ecx, [ebp - 0x10]
call fcn.100046b0
jmp 0x10003fed
cmp dword [edi - 8], 0x1000
jl 0x10003f5a
xor eax, eax
mov dword [edi - 0xc], 0x1000
mov word [edi + 0x2000], ax
mov eax, dword [esi]
mov esi, dword [eax - 0xc]
inc esi
add esi, ecx
jns 0x10003fa4
push 0x80070057
call fcn.10003dd0
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x10003fc1
push esi
lea ecx, [ebp - 0x10]
call fcn.10004850
mov edi, dword [ebp - 0x10]
push esi
push edi
push str.Path
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x10003fea
cmp dword [edi - 8], eax
jl 0x10003f5a
xor eax, eax
mov dword [edi - 0xc], 0
mov word [edi], ax
xor esi, esi
jmp 0x10004132
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
test eax, eax
jne 0x10003ff8
or esi, 0xffffffff
jmp 0x1000401d
cmp dword [edi - 0xc], 0
jge 0x10004003
or esi, 0xffffffff
jmp 0x1000401d
push eax
push edi
call dword [sym.imp.MSVCR110.dll_wcsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10004019
or esi, 0xffffffff
jmp 0x1000401d
sub esi, edi
sar esi, 1
cmp dword [edi - 0xc], 0
jg 0x10004028
or eax, 0xffffffff
jmp 0x10004041
push 0x3b
push edi
call dword [sym.imp.MSVCR110.dll_wcschr]
add esp, 8
test eax, eax
jne 0x1000403d
or eax, 0xffffffff
jmp 0x10004041
sub eax, edi
sar eax, 1
cmp esi, 0xffffffff
je 0x1000404e
cmp esi, eax
jle 0x1000412d
mov edx, dword [ebp - 0x14]
push 0x10026ccc
lea ecx, [ebp - 0x18]
call fcn.100045d0
lea ecx, [ebp - 0x10]
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10004510
add esp, 8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.100044a0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100040a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100040c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
push edi
push str.Path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x1000412d
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push 0x10026cd0
push eax
call fcn.10004b20
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esi, 0xfffffff0
add esp, 0x10
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10004129
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x10004132
mov esi, 1
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x10004150
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret