Function at 0x67ec50
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x67ec59
mov eax, dword [ebp - 4]
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2028], ebx
mov dword [ebp - 0x201c], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x67ef4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040b9a4
mov eax, 0x80000002
call fcn.0067ec18
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x67ef1d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, edi
mov eax, dword [ebp - 0x14]
call fcn.004e0ac4
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.004e0c20
test al, al
je 0x67ef05
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.004e16a0
test al, al
je 0x67ef05
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, esi
call fcn.0040c8a8
mov edi, eax
push edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, dword [ebp - 0x10]
dec eax
je 0x67ed20
dec eax
je 0x67ed31
add eax, 0xfffffffe
sub eax, 2
jb 0x67ed74
dec eax
je 0x67ed8a
jmp 0x67edf6
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.004e14a0
jmp 0x67eefd
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.004e14a0
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x2016]
push eax
mov eax, dword [ebx]
call fcn.0040c8a8
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x67eefd
mov eax, ebx
lea edx, [ebp - 0x2016]
call fcn.0040c908
jmp 0x67eefd
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.004e151c
mov edx, ebx
call fcn.0042a094
jmp 0x67eefd
mov eax, ebx
call fcn.0040b9a4
cmp dword [ebp - 0xc], 0xffffffff
jle 0x67eefd
mov eax, dword [ebp - 0xc]
call fcn.00407300
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x67edef
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040c908
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67eefd
mov eax, dword [ebp - 8]
call fcn.00407334
pop eax
jmp eax
mov eax, ebx
call fcn.0040b9a4
cmp dword [ebp - 0xc], 0xffffffff
jle 0x67eefd
mov eax, dword [ebp - 0xc]
call fcn.00407300
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x67eef6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.004e154c
cmp byte [ebp + 0xc], 0
je 0x67ee97
mov esi, dword [ebp - 0xc]
dec esi
test esi, esi
jl 0x67ee80
inc esi
xor edi, edi
lea eax, [ebp - 0x201c]
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi]
mov dword [ebp - 0x2024], eax
mov byte [ebp - 0x2020], 0
lea edx, [ebp - 0x2024]
xor ecx, ecx
mov eax, 0x67ef68
call fcn.0042b64c
mov edx, dword [ebp - 0x201c]
mov eax, ebx
call fcn.0040cab4
inc edi
dec esi
jne 0x67ee42
mov eax, dword [ebx]
test eax, eax
je 0x67ee8b
sub eax, 4
mov eax, dword [eax]
mov edx, eax
dec edx
mov eax, ebx
call fcn.0040ca34
jmp 0x67eede
mov esi, dword [ebp - 0xc]
dec esi
test esi, esi
jl 0x67eede
inc esi
xor edi, edi
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi]
sub al, 0x20
jae 0x67eebb
mov eax, ebx
mov edx, 0x67ef84
call fcn.0040cab4
jmp 0x67eeda
lea eax, [ebp - 0x2028]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi]
call fcn.0040c8b8
mov edx, dword [ebp - 0x2028]
mov eax, ebx
call fcn.0040cab4
inc edi
dec esi
jne 0x67eea2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67eefd
mov eax, dword [ebp - 8]
call fcn.00407334
pop eax
jmp eax
mov eax, dword [ebp - 0x14]
call fcn.004e0a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67ef24
mov eax, dword [ebp - 0x14]
call fcn.00409b80
pop eax
jmp eax