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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xaf8
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xae8], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0xaf0], esi
mov dword [ebp - 0xae4], 1
jne 0x1069967
xor eax, eax
jmp 0x1069f37
push edi
mov edi, 0x117
push edi
lea ecx, [ebp - 0x6d0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
cmp dword [0x1082a44], esi
pop ecx
lea eax, [ebp - 0x6d0]
je 0x10699a3
push eax
call fcn.01068f43
jmp 0x1069f36
push ebx
push eax
push edi
lea eax, [ebp - 0x234]
push eax
call fcn.01034c79
lea eax, [ebp - 0x234]
push 0x1004144
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
cmp eax, esi
mov ebx, dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
je 0x1069a9c
mov word [eax + 8], si
lea eax, [ebp - 0x234]
push 0x5c
push eax
call ebx
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop ecx
pop ecx
je 0x1069a9a
lea eax, [ebp - 0x234]
push 0x22
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1069a82
add eax, 2
push eax
push 0x103
lea eax, [ebp - 0x43c]
push eax
call fcn.01034c79
lea eax, [ebp - 0x43c]
push 0x22
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x1069a9a
lea eax, [ebp - 0x43c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1069a33
sub eax, edx
sar eax, 1
cmp eax, 8
jbe 0x1069a9a
push dword [ebp - 0x43c]
call dword [sym.imp.msvcrt.dll_iswalpha]
test eax, eax
pop ecx
je 0x1069a9a
cmp word [ebp - 0x43a], 0x3a
jne 0x1069a9a
cmp word [ebp - 0x438], 0x5c
jne 0x1069a9a
lea eax, [ebp - 0x43c]
push eax
push edi
lea eax, [ebp - 0x234]
push eax
call fcn.01034c79
xor esi, esi
inc esi
test esi, esi
je 0x1069a9a
lea eax, [ebp - 0x234]
push eax
call fcn.01056f43
test eax, eax
je 0x1069f32
xor esi, esi
cmp dword [0x1082a40], esi
jne 0x1069b96
push dword [0x107fde4]
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.01034c79
mov eax, dword [ebp + 8]
sub eax, esi
mov esi, 0x118
je 0x1069adf
dec eax
dec eax
lea eax, [ebp - 0x234]
je 0x1069ad8
push 0x100ecc0
jmp 0x1069aea
push 0x100ecac
jmp 0x1069aea
push 0x100ec90
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.01034cee
push dword [ebp - 0xae8]
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.01034cee
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xaf0]
push eax
push 1
xor esi, esi
push esi
lea eax, [ebp - 0x234]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x1069f32
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0xae0]
push eax
lea eax, [ebp - 0xae4]
push eax
push esi
push 0x100ec5c
push dword [ebp - 0xaf0]
mov dword [ebp - 0xaf8], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xaec], 0x208
call esi
test eax, eax
jne 0x1069b9d
cmp dword [ebp - 0xae4], 1
jne 0x1069b9d
lea eax, [ebp - 0xae0]
push 0x10040f0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1069b9d
push dword [ebp - 0xaf0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1069f35
lea eax, [ebp - 0xaf8]
push eax
push 1
push 0
lea eax, [ebp - 0x234]
push eax
push dword [0x1082a4c]
call edi
test eax, eax
mov edi, 0x230
jne 0x1069c38
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0xae4]
push eax
push 0
push 0x100bdb8
push dword [ebp - 0xaf8]
mov dword [ebp - 0xaec], edi
call esi
test eax, eax
jne 0x1069c2c
cmp dword [ebp - 0xae4], 1
jne 0x1069c2c
push dword [ebp - 0xaf8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xaf0]
call esi
lea eax, [ebp - 0x234]
push 0x1009cf8
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
jmp 0x1069f35
push dword [ebp - 0xaf8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0xaf4], 0
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0xae4]
push eax
push 0
push 0x100ec3c
push dword [ebp - 0xaf0]
mov dword [ebp - 0xaec], edi
call esi
test eax, eax
jne 0x1069c98
cmp dword [ebp - 0xae4], 1
jne 0x1069c98
lea eax, [ebp - 0x234]
push 0x1009cf8
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1069c98
mov dword [ebp - 0xaf4], 1
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0xae4]
push eax
push 0
push 0x100ec20
push dword [ebp - 0xaf0]
mov dword [ebp - 0xaec], edi
call esi
test eax, eax
jne 0x1069d98
cmp dword [ebp - 0xae4], 1
jne 0x1069d98
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0xae8], eax
push 0x103
lea eax, [ebp - 0x8d8]
push eax
call fcn.01034c79
lea eax, [ebp - 0x8d8]
push 0x7c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1069d18
and word [eax], 0
lea eax, [ebp - 0x8d8]
push 0x100a4f0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1069d48
lea eax, [ebp - 0x8d8]
push 0x100ec18
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1069d52
mov dword [ebp - 0xaf4], 1
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x1069d83
push 0x7c
push dword [ebp - 0xae8]
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1069d98
inc eax
inc eax
jmp 0x1069ceb
xor esi, esi
push dword [ebp - 0xaf0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1069f35
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0xae4]
push eax
push 0
push 0x100ec00
push dword [ebp - 0xaf0]
mov dword [ebp - 0xaec], edi
call esi
test eax, eax
jne 0x1069e05
cmp dword [ebp - 0xae4], 1
jne 0x1069e05
cmp dword [ebp - 0xaf4], eax
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
jne 0x1069e0d
lea eax, [ebp - 0x234]
push 0x100a4f0
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x1069e05
lea eax, [ebp - 0x234]
push 0x100ec18
push eax
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1069e0d
xor esi, esi
inc esi
jmp 0x1069d85
mov esi, dword [sym.imp.msvcrt.dll__wcslwr]
lea eax, [ebp - 0x234]
push eax
call esi
lea eax, [ebp - 0x6d0]
push eax
call esi
pop ecx
pop ecx
lea esi, [ebp - 0x234]
push esi
push 0x103
lea eax, [ebp - 0x43c]
push eax
call fcn.01034c79
lea eax, [ebp - 0x43c]
push 0x7c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1069e54
and word [eax], 0
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0xae8], eax
jne 0x1069ea8
cmp dword [ebp - 0xaf4], eax
jne 0x1069f1a
lea eax, [ebp - 0x43c]
push 0x100a4f0
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x1069ea8
lea eax, [ebp - 0x43c]
push 0x100ec18
push eax
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1069f1a
mov eax, dword [ebp - 0xae8]
lea ecx, [ebp - 0x6d0]
cmp eax, ecx
je 0x1069e05
movzx eax, word [eax - 2]
push eax
call dword [sym.imp.msvcrt.dll_iswalnum]
neg eax
sbb eax, eax
inc eax
pop ecx
jne 0x1069e05
cmp word [ebp - 0x43c], 0x5c
je 0x1069f1a
lea eax, [ebp - 0x43c]
push eax
push 0x100ebf8
lea eax, [ebp - 0x4a0]
push 0x31
push eax
call fcn.01034d76
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 0x18
neg eax
sbb eax, eax
neg eax
jne 0x1069e05
push 0x7c
push esi
call ebx
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1069d83
inc esi
inc esi
jmp 0x1069e2d
xor eax, eax
inc eax
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 0xc