Function at 0x408370
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42d8a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea ecx, [esp + 0x10]
call fcn.00402900
xor ebx, ebx
push str.CurrentVersion
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], ebx
call fcn.00402900
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4085b3
push esi
push 0x42f798
lea ecx, [esp + 0xc]
call fcn.00402900
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.00401520
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x24]
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call esi
cmp eax, ebx
jne 0x40859a
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
call fcn.00406470
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push ebx
push eax
push ecx
call esi
mov ecx, dword [esp + 8]
cmp ecx, ebx
jne 0x408450
xor eax, eax
jmp 0x408465
push ecx
call fcn.00412f9e
add esp, 4
cmp eax, ebx
jl 0x408590
mov ecx, dword [esp + 8]
cmp eax, dword [ecx - 8]
jg 0x408590
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 8]
mov word [edx + eax*2], bx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 8]
push 0x42ff50
push ecx
call fcn.00412f3c
add esp, 8
test eax, eax
mov eax, dword [esp + 8]
mov byte [esp + 0x28], 1
jl 0x40851b
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4084bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408505
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408535
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408557
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40857d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push 0x80070057
call fcn.00401060
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
mov byte [esp + 0x28], 1
jmp 0x40851b
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret