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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e2afb
mov eax, dword fs:[0]
push eax
mov eax, 0x17a8
call fcn.005b15f0
mov eax, dword [0x660ff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x17a8], edx
mov esi, ecx
xor edi, edi
mov byte [ebp - 0x1799], 0
mov dword [ebp - 0x17b4], edi
mov dword [ebp - 0x17b0], edi
mov dword [ebp - 0x17ac], edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [ebp - 0x1798]
mov dword [ebp - 4], edi
call fcn.004078f2
mov byte [ebp - 4], 1
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x435856
mov edx, dword [esi]
mov ecx, dword [ebp - 0x1788]
mov eax, dword [ebp - 0x1784]
mov ebx, dword [esi + 0x10]
sub eax, ecx
mov dword [ebp - 0x17a0], ecx
cmp ebx, eax
ja 0x4358af
cmp dword [ebp - 0x1784], 8
lea eax, [ecx + ebx]
lea esi, [ebp - 0x1798]
mov dword [ebp - 0x1788], eax
cmovae esi, dword [ebp - 0x1798]
lea eax, [ebx + ebx]
push eax
push edx
lea ecx, [esi + ecx*2]
push ecx
call fcn.005b47d0
mov eax, dword [ebp - 0x17a0]
add esp, 0xc
add eax, ebx
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x4358ca
push ebx
push edx
mov byte [ebp - 0x17a0], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17a0]
push ebx
call fcn.0041d540
cmp dword [ebp - 0x1784], 8
lea ecx, [ebp - 0x17a0]
push ecx
push 0x20019
lea eax, [ebp - 0x1798]
mov dword [ebp - 0x17a0], 0
cmovae eax, dword [ebp - 0x1798]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435974
mov edi, dword [ebp - 0x17a0]
mov dword [ebp - 0x17b0], eax
lea eax, [ebp - 0x17a0]
push eax
lea eax, [ebp - 0x7e0]
mov dword [ebp - 0x17b4], edi
push eax
lea eax, [ebp - 0x17a4]
mov dword [ebp - 0x17a0], 0x7d0
push eax
push 0
push 0x62bf34
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x435974
mov eax, dword [ebp - 0x17a4]
cmp eax, 1
je 0x435959
cmp eax, 2
jne 0x435974
mov eax, dword [ebp - 0x17a0]
test eax, eax
je 0x4359b6
test al, 1
jne 0x435974
shr eax, 1
cmp word [ebp + eax*2 - 0x7e2], 0
je 0x4359bf
mov bl, byte [ebp - 0x1799]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1784]
cmp ecx, 8
jb 0x4359f8
mov edx, dword [ebp - 0x1798]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4359ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435a3e
jmp 0x4359ee
xor eax, eax
mov word [ebp - 0x7e0], ax
push 0x7d0
lea eax, [ebp - 0x1780]
push eax
lea eax, [ebp - 0x7e0]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x17a8]
lea eax, [ebp - 0x1780]
push eax
call fcn.00414980
mov bl, 1
jmp 0x43597a
push ecx
push edx
call fcn.005b0fc9
add esp, 8
xor eax, eax
mov dword [ebp - 0x1788], 0
mov dword [ebp - 0x1784], 7
mov word [ebp - 0x1798], ax
test edi, edi
je 0x435a20
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b0d47
mov esp, ebp
pop ebp
ret
call fcn.005b7faf
int3