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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xaf8
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0xaf0], 0
mov dword [ebp - 0xae8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xae4], 1
test eax, eax
je 0x103269f
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 [0x10416ec], 0
pop ecx
lea eax, [ebp - 0x6d0]
je 0x10320fb
push eax
call fcn.01031619
jmp 0x103269e
push ebx
push esi
push eax
push edi
lea eax, [ebp - 0x234]
push eax
call fcn.01027e68
lea eax, [ebp - 0x234]
push 0x10041dc
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
mov ebx, dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x10321fd
xor ecx, ecx
mov word [eax + 8], cx
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 0x10321fd
lea eax, [ebp - 0x234]
push 0x22
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x10321e5
add eax, 2
push eax
push 0x103
lea eax, [ebp - 0x43c]
push eax
call fcn.01027e68
lea eax, [ebp - 0x43c]
push 0x22
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x10321fd
lea eax, [ebp - 0x43c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1032192
sub eax, edx
sar eax, 1
cmp eax, 8
jbe 0x10321fd
push dword [ebp - 0x43c]
call dword [sym.imp.msvcrt.dll_iswalpha]
pop ecx
test eax, eax
je 0x10321fd
push 0x3a
pop eax
cmp ax, word [ebp - 0x43a]
jne 0x10321fd
push 0x5c
pop eax
cmp ax, word [ebp - 0x438]
jne 0x10321fd
lea eax, [ebp - 0x43c]
push eax
push edi
lea eax, [ebp - 0x234]
push eax
call fcn.01027e68
xor esi, esi
inc esi
test esi, esi
je 0x10321fd
lea eax, [ebp - 0x234]
push eax
call fcn.0102e8b9
test eax, eax
je 0x1032699
cmp dword [0x10416e8], 0
jne 0x10322f9
push dword [0x103f06c]
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.01027e68
mov eax, dword [ebp + 8]
sub eax, 0
mov esi, 0x118
je 0x1032242
dec eax
dec eax
lea eax, [ebp - 0x234]
je 0x103223b
push 0x1006728
jmp 0x103224d
push 0x1006714
jmp 0x103224d
push 0x10066f8
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.01027edd
push dword [ebp - 0xae8]
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.01027edd
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 0x1032699
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0xae0]
push eax
lea eax, [ebp - 0xae4]
push eax
push esi
push 0x10066c4
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 0x1032300
cmp dword [ebp - 0xae4], 1
jne 0x1032300
lea eax, [ebp - 0xae0]
push 0x1001e30
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1032300
push dword [ebp - 0xaf0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x103269c
lea eax, [ebp - 0xaf8]
push eax
push 1
push 0
lea eax, [ebp - 0x234]
push eax
push dword [0x10416f8]
call edi
mov edi, 0x230
test eax, eax
jne 0x103239b
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0xae4]
push eax
push 0
push 0x100669c
push dword [ebp - 0xaf8]
mov dword [ebp - 0xaec], edi
call esi
test eax, eax
jne 0x103238f
cmp dword [ebp - 0xae4], 1
jne 0x103238f
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 0x100559c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
jmp 0x103269c
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 0x100667c
push dword [ebp - 0xaf0]
mov dword [ebp - 0xaec], edi
call esi
test eax, eax
jne 0x10323fb
cmp dword [ebp - 0xae4], 1
jne 0x10323fb
lea eax, [ebp - 0x234]
push 0x100559c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x10323fb
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 0x1006660
push dword [ebp - 0xaf0]
mov dword [ebp - 0xaec], edi
call esi
test eax, eax
jne 0x10324fc
cmp dword [ebp - 0xae4], 1
jne 0x10324fc
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.01027e68
lea eax, [ebp - 0x8d8]
push 0x7c
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x103247c
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x8d8]
push 0x1002fc4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10324ac
lea eax, [ebp - 0x8d8]
push 0x1006658
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x10324b6
mov dword [ebp - 0xaf4], 1
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x10324e7
push 0x7c
push dword [ebp - 0xae8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x10324fc
inc eax
inc eax
jmp 0x103244e
xor esi, esi
push dword [ebp - 0xaf0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x103269c
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0xae4]
push eax
push 0
push 0x1006640
push dword [ebp - 0xaf0]
mov dword [ebp - 0xaec], edi
call esi
test eax, eax
jne 0x1032569
cmp dword [ebp - 0xae4], 1
jne 0x1032569
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
cmp dword [ebp - 0xaf4], eax
jne 0x1032571
lea eax, [ebp - 0x234]
push 0x1002fc4
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x1032569
lea eax, [ebp - 0x234]
push 0x1006658
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x1032571
xor esi, esi
inc esi
jmp 0x10324e9
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.01027e68
lea eax, [ebp - 0x43c]
push 0x7c
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x10325b9
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
mov dword [ebp - 0xae8], eax
test eax, eax
jne 0x103260d
cmp dword [ebp - 0xaf4], eax
jne 0x1032681
lea eax, [ebp - 0x43c]
push 0x1002fc4
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x103260d
lea eax, [ebp - 0x43c]
push 0x1006658
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x1032681
mov eax, dword [ebp - 0xae8]
lea ecx, [ebp - 0x6d0]
cmp eax, ecx
je 0x1032569
movzx eax, word [eax - 2]
push eax
call dword [sym.imp.msvcrt.dll_iswalnum]
neg eax
sbb eax, eax
inc eax
pop ecx
jne 0x1032569
push 0x5c
pop eax
cmp ax, word [ebp - 0x43c]
je 0x1032681
lea eax, [ebp - 0x43c]
push eax
push 0x1006638
lea eax, [ebp - 0x4a0]
push 0x31
push eax
call fcn.01027f64
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 0x1032569
push 0x7c
push esi
call ebx
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10324e7
inc esi
inc esi
jmp 0x1032591
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0102df7d
leave
ret 0xc