Function at 0x71ce6d80
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x71d5a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x71d7aaac]
lea ecx, [ebp - 0x438]
push esi
push edi
xorps xmm0, xmm0
mov byte [ebp - 0x455], 0
xor eax, eax
mov dword [ebp - 0x43c], 7
push 0x13
xor edi, edi
mov dword [ebp - 0x428], eax
movups xmmword [ebp - 0x450], xmm0
push str.SoftwareMicrosoft_
mov dword [ebp - 0x45c], edi
mov dword [ebp - 0x440], edi
mov word [ebp - 0x450], ax
movups xmmword [ebp - 0x438], xmm0
mov dword [ebp - 0x424], eax
call fcn.71ce79b0
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x71ce6e17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x440], 0
je 0x71ce6f27
movzx ecx, word [0x71d7a92c]
lea eax, [ebp - 0x438]
neg ecx
lea edx, [ebp - 0x454]
push edx
sbb ecx, ecx
cmp dword [ebp - 0x424], 8
cmovae eax, dword [ebp - 0x438]
and ecx, 0x100
or ecx, 1
push ecx
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x71ce703e
cmp dword [ebp - 0x43c], 8
lea ecx, [ebp - 0x41c]
push ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x41c], 0x208
push ecx
lea ecx, [ebp - 0x420]
push ecx
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
push edi
push eax
push dword [ebp - 0x454]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [ebp - 0x45c], edi
test edi, edi
jne 0x71ce6f1b
mov eax, dword [ebp - 0x41c]
shr eax, 1
mov dword [ebp - 0x41c], eax
cmp eax, 0x104
jne 0x71ce6edf
mov dword [ebp - 0x41c], 0x103
mov eax, 0x206
jmp 0x71ce6eec
add eax, eax
cmp eax, 0x208
jae 0x71ce70b4
xor ecx, ecx
cmp dword [ebp - 0x420], 2
mov word [ebp + eax - 0x210], cx
jne 0x71ce6f1b
lea eax, [ebp - 0x210]
push 0x25
push eax
call fcn.71cf6a25
add esp, 8
test eax, eax
je 0x71ce6f1b
mov byte [ebp - 0x455], 1
push dword [ebp - 0x454]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x71ce703e
xor eax, eax
mov word [ebp - 0xa], ax
cmp byte [ebp - 0x455], al
je 0x71ce7015
push 0x104
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x71ce700d
cmp esi, 0x104
ja 0x71ce6f7b
lea eax, [esi - 1]
push eax
lea eax, [ebp - 0x418]
jmp 0x71ce7036
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.71cfbe20
mov edi, eax
add esp, 4
test edi, edi
je 0x71ce6fdf
push esi
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x71ce6fd0
cmp eax, esi
ja 0x71ce6fd6
lea eax, [esi - 1]
mov ecx, ebx
push eax
push edi
call fcn.71ce7500
push edi
call fcn.71cfbe30
mov edi, dword [ebp - 0x45c]
add esp, 4
jmp 0x71ce703e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.71cfbe30
add esp, 4
mov edi, dword [ebp - 0x45c]
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x71ce6fef
mov eax, dword [ebx]
lea ecx, [ebp - 0x210]
cmp ecx, eax
je 0x71ce703e
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x71ce7000
jmp 0x71ce702b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x71ce6fe5
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x71ce7020
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.71ce7500
cmp dword [ebp - 0x424], 8
jb 0x71ce7061
mov esi, dword [ebp - 0x438]
test esi, esi
je 0x71ce7061
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov dword [ebp - 0x428], 0
cmp dword [ebp - 0x43c], 8
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
jb 0x71ce70a1
mov esi, dword [ebp - 0x450]
test esi, esi
je 0x71ce70a1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.71cf548b
mov esp, ebp
pop ebp
ret
call fcn.71cf5bb0
int3