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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push dword [0x107fde4]
lea eax, [ebp - 0x20c]
push 0x100bd3c
xor esi, esi
push 0x103
push eax
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x424], esi
call fcn.01034d76
add esp, 0x14
lea eax, [ebp - 0x420]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1071684
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x1004e6c
push dword [ebp - 0x420]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x41c], 0x208
call esi
test eax, eax
jne 0x1071503
cmp dword [ebp - 0x418], ebx
je 0x1071472
cmp dword [ebp - 0x418], 2
jne 0x1071503
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x107147b
sub eax, edx
sar eax, 1
cmp eax, 5
jbe 0x1071503
cmp dword [ebp - 0x418], 2
mov ebx, 0x104
jne 0x10714d5
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1071677
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01034c79
test eax, eax
jl 0x1071677
push 1
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010686d6
test eax, eax
jl 0x1071503
lea eax, [ebp - 0x414]
push eax
call fcn.01056f43
test eax, eax
je 0x1071677
lea eax, [ebp - 0x41c]
push eax
lea eax, [edi + 0x3e8]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1011728
push dword [ebp - 0x420]
mov dword [ebp - 0x41c], 0x14
call esi
test eax, eax
jne 0x1071677
cmp dword [ebp - 0x418], 1
jne 0x1071677
lea eax, [ebp - 0x41c]
push eax
lea eax, [edi + 0xc8]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1011700
push dword [ebp - 0x420]
mov ebx, 0x12c
mov dword [ebp - 0x41c], ebx
call esi
test eax, eax
jne 0x1071677
cmp dword [ebp - 0x418], 1
jne 0x1071677
lea ecx, [ebp - 0x41c]
push ecx
lea eax, [edi + 0x320]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0x100f1b4
push dword [ebp - 0x420]
mov dword [ebp - 0x41c], 0xc8
call esi
test eax, eax
jne 0x10715c5
cmp dword [ebp - 0x418], 1
je 0x10715d8
push 0x1001e8c
push 0x64
lea eax, [edi + 0x320]
push eax
call fcn.01034c79
lea eax, [ebp - 0x41c]
push eax
lea eax, [edi + 0x1f4]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0x10116d8
push dword [ebp - 0x420]
mov dword [ebp - 0x41c], ebx
call esi
test eax, eax
jne 0x1071677
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x418], ebx
jne 0x1071677
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0x10116c4
push dword [ebp - 0x420]
mov dword [ebp - 0x41c], 0x208
call esi
test eax, eax
jne 0x107166b
cmp dword [ebp - 0x418], ebx
jne 0x107166b
lea eax, [ebp - 0x20c]
push 0x1009cf8
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x107166b
and dword [edi + 0x3fc], eax
jmp 0x1071671
mov dword [edi + 0x3fc], ebx
mov dword [ebp - 0x424], ebx
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x424]
pop edi
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 4