Function at 0x4381a6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x47aeb4
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x438230
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x47aee4
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x438650
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0x47af14
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x438646
push 0x47af20
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x438284
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
push 0x47af2c
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x4382a6
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
push 0x47af38
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x4382c8
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
push 0x47af44
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x4382ea
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
push 0x47af50
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x43830c
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
push 0x47af58
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x43832c
mov dword [ebp - 4], 0
push 0x47af5c
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x43834e
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
push 0x47af64
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x438370
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
push 0x47af6c
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x438392
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
push 0x47af74
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x4383b4
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
push 0x47af7c
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x4383d6
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
push 0x47af84
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x4383f8
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
push 0x47af88
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x43841a
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
push 0x47af8c
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x43843c
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
push str.XPnono
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x438581
push str.Vista
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x438581
push str.Windows_7
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x438581
push str.2008
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x438581
push str.Windows_8
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x438581
push str.Windows_10
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x438581
push str.Windows_11
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x438581
push str.2016
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x438581
push str.2019
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x438581
push str.2012
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x438581
push 0x47aff0
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x438581
push str.2011
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x438581
push str.2003
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x438646
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetEnumRootACPI_HAL0000
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x438646
lea eax, [ebp - 0x90]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
mov dword [ebp + 0xc], 0x80
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push str.DeviceDesc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x43863c
push 0x47b044
lea eax, [ebp - 0x90]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x43863c
mov edx, str._64bit_
mov edi, dword [ebp + 8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov eax, dword [edx]
mov dword [edi], eax
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
jmp 0x438658
pop edi
pop esi
pop ebx
leave
ret