Function at 0x438190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a002
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x44c680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 0x120
call fcn.004045c8
add esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x1c], edx
push 0x11c
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00422740
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0x11c
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x43823f
push 0x11c
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00422740
add esp, 0xc
cmp dword [ebp - 0x14], 0
setne cl
mov edx, dword [ebp - 0x18]
mov byte [edx], cl
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
test ecx, ecx
je 0x438426
lea ecx, [ebp - 0x34]
call fcn.00402580
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402580
mov byte [ebp - 4], 2
push 0x4420fc
lea ecx, [ebp - 0x20]
call fcn.00401de0
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 3
push 0x442104
lea ecx, [ebp - 0x28]
call fcn.00401de0
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 4
call fcn.00437f90
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
sub ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0xffffff00
add ecx, 0x100
or ecx, 0x20019
push ecx
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x24], 0
je 0x4383af
mov dword [ebp - 0x3c], 0
lea edx, [ebp - 0x3c]
push edx
push 0
lea eax, [ebp - 0x38]
push eax
push 0
push 0x44217c
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x3c], 0
je 0x438348
cmp dword [ebp - 0x38], 1
jne 0x438348
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x34]
call fcn.00402950
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x38]
push edx
push 0
push 0x442194
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
call fcn.00402610
lea ecx, [ebp - 0x3c]
push ecx
push 0
lea edx, [ebp - 0x38]
push edx
push 0
push 0x44210c
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x3c], 0
je 0x4383a5
cmp dword [ebp - 0x38], 1
jne 0x4383a5
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402950
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp - 0x38]
push ecx
push 0
push str.ReleaseId
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402610
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004024c0
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004024c0
cmp dword [ebp - 0x30], 0
jne 0x4383db
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004024c0
jmp 0x4383e7
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004024c0
mov edx, dword [ebp - 0x18]
add edx, 0x18
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00401dc0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004024e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004024e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004024e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004024e0
cmp dword [ebp - 0x18], 0
je 0x438445
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00404602
add esp, 4
mov dword [ebp - 0x18], 0
jmp 0x438473
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
setne cl
movzx eax, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret