Function at 0x402cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410236
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x41a3c4]
test eax, eax
jne 0x4030c3
xorps xmm0, xmm0
mov dword [ebp - 0x54], eax
movdqu xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x6c], vtable.CRegistryKey.0
movq qword [ebp - 0x5c], xmm0
movdqu xmmword [ebp - 0x68], xmm0
mov dword [ebp - 4], eax
xor esi, esi
movq qword [ebp - 0x48], xmm0
xor edi, edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov byte [ebp - 4], 1
mov word [ebp - 0x38], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
movdqu xmmword [ebp - 0x36], xmm0
mov dword [ebp - 0x4c], 0x28
movdqu xmmword [ebp - 0x26], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x3c], esi
mov ecx, 0x20119
push ecx
mov eax, 0x20019
cmovne eax, ecx
lea ecx, [ebp - 0x6c]
push eax
sub esp, 0xc
call fcn.004015d0
test eax, eax
je 0x4030b6
sub esp, 8
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x68]
push eax
lea eax, [ebp - 0x38]
push eax
push str.CurrentBuildNumber
call fcn.00402b20
test eax, eax
je 0x402dba
push 0xa
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040456e
add esp, 0xc
mov dword [0x41a3c0], eax
sub esp, 8
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x68]
push eax
lea eax, [ebp - 0x38]
push eax
push str.CurrentVersion
call fcn.00402b20
test eax, eax
je 0x402e65
push 0x41676c
lea ecx, [ebp - 0xa8]
call fcn.004019d0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x90]
call fcn.004019d0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x90]
call fcn.004012e0
add esp, 4
cmp dword [ebp - 0x7c], 8
jb 0x402e2d
push dword [ebp - 0x90]
call fcn.004041a9
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x94], 8
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
jb 0x402e5f
push dword [ebp - 0xa8]
call fcn.004041a9
add esp, 4
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x402f3a
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x78], eax
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 4
push ecx
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0x416770
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402f3a
cmp dword [ebp - 0x50], eax
je 0x402f3a
push 0xa
lea eax, [ebp - 0x38]
push eax
push ecx
push 0x416770
lea ecx, [ebp - 0x68]
call fcn.00402c30
push eax
call fcn.0040471c
mov edx, eax
add esp, 0xc
cmp word [edx], 0
jne 0x402ece
xor ecx, ecx
jmp 0x402ee6
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x3c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ed6
sub ecx, dword [ebp - 0x3c]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00402210
push 0xa
lea eax, [ebp - 0x38]
push eax
push ecx
push str.CurrentMinorVersionNumber
lea ecx, [ebp - 0x68]
call fcn.00402c30
push eax
call fcn.0040471c
mov edx, eax
add esp, 0xc
cmp word [edx], 0
jne 0x402f18
xor ecx, ecx
jmp 0x402f30
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x3c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402f20
sub ecx, dword [ebp - 0x3c]
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x18]
call fcn.00402210
cmp edi, esi
je 0x40306c
cmp dword [edi + 0x14], 8
jb 0x402f4c
mov eax, dword [edi]
jmp 0x402f4e
mov eax, edi
push 0xa
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.0040456e
mov ecx, dword [ebp - 0x44]
add esp, 0xc
mov dword [ebp - 0x3c], eax
sub ecx, edi
mov eax, 0x2aaaaaab
xor esi, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x402f99
cmp dword [edi + 0x2c], 8
lea eax, [edi + 0x18]
jb 0x402f88
mov eax, dword [eax]
push 0xa
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.0040456e
add esp, 0xc
mov esi, eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, 5
jne 0x402ff1
test esi, esi
jne 0x402fb4
mov dword [0x41a3c4], 6
jmp 0x40306c
cmp esi, 1
jne 0x402fc8
mov dword [0x41a3c4], 7
jmp 0x40306c
cmp esi, 2
jne 0x402fdc
mov dword [0x41a3c4], 8
jmp 0x40306c
jbe 0x40306c
mov dword [0x41a3c4], 0xe
jmp 0x40306c
cmp ecx, 6
jne 0x403046
test esi, esi
jne 0x403006
mov dword [0x41a3c4], 9
jmp 0x40306c
cmp esi, 1
jne 0x403017
mov dword [0x41a3c4], 0xa
jmp 0x40306c
cmp esi, 2
jne 0x403028
mov dword [0x41a3c4], 0xb
jmp 0x40306c
cmp esi, 3
jne 0x403039
mov dword [0x41a3c4], 0xc
jmp 0x40306c
xor eax, eax
cmp esi, 4
setne al
add eax, 0xd
jmp 0x403067
cmp ecx, 0xa
jne 0x403057
xor eax, eax
test esi, esi
setne al
add eax, 0xd
jmp 0x403067
mov eax, dword [0x41a3c4]
cmp ecx, 0xa
mov edx, 0xe
cmova eax, edx
mov dword [0x41a3c4], eax
test edi, edi
je 0x4030b6
mov eax, dword [ebp - 0x44]
mov esi, edi
cmp edi, eax
je 0x4030ad
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x403093
push dword [esi]
call fcn.004041a9
mov eax, dword [ebp - 0x44]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x18
cmp esi, eax
jne 0x403080
push edi
call fcn.004041a9
add esp, 4
lea ecx, [ebp - 0x6c]
call fcn.00401550
mov eax, dword [0x41a3c4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403565
mov esp, ebp
pop ebp
ret