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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x142c
call fcn.010597f0
mov eax, dword [0x1077400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1428], eax
mov eax, dword [0x1077004]
mov edi, 0x10075a0
cmp eax, 0x1077004
je 0x102c04b
test dword [eax + 0x1c], 0x100
je 0x102c04b
cmp byte [eax + 0x19], 4
jb 0x102c04b
push edi
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015bb9
lea eax, [ebp - 0x1418]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1007ab8
push 0x80000002
mov dword [ebp - 0x1418], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x102c33a
mov dword [ebp - 0x141c], esi
xor eax, eax
push 0xffe
mov word [ebp - 0x1414], ax
lea eax, [ebp - 0x1412]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x142c]
push eax
lea eax, [ebp - 0x1414]
push eax
push dword [ebp - 0x141c]
mov dword [ebp - 0x142c], 0x800
push dword [ebp - 0x1418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x102c2e3
lea eax, [ebp - 0x1420]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x1414]
push eax
push dword [ebp - 0x1418]
mov dword [ebp - 0x1420], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x102c2ac
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1424]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0x1007a94
push dword [ebp - 0x1420]
mov dword [ebp - 0x1424], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102c29c
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x102c29c
cmp eax, esi
ja 0x102c29c
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102c1a5
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x102c211
push 0x1005274
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0101e5fc
test eax, eax
jge 0x102c211
mov ecx, dword [0x1077004]
cmp ecx, 0x1077004
je 0x102c29c
test dword [ecx + 0x1c], 0x100
je 0x102c29c
cmp byte [ecx + 0x19], 2
jb 0x102c29c
push eax
push 0x1007530
push edi
push 0x35
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x102c297
push 0x1007a40
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0101e5fc
test eax, eax
jge 0x102c24f
mov ecx, dword [0x1077004]
cmp ecx, 0x1077004
je 0x102c29c
test dword [ecx + 0x1c], 0x100
je 0x102c29c
cmp byte [ecx + 0x19], 2
jb 0x102c29c
push eax
push 0x1007530
push edi
push 0x36
jmp 0x102c206
lea esi, [ebp - 0x20c]
call fcn.0102b70a
test eax, eax
je 0x102c29c
mov eax, esi
push eax
call dword [ebp - 0x1428]
mov ebx, eax
test ebx, ebx
je 0x102c29c
mov eax, dword [0x1077004]
cmp eax, 0x1077004
je 0x102c29c
test dword [eax + 0x1c], 0x100
je 0x102c29c
cmp byte [eax + 0x19], 2
jb 0x102c29c
push ebx
push 0x1007a2c
push edi
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ea0b
push dword [ebp - 0x1420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x102c2db
mov eax, dword [0x1077004]
cmp eax, 0x1077004
je 0x102c2db
test dword [eax + 0x1c], 0x100
je 0x102c2db
cmp byte [eax + 0x19], 2
jb 0x102c2db
push ebx
push 0x10073d8
push edi
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ea0b
inc dword [ebp - 0x141c]
jmp 0x102c31a
cmp ebx, 0x103
je 0x102c31a
mov eax, dword [0x1077004]
cmp eax, 0x1077004
je 0x102c31a
test dword [eax + 0x1c], 0x100
je 0x102c31a
cmp byte [eax + 0x19], 2
jb 0x102c31a
push ebx
push 0x1007a10
push edi
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ea0b
cmp ebx, esi
je 0x102c080
cmp ebx, 0x103
jne 0x102c32c
xor ebx, ebx
push dword [ebp - 0x1418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x102c369
mov eax, dword [0x1077004]
cmp eax, 0x1077004
je 0x102c369
test dword [eax + 0x1c], 0x100
je 0x102c369
cmp byte [eax + 0x19], 2
jb 0x102c369
push ebx
push 0x10073d8
push edi
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ea0b
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0101d9bb
leave
ret 4