Function at 0x409630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54092b
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x838], ecx
xor edi, edi
mov dword [ebp - 0x844], ecx
push 0x400
xor ebx, ebx
mov dword [ebp - 0x860], 0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x840], ebx
push edi
push eax
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x834], ebx
call fcn.00516d20
add esp, 0xc
lea eax, [ebp - 0x834]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x4096fd
push ecx
push esi
lea ecx, [ebp - 0x82c]
call fcn.00407db0
lea eax, [ebp - 0x82c]
push eax
push str.Failed_to_open_registry_key:__s
push edi
push 2
push 0x565d14
push edi
push edi
push str.Utilities::GetOSVersionName
push 0x9df
jmp 0x409a9e
lea eax, [ebp - 0x830]
push eax
push 0
push 0
push 0
push str.CSDVersion
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x83c], eax
test eax, eax
jne 0x409804
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, dword [ebp - 0x830]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004feec5
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ebx, eax
lea eax, [ebp - 0x830]
mov dword [ebp - 0x840], ebx
push eax
push ebx
push 0
push 0
push str.CSDVersion
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x409804
push ecx
push esi
lea ecx, [ebp - 0x82c]
call fcn.00407db0
lea eax, [ebp - 0x82c]
push eax
push str.Failed_to_open_registry_key:__s
push 0
push 2
push 0x565d24
push 0
push 0
push str.Utilities::GetOSVersionName
push 0x9f1
jmp 0x409a9e
lea eax, [ebp - 0x830]
mov esi, 2
push eax
push 0
push 0
push 0
push str.CSDBuildNumber
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x83c], eax
test eax, eax
jne 0x4098c1
xor ecx, ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x830]
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004feec5
add esp, 4
mov dword [ebp - 0x838], eax
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x830]
push eax
push edi
push 0
push 0
push str.CSDBuildNumber
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4098b9
push ecx
push esi
lea ecx, [ebp - 0x82c]
call fcn.00407db0
lea eax, [ebp - 0x82c]
push eax
push str.Failed_to_open_registry_key:__s
push 0
push 2
push 0x565d34
push 0
push 0
push str.Utilities::GetOSVersionName
push 0xa04
jmp 0x409a9e
test edi, edi
jne 0x409a05
lea eax, [ebp - 0x830]
push eax
push 0
push 0
push 0
push str.CurrentBuildNumber
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x83c], eax
test eax, eax
jne 0x409a05
xor ecx, ecx
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x830]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004feec5
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edi, eax
lea eax, [ebp - 0x830]
push eax
push edi
push 0
push 0
push str.CurrentBuildNumber
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x409a05
push ecx
push esi
lea ecx, [ebp - 0x82c]
call fcn.00407db0
lea eax, [ebp - 0x82c]
push eax
push str.Failed_to_open_registry_key:__s
push 0
push 2
push 0x565d44
push 0
push 0
push str.Utilities::GetOSVersionName
push 0xa19
jmp 0x409a9e
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
mov cx, ax
shl eax, 8
shr cx, 8
xor cx, ax
movzx eax, cx
mov edx, eax
mov dword [ebp - 0x838], eax
shr edx, 8
test ebx, ebx
jne 0x409a36
mov eax, 0x5635c4
mov ecx, eax
jmp 0x409a3d
mov eax, ebx
mov ecx, 0x565d4c
push edi
push eax
mov eax, dword [ebp - 0x838]
push ecx
push edi
movzx eax, al
push eax
movzx eax, dl
push eax
push str._hd._hd._ws_ws_ws_Build__ws
lea eax, [ebp - 0x414]
push 0x400
push eax
call fcn.004106f0
mov esi, eax
add esp, 0x24
test esi, esi
je 0x409ab7
push ecx
push esi
lea ecx, [ebp - 0x82c]
call fcn.00407db0
lea eax, [ebp - 0x82c]
push eax
push str.Failed_to_format_string:__s
push 0
push 2
push 0x565da4
push 0
push 0
push str.Utilities::GetOSVersionName
push 0xa2c
push str.Utilities.cpp
lea ecx, [ebp - 0x85c]
call fcn.00424320
push eax
call fcn.00424820
add esp, 0x18
mov eax, dword [ebp - 0x834]
test eax, eax
je 0x409ad2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x834], 0
test ebx, ebx
je 0x409adf
push ebx
call fcn.004fdfa4
add esp, 4
test edi, edi
je 0x409aec
push edi
call fcn.004fdfa4
add esp, 4
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0x42c], 0
mov dword [ebp - 4], 6
mov byte [ebp - 4], 7
test esi, esi
je 0x409b1f
mov edx, 0x564cf6
xor ecx, ecx
jmp 0x409b49
cmp byte [ebp - 0x414], 0
lea edx, [ebp - 0x414]
jne 0x409b32
xor ecx, ecx
jmp 0x409b49
lea ecx, [ebp - 0x414]
lea esi, [ecx + 1]
jmp 0x409b40
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409b40
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x42c]
call fcn.00403aa0
mov esi, dword [ebp - 0x844]
lea eax, [ebp - 0x42c]
push eax
mov ecx, esi
call fcn.004107d0
mov ecx, dword [ebp - 0x418]
cmp ecx, 0x10
jb 0x409b88
inc ecx
push ecx
push dword [ebp - 0x42c]
lea ecx, [ebp - 0x42c]
call fcn.00403980
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret