Function at 0x41ccb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x56c
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x10], 0
sub esp, 4
lea eax, [ebp - 0x570]
push 0x400
push 0
push eax
call fcn.0044c927
add esp, 0x10
mov dword [ebp - 0x48], 0x400
sub esp, 4
lea eax, [ebp - 0x170]
push 0x80
push 0
push eax
call fcn.0044c927
add esp, 0x10
mov dword [ebp - 0xd4], 0xf
mov dword [ebp - 0xd8], 0
mov byte [ebp - 0xe8], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x8c], 0x45d7f8
mov dword [ebp - 0x88], 0x4642a4
mov dword [ebp - 0x84], ebp
mov dword [ebp - 0x7c], esp
mov dword [ebp - 0x84], 0x41d214
mov dword [ebp - 0xa0], 1
lea eax, [ebp - 0xa8]
call fcn.0045e461
sub esp, 0xc
push 0x2c
call fcn.00442604
add esp, 0x10
mov dword [ebp - 0x20], eax
mov esi, eax
add esi, 0x2c
mov dword [ebp - 0x18], esi
sub esp, 4
push 0x2c
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProductName
push eax
call fcn.0044c75c
add esp, 0x10
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xb8], 0xf
mov dword [ebp - 0xbc], 0
mov byte [ebp - 0xcc], 0
mov dword [ebp - 0xa0], 2
sub esp, 4
lea eax, [ebp - 0xd0]
push 0x40
push 0x46416d
push eax
call fcn.004025f8
add esp, 0x10
mov dword [ebp - 0xa0], 3
sub esp, 4
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x40]
push eax
lea eax, [ebp - 0xd0]
push eax
push ecx
call fcn.0043eb20
add esp, 0x10
cmp dword [ebp - 0x28], 0xf
ja 0x41ce0a
lea eax, [ebp - 0x3c]
jmp 0x41ce0d
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xa0], 4
sub esp, 4
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyA
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x41ce51
mov eax, dword [ebp - 0x3c]
inc ecx
cmp ecx, 0x1000
jb 0x41ce45
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.004406b8
add esp, 0x10
mov eax, dword [ebp + 8]
test esi, esi
jne 0x41ce92
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xa0], 5
sub esp, 8
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x570]
push ecx
push edx
push 0
push 0x4640bd
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
mov eax, dword [ebp + 8]
je 0x41cf6b
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], 0
mov byte [eax + 4], 0
mov dword [ebp - 0xa0], 0xe
sub esp, 4
push 0
push 0x464076
push eax
call fcn.004025f8
add esp, 0x10
mov ecx, dword [ebp - 0xb8]
cmp ecx, 0x10
jb 0x41ceea
mov eax, dword [ebp - 0xcc]
inc ecx
cmp ecx, 0x1000
jb 0x41cede
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.004406b8
add esp, 0x10
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41cf22
mov ecx, dword [ebp - 0x18]
sub ecx, eax
cmp ecx, 0x1000
jb 0x41cf01
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.004406b8
add esp, 0x10
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xd4]
cmp ecx, 0x10
jb 0x41cf4b
mov eax, dword [ebp - 0xe8]
inc ecx
cmp ecx, 0x1000
jb 0x41cf3f
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.004406b8
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0xa8]
push eax
call fcn.0045e482
add esp, 0x10
mov eax, dword [ebp + 8]
add esp, 0x56c
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x571]
nop word cs:[eax + eax]
cmp byte [eax + 1], 0
lea eax, [eax + 1]
jne 0x41cf80
lea ecx, [ebp - 0x570]
sub eax, ecx
mov dword [ebp - 0xa0], 6
sub esp, 4
lea edx, [ebp - 0xec]
push eax
push ecx
push edx
call fcn.0040f968
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xa0], 7
sub esp, 8
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x170]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push 0
push str.CurrentBuild
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x10]
je 0x41d0ac
mov dword [ebp - 0xa0], 0xb
sub esp, 0xc
push eax
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
mov dword [ebp - 0xa0], 0xc
sub esp, 4
push 0x4640d6
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041d46c
add esp, 0x10
lea eax, [ebp - 0x171]
nop word [eax + eax]
cmp byte [eax + 1], 0
lea eax, [eax + 1]
jne 0x41d030
lea ecx, [ebp - 0x170]
sub eax, ecx
mov dword [ebp - 0xa0], 0xd
sub esp, 4
push eax
push ecx
lea eax, [ebp - 0x40]
push eax
call fcn.0040f968
add esp, 0x10
mov esi, eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0xf
lea eax, [edx + 4]
mov dword [edx + 0x14], 0
mov byte [edx + 4], 0
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x44], ecx
cmp ecx, 0xf
ja 0x41d161
mov edi, dword [esi + 0x14]
mov ebx, esi
add ebx, 4
mov ecx, edi
inc ecx
je 0x41d18d
sub esp, 4
push ecx
push ebx
push eax
call fcn.0044c75c
mov edx, dword [ebp + 8]
add esp, 0x10
jmp 0x41d192
mov dword [ebp - 0xa0], 8
sub esp, 0xc
push eax
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
mov dword [ebp - 0xa0], 9
sub esp, 4
push 0x4640d6
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041d46c
add esp, 0x10
lea eax, [ebp - 0x171]
nop dword [eax]
cmp byte [eax + 1], 0
lea eax, [eax + 1]
jne 0x41d0f0
lea ecx, [ebp - 0x170]
sub eax, ecx
mov dword [ebp - 0xa0], 0xa
sub esp, 4
push eax
push ecx
lea eax, [ebp - 0x40]
push eax
call fcn.0040f968
add esp, 0x10
mov esi, eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0xf
lea eax, [edx + 4]
mov dword [edx + 0x14], 0
mov byte [edx + 4], 0
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x44], ecx
cmp ecx, 0xf
ja 0x41d177
mov edi, dword [esi + 0x14]
mov ebx, esi
add ebx, 4
mov ecx, edi
inc ecx
je 0x41d1c9
sub esp, 4
push ecx
push ebx
push eax
call fcn.0044c75c
mov edx, dword [ebp + 8]
add esp, 0x10
jmp 0x41d1ce
mov ebx, esi
add ebx, 4
mov ecx, dword [esi + 4]
mov dword [eax], ecx
mov dword [esi + 4], 0
mov edi, dword [esi + 0x14]
jmp 0x41d192
mov ebx, esi
add ebx, 4
mov ecx, dword [esi + 4]
mov dword [eax], ecx
mov dword [esi + 4], 0
mov edi, dword [esi + 0x14]
jmp 0x41d1ce
mov edi, 0xffffffff
mov dword [edx + 0x14], edi
mov eax, dword [ebp - 0x44]
mov dword [edx + 0x18], eax
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [ebx], 0
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x41cec1
mov eax, dword [ebp - 0x3c]
inc ecx
cmp ecx, 0x1000
jb 0x41d1c7
mov eax, dword [eax - 4]
jmp 0x41d203
mov edi, 0xffffffff
mov dword [edx + 0x14], edi
mov eax, dword [ebp - 0x44]
mov dword [edx + 0x18], eax
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [ebx], 0
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x41cec1
mov eax, dword [ebp - 0x3c]
inc ecx
cmp ecx, 0x1000
jb 0x41d203
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.004406b8
add esp, 0x10
jmp 0x41cec1