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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xaf8
mov eax, dword [0x1046190]
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 0x103932c
xor eax, eax
jmp 0x10398fc
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 [0x1049414], esi
pop ecx
lea eax, [ebp - 0x6d0]
je 0x1039368
push eax
call fcn.01038908
jmp 0x10398fb
push ebx
push eax
push edi
lea eax, [ebp - 0x234]
push eax
call fcn.01028a67
lea eax, [ebp - 0x234]
push 0x10056ec
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 0x1039461
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 0x103945f
lea eax, [ebp - 0x234]
push 0x22
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1039447
add eax, 2
push eax
push 0x103
lea eax, [ebp - 0x43c]
push eax
call fcn.01028a67
lea eax, [ebp - 0x43c]
push 0x22
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x103945f
lea eax, [ebp - 0x43c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10393f8
sub eax, edx
sar eax, 1
cmp eax, 8
jbe 0x103945f
push dword [ebp - 0x43c]
call dword [sym.imp.msvcrt.dll_iswalpha]
test eax, eax
pop ecx
je 0x103945f
cmp word [ebp - 0x43a], 0x3a
jne 0x103945f
cmp word [ebp - 0x438], 0x5c
jne 0x103945f
lea eax, [ebp - 0x43c]
push eax
push edi
lea eax, [ebp - 0x234]
push eax
call fcn.01028a67
xor esi, esi
inc esi
test esi, esi
je 0x103945f
lea eax, [ebp - 0x234]
push eax
call fcn.010326f3
test eax, eax
je 0x10398f7
xor esi, esi
cmp dword [0x1049410], esi
jne 0x103955b
push dword [0x10472a0]
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.01028a67
mov eax, dword [ebp + 8]
sub eax, esi
mov esi, 0x118
je 0x10394a4
dec eax
dec eax
lea eax, [ebp - 0x234]
je 0x103949d
push 0x100a410
jmp 0x10394af
push 0x100a3fc
jmp 0x10394af
push 0x100a3e0
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.01028adc
push dword [ebp - 0xae8]
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.01028adc
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 0x80000002
call edi
test eax, eax
jne 0x10398f7
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0xae0]
push eax
lea eax, [ebp - 0xae4]
push eax
push esi
push 0x100a3ac
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 0x1039562
cmp dword [ebp - 0xae4], 1
jne 0x1039562
lea eax, [ebp - 0xae0]
push 0x10024b0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1039562
push dword [ebp - 0xaf0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10398fa
lea eax, [ebp - 0xaf8]
push eax
push 1
push 0
lea eax, [ebp - 0x234]
push eax
push dword [0x104941c]
call edi
test eax, eax
mov edi, 0x230
jne 0x10395fd
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0xae4]
push eax
push 0
push 0x10078b4
push dword [ebp - 0xaf8]
mov dword [ebp - 0xaec], edi
call esi
test eax, eax
jne 0x10395f1
cmp dword [ebp - 0xae4], 1
jne 0x10395f1
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 0x1006914
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
jmp 0x10398fa
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 0x100a38c
push dword [ebp - 0xaf0]
mov dword [ebp - 0xaec], edi
call esi
test eax, eax
jne 0x103965d
cmp dword [ebp - 0xae4], 1
jne 0x103965d
lea eax, [ebp - 0x234]
push 0x1006914
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x103965d
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 0x1009c6c
push dword [ebp - 0xaf0]
mov dword [ebp - 0xaec], edi
call esi
test eax, eax
jne 0x103975d
cmp dword [ebp - 0xae4], 1
jne 0x103975d
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.01028a67
lea eax, [ebp - 0x8d8]
push 0x7c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10396dd
and word [eax], 0
lea eax, [ebp - 0x8d8]
push 0x1004ea4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x103970d
lea eax, [ebp - 0x8d8]
push 0x1009c88
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1039717
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 0x1039748
push 0x7c
push dword [ebp - 0xae8]
call ebx
test eax, eax
pop ecx
pop ecx
je 0x103975d
inc eax
inc eax
jmp 0x10396b0
xor esi, esi
push dword [ebp - 0xaf0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10398fa
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0xae4]
push eax
push 0
push 0x1009c90
push dword [ebp - 0xaf0]
mov dword [ebp - 0xaec], edi
call esi
test eax, eax
jne 0x10397ca
cmp dword [ebp - 0xae4], 1
jne 0x10397ca
cmp dword [ebp - 0xaf4], eax
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
jne 0x10397d2
lea eax, [ebp - 0x234]
push 0x1004ea4
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x10397ca
lea eax, [ebp - 0x234]
push 0x1009c88
push eax
call edi
test eax, eax
pop ecx
pop ecx
jne 0x10397d2
xor esi, esi
inc esi
jmp 0x103974a
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.01028a67
lea eax, [ebp - 0x43c]
push 0x7c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1039819
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 0x103986d
cmp dword [ebp - 0xaf4], eax
jne 0x10398df
lea eax, [ebp - 0x43c]
push 0x1004ea4
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x103986d
lea eax, [ebp - 0x43c]
push 0x1009c88
push eax
call edi
test eax, eax
pop ecx
pop ecx
jne 0x10398df
mov eax, dword [ebp - 0xae8]
lea ecx, [ebp - 0x6d0]
cmp eax, ecx
je 0x10397ca
movzx eax, word [eax - 2]
push eax
call dword [sym.imp.msvcrt.dll_iswalnum]
neg eax
sbb eax, eax
inc eax
pop ecx
jne 0x10397ca
cmp word [ebp - 0x43c], 0x5c
je 0x10398df
lea eax, [ebp - 0x43c]
push eax
push 0x100a384
lea eax, [ebp - 0x4a0]
push 0x31
push eax
call fcn.01028b64
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 0x10397ca
push 0x7c
push esi
call ebx
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1039748
inc esi
inc esi
jmp 0x10397f2
xor eax, eax
inc eax
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01031a01
leave
ret 0xc