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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e136b
mov eax, dword fs:[0]
push eax
mov eax, 0x17a8
call fcn.005b0130
mov eax, dword [0x663000]
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.00407953
mov byte [ebp - 4], 1
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x4364e6
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 0x43653f
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.005b31a0
mov eax, dword [ebp - 0x17a0]
add esp, 0xc
add eax, ebx
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x43655a
push ebx
push edx
mov byte [ebp - 0x17a0], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17a0]
push ebx
call fcn.0041d780
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 0x436604
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 0x62de00
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x436604
mov eax, dword [ebp - 0x17a4]
cmp eax, 1
je 0x4365e9
cmp eax, 2
jne 0x436604
mov eax, dword [ebp - 0x17a0]
test eax, eax
je 0x436646
test al, 1
jne 0x436604
shr eax, 1
cmp word [ebp + eax*2 - 0x7e2], 0
je 0x43664f
mov bl, byte [ebp - 0x1799]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1784]
cmp ecx, 8
jb 0x436688
mov edx, dword [ebp - 0x1798]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43667e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4366ce
jmp 0x43667e
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.00415110
mov bl, 1
jmp 0x43660a
push ecx
push edx
call fcn.005af9e7
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 0x4366b0
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.005af765
mov esp, ebp
pop ebp
ret
call fcn.005b681f
int3