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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066247
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x1008bb60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.10041d70
add esp, 0xc
mov dword [ebp - 0x120], 0
push 0x2800
call fcn.1003609f
add esp, 4
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x120], ecx
push str.kinfoc.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x1000217f
mov byte [ebp - 0x22c], 0
push 0x103
push 0
lea edx, [ebp - 0x22b]
push edx
call fcn.10041d70
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
call fcn.100027a0
add esp, 4
push 0x2800
mov ecx, dword [ebp - 0x120]
push ecx
push 0x1006b724
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jbe 0x100020ac
push str.ksoft
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0x238]
call fcn.10002ce0
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x260], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x260]
push ecx
lea edx, [ebp - 0x23c]
push edx
call fcn.10002af0
add esp, 0xc
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x120]
push eax
push str._s__s__s
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.10041cb1
add esp, 0x14
lea ecx, [ebp - 0x23c]
call fcn.100016d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.100016d0
mov edx, dword [ebp - 0x120]
push edx
lea ecx, [ebp - 0x244]
call fcn.10002ce0
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 4], 1
push ecx
mov esi, esp
mov dword [ebp - 0x240], esp
mov ecx, dword [ebp - 0x26c]
push ecx
push str.env_path:
lea ecx, [ebp - 0x248]
call fcn.10002ce0
mov dword [ebp - 0x270], eax
mov edx, dword [ebp - 0x270]
mov dword [ebp - 0x274], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x274]
push eax
push esi
call fcn.10002a40
add esp, 0xc
mov dword [ebp - 0x278], eax
call fcn.1001c670
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.100016d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.100016d0
mov ecx, dword [ebp - 0x120]
push ecx
push str.path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x1006b754
lea edx, [ebp - 0x22c]
push edx
push 0x1006b768
lea eax, [ebp - 0x22c]
push eax
call fcn.10041cb1
add esp, 0x10
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x250]
call fcn.10002ce0
mov dword [ebp - 0x27c], eax
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x280], edx
mov dword [ebp - 4], 3
push ecx
mov esi, esp
mov dword [ebp - 0x24c], esp
mov eax, dword [ebp - 0x280]
push eax
push str.kinfoc_path:
lea ecx, [ebp - 0x254]
call fcn.10002ce0
mov dword [ebp - 0x284], eax
mov ecx, dword [ebp - 0x284]
mov dword [ebp - 0x288], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x288]
push edx
push esi
call fcn.10002a40
add esp, 0xc
mov dword [ebp - 0x28c], eax
call fcn.1001c670
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x254]
call fcn.100016d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.100016d0
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x120], 0
je 0x100021ad
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x258], ecx
mov edx, dword [ebp - 0x258]
push edx
call fcn.1003609a
add esp, 4
mov dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041acb
mov esp, ebp
pop ebp
ret