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

Disassembly:
mov eax, 0x1060b19
call fcn.01036ab0
sub esp, 0x814
mov eax, dword [0x1067a40]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 0x10], eax
jne 0x102fd7c
push 0x100a9e4
push ebx
push 0xa
push esi
call fcn.0102dac0
mov eax, dword [esi]
add esp, 0x10
cmp eax, ebx
je 0x102fd75
or byte [esi + 0x3a], 0x10
push ebx
push ebx
push 0xc
push dword [esi + 4]
call eax
xor eax, eax
jmp 0x102ffb9
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x81c], eax
and dword [ebp - 0x81c], 2
push edi
mov dword [esi + 0x64], eax
mov dword [ebp - 0x814], ebx
mov dword [ebp - 0x818], ebx
je 0x102fddb
lea eax, [ebp - 0x818]
push eax
push ebx
push 1
call fcn.0102bafd
push eax
mov ecx, esi
call fcn.0102c595
cmp eax, ebx
mov dword [ebp - 0x814], eax
je 0x102fdcd
push eax
push 0x10046b4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x102fdd3
mov dword [ebp - 0x818], ebx
cmp dword [ebp - 0x814], ebx
jne 0x102fe27
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebx
push ebx
push 0x10046b4
call edi
cmp eax, ebx
mov dword [ebp - 0x820], eax
je 0x102fe27
push eax
call fcn.01037daf
cmp eax, ebx
pop ecx
mov dword [ebp - 0x814], eax
je 0x102fe27
push dword [ebp - 0x820]
push eax
push 0x10046b4
call edi
cmp eax, dword [ebp - 0x820]
jbe 0x102fe27
lea eax, [ebp - 0x814]
push eax
call fcn.010213af
push dword [ebp - 0x814]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0102de16
test byte [esi + 0x64], 0x10
je 0x102fed8
mov eax, dword [0x10691dc]
cmp eax, ebx
mov edi, 0x800
je 0x102fe62
push edi
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.01021459
jmp 0x102fe68
mov byte [ebp - 0x810], bl
push edi
lea eax, [ebp - 0x810]
push eax
push 0x1001fbc
push 0x8e
call fcn.01024870
test al, al
je 0x102fed8
mov eax, dword [0x10691dc]
cmp eax, ebx
je 0x102febd
lea edi, [ebp - 0x810]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x102feb4
cmp cl, bl
je 0x102feb0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x102feb4
inc eax
inc eax
inc edi
inc edi
cmp cl, bl
jne 0x102fe92
xor eax, eax
jmp 0x102feb9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x102fed8
push 0x10691dc
call fcn.010213af
lea eax, [ebp - 0x810]
push eax
call fcn.0102313c
mov dword [0x10691dc], eax
push dword [esi + 0x50]
mov ecx, esi
mov byte [esi + 0x60], bl
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
call fcn.0102cdfc
mov eax, dword [esi]
cmp eax, ebx
je 0x102fefd
push ebx
push ebx
push 4
push dword [esi + 4]
call eax
push 0x8c
call fcn.01044700
pop ecx
mov dword [ebp - 0x820], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x102ff20
mov ecx, eax
call fcn.010133e2
mov edi, eax
jmp 0x102ff22
xor edi, edi
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
jne 0x102ff39
push ebx
push ebx
push 1
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_RaiseException]
push dword [ebp + 0x10]
mov ecx, dword [esi + 0x50]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 1
call fcn.0102bafd
push eax
push esi
mov ecx, edi
call fcn.0101645b
cmp dword [ebp - 0x81c], ebx
mov dword [esi + 0x68], eax
je 0x102ff7a
cmp dword [ebp - 0x818], ebx
je 0x102ff7a
push dword [ebp - 0x818]
push 0x10046b4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea eax, [ebp - 0x814]
push eax
call fcn.010213af
cmp dword [esi + 0x68], ebx
jne 0x102ffb5
cmp dword [edi + 0x1c], ebx
jne 0x102ff94
or byte [esi + 0x3a], 0x10
mov ecx, edi
call fcn.01016047
push edi
call fcn.01044729
mov eax, dword [esi]
cmp eax, ebx
pop ecx
je 0x102ffb1
push ebx
push ebx
push 0xc
push dword [esi + 4]
call eax
xor eax, eax
jmp 0x102ffb8
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01032376
leave
ret 0xc