Function at 0x1010d6c7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
push edi
cmp dword [ebx + 0xcdc], ecx
je 0x1010d91c
mov edi, ecx
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x18], ecx
je 0x1010d706
test esi, esi
je 0x1010d91c
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x20]
and eax, 0x100
or eax, 0x20019
push eax
push ecx
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
call fcn.1010d1af
test eax, eax
jne 0x1010d91f
push esi
push dword [ebp + 0x18]
mov ecx, ebx
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
call fcn.1010d29f
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x1010d759
push dword [ebp - 8]
mov ecx, ebx
call fcn.1010cf74
jmp 0x1010d917
test esi, esi
je 0x1010d808
mov eax, dword [esi]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x1010d775
mov eax, ecx
mov dword [ebp - 0xc], ecx
add eax, 2
push 0x1024c714
push eax
mov dword [ebp + 0x1c], eax
call fcn.1012b9b2
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x1010d796
or eax, 0xffffffff
jmp 0x1010d91f
push 0x1024c714
push dword [ebp + 0x1c]
call fcn.1012b9b2
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
jne 0x1010d7b5
push edi
call fcn.1012b7b2
pop ecx
jmp 0x1010d78e
push dword [ebp + 0x1c]
push 0
push edi
call fcn.1012db70
push dword [ebp + 0x1c]
push 0
push dword [ebp - 4]
call fcn.1012db70
add esp, 0x18
mov ecx, ebx
push esi
push edi
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call fcn.1010d29f
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x1010d7fa
push dword [ebp - 8]
mov ecx, ebx
call fcn.1010cf74
jmp 0x1010d8fe
push dword [esi]
push edi
push dword [ebp - 4]
call fcn.1012d5f0
add esp, 0xc
push dword [ebp - 8]
mov ecx, ebx
call fcn.1010cf74
mov dword [ebp + 0x1c], eax
test eax, eax
jne 0x1010d8fe
mov eax, dword [ebp + 0x14]
cmp dword [eax], 2
jne 0x1010d8e8
test esi, esi
je 0x1010d8e8
cmp dword [ebp + 0x20], 0
jl 0x1010d8a2
call fcn.1012998f
cmp dword [eax + 4], 0
je 0x1010d8a2
push str._ProgramFiles_
push edi
call fcn.10116103
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1010d872
push str._ProgramW6432_
call fcn.10130fe5
add eax, eax
push eax
push str._ProgramW6432_
push ebx
call fcn.1012d5f0
add esp, 0x10
jmp 0x1010d842
push str._CommonProgramFiles_
push edi
call fcn.10116103
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1010d8a2
push str._CommonProgramW6432_
call fcn.10130fe5
add eax, eax
push eax
push str._CommonProgramW6432_
push ebx
call fcn.1012d5f0
add esp, 0x10
jmp 0x1010d872
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
inc eax
shr eax, 1
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, eax
mov eax, dword [ebp - 0xc]
lea ecx, [edx + edx]
cmp eax, ecx
jae 0x1010d8d1
cmp dword [ebp + 0x18], 0
mov dword [esi], ecx
je 0x1010d8fe
mov dword [ebp + 0x1c], 0xea
jmp 0x1010d8fe
cmp dword [ebp - 0x10], 0
jne 0x1010d8db
mov dword [esi], eax
jmp 0x1010d8eb
cmp dword [ebp - 0x14], ecx
je 0x1010d8eb
test edx, edx
je 0x1010d8eb
mov dword [esi], ecx
jmp 0x1010d8eb
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1010d8fe
push dword [esi]
push ebx
push eax
call fcn.1012d5f0
add esp, 0xc
test edi, edi
je 0x1010d909
push edi
call fcn.1012b7b2
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x1010d917
push eax
call fcn.1012b7b2
pop ecx
mov eax, dword [ebp + 0x1c]
jmp 0x1010d91f
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x1c