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

Disassembly:
push ebp
lea ebp, [esp - 0x10064]
mov eax, 0x10064
call fcn.005fab70
push 0xffffffffffffffff
push 0x65287a
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x758f44]
xor eax, ebp
mov dword [ebp + 0x10060], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10070]
lea eax, [ebp + 0x60]
push 0xfffe
xor ebx, ebx
push ebx
push eax
call fcn.0060ecf0
add esp, 0xc
lea eax, [ebp + 0x60]
push 0x7fff
push eax
push str.PATH
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
jne 0x4b1090
push ecx
lea ecx, [ebp - 0xac]
call fcn.004506fd
lea ecx, [ebp + 0x30]
mov dword [ebp - 4], ebx
call fcn.004a3b30
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.0045195f
mov edx, 0x6fbb88
mov ecx, eax
call fcn.00451714
mov edx, str.ERROR_cant_read_the_existing_path__r_n
mov ecx, eax
call fcn.00451714
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], bl
call fcn.004511a7
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00450fef
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x48]
call fcn.004add46
lea edx, [ebp + 0x48]
mov ecx, edi
call fcn.0045195f
push edi
call fcn.00451a1a
pop ecx
lea ecx, [ebp + 0x48]
call fcn.004511a7
lea ecx, [ebp - 0xac]
jmp 0x4b1277
cmp word [ebp + eax*2 + 0x5e], 0x3b
je 0x4b10a5
push 0x6fe5cc
lea ecx, [ebp + 0x60]
call fcn.004b0b2e
mov esi, dword [ebp + 0x1006c]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4b10b5
mov eax, dword [esi]
push eax
lea ecx, [ebp + 0x60]
call fcn.004b0b2e
lea eax, [ebp + 0x60]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push ecx
lea ecx, [ebp - 0xac]
test eax, eax
jne 0x4b1139
call fcn.004506fd
lea ecx, [ebp + 0x30]
mov dword [ebp - 4], 3
call fcn.004a3b30
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xac]
call fcn.0045195f
mov edx, 0x6fbb88
mov ecx, eax
call fcn.00451714
mov edx, str.ERROR_cant_set_the_PATH__r_n
mov ecx, eax
call fcn.00451714
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 3
call fcn.004511a7
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00450fef
mov byte [ebp - 4], 5
jmp 0x4b1064
call fcn.004506fd
lea ecx, [ebp + 0x30]
mov dword [ebp - 4], 6
call fcn.004a3b30
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xac]
call fcn.0045195f
mov ebx, 0x6fbb88
mov ecx, eax
mov edx, ebx
call fcn.00451714
mov edx, str.Folder_successfully_added_to_PATH:
mov ecx, eax
call fcn.00451714
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 6
call fcn.004511a7
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00450fef
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 8
call fcn.004add46
lea edx, [ebp + 0x48]
mov ecx, edi
call fcn.0045195f
push edi
call fcn.00451a1a
pop ecx
lea ecx, [ebp + 0x48]
call fcn.004511a7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.0044ec83
push ecx
lea ecx, [ebp - 0x144]
call fcn.004506fd
lea ecx, [ebp]
mov dword [ebp - 4], 9
call fcn.004a3b30
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x144]
call fcn.0045195f
mov edx, ebx
mov ecx, eax
call fcn.00451714
cmp dword [esi + 0x14], 8
mov ebx, eax
mov edx, esi
jb 0x4b1208
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp + 0x18]
call fcn.0048a47c
mov edx, eax
mov byte [ebp - 4], 0xb
mov ecx, ebx
call fcn.0045195f
lea ecx, [ebp + 0x18]
call fcn.004511a7
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.004511a7
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp - 0x140]
call fcn.00450fef
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xc
call fcn.004add46
lea edx, [ebp + 0x30]
mov ecx, edi
call fcn.0045195f
push edi
call fcn.00451a1a
pop ecx
lea ecx, [ebp + 0x30]
call fcn.004511a7
lea ecx, [ebp - 0x144]
call fcn.0044ec83
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10060]
xor ecx, ebp
call fcn.005f9dd5
add ebp, 0x10064
leave
ret 8