Function at 0x100db2a1
Capabilities:
Query environment variable

Disassembly:
push 0x64
mov eax, 0x101163c3
call fcn.10062c32
mov edi, ecx
mov eax, dword [edi + 0x4c]
cmp dword [eax], 0
jne 0x100db2c0
and dword [edi + 0x68], 0
jmp 0x100db4a5
xor ebx, ebx
cmp dword [edi + 0x68], ebx
jne 0x100db4a5
push dword [eax]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.100786bc
push esi
call fcn.100dae72
test al, al
jne 0x100db2ee
mov eax, dword [edi + 0x4c]
mov eax, dword [eax]
mov dword [edi + 0x68], eax
jmp 0x100db4a5
cmp dword [esi + 0x14], 8
jb 0x100db2f6
mov esi, dword [esi]
mov eax, dword [edi + 0x18]
mov dword [edi + 0x68], esi
mov ecx, dword [eax]
test ecx, ecx
je 0x100db3e5
mov eax, dword [edi + 0x70]
test dword [eax], 0x400
jne 0x100db3e5
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x4c]
push ecx
mov esi, dword [eax]
lea eax, [ebp - 0x70]
push eax
mov ecx, esi
call fcn.10080745
mov edx, eax
mov ecx, esi
call fcn.100786bc
test eax, eax
je 0x100db3d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
push dword [ebp - 0x70]
mov ebx, 0x1000599c
mov dword [ebp - 0x4c], ebx
call fcn.100786bc
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x30]
call fcn.100db797
cmp dword [ebp - 0x30], 0
je 0x100db3be
cmp dword [ebp - 0x14], 0x10
jb 0x100db38f
cmp dword [ebp - 0x28], 0
je 0x100db3be
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x64]
call fcn.100786bc
lea eax, [ebp - 0x64]
lea esi, [edi + 0x34]
push eax
mov ecx, esi
call fcn.100786bc
lea ecx, [ebp - 0x64]
call fcn.1006b804
cmp dword [esi + 0x14], 0x10
jb 0x100db3b9
mov esi, dword [esi]
mov eax, dword [edi + 0x18]
mov dword [eax], esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], ebx
call fcn.1006b804
mov dword [ebp - 0x4c], 0x100059a8
lea ecx, [ebp - 0x70]
call fcn.10074e3b
lea ecx, [ebp - 0x30]
call fcn.100d9bdd
jmp 0x100db4a5
xor eax, eax
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ecx, ecx
jne 0x100db410
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x100db410
mov byte [ebp - 0x2c], 1
mov dword [ebp - 4], 4
mov eax, dword [edi + 0x4c]
mov eax, dword [eax]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
mov ebx, 0x100059dc
push eax
mov dword [ebp - 0x4c], ebx
call fcn.100786bc
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x30]
call fcn.100db82b
cmp dword [ebp - 0x30], 0
je 0x100db48b
cmp dword [ebp - 0x14], 8
jb 0x100db453
cmp dword [ebp - 0x28], 0
je 0x100db48b
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x64]
call fcn.100786bc
lea eax, [ebp - 0x64]
lea esi, [edi + 0x1c]
push eax
mov ecx, esi
call fcn.100786bc
lea ecx, [ebp - 0x64]
call fcn.1006af06
cmp dword [esi + 0x14], 8
jb 0x100db47d
mov esi, dword [esi]
mov eax, dword [edi + 0x18]
mov dword [eax], esi
mov eax, dword [edi + 0x70]
or dword [eax], 0x400
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], ebx
call fcn.1006af06
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x4c], 0x100059d0
call fcn.100d9c04
call fcn.10062bca
ret