Function at 0x41f374
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.00524727
add esp, 0x10
mov dword [ebp - 0x48], 0x400
sub esp, 4
lea eax, [ebp - 0x170]
push 0x80
push 0
push eax
call fcn.00524727
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], 0x53474c
mov dword [ebp - 0x88], 0x53c5b8
mov dword [ebp - 0x84], ebp
mov dword [ebp - 0x7c], esp
mov dword [ebp - 0x84], 0x41f8d8
mov dword [ebp - 0xa0], 1
lea eax, [ebp - 0xa8]
call fcn.005353b5
sub esp, 0xc
push 0x2c
call fcn.0051c414
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.0052455c
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 0x53c481
push eax
call fcn.004056a0
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.00441330
add esp, 0x10
cmp dword [ebp - 0x28], 0xf
ja 0x41f4ce
lea eax, [ebp - 0x3c]
jmp 0x41f4d1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xa0], 4
sub esp, 4
lea ecx, [ebp - 0x10]
push ecx
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyA
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x41f515
mov eax, dword [ebp - 0x3c]
inc ecx
cmp ecx, 0x1000
jb 0x41f509
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.0051a4c8
add esp, 0x10
mov eax, dword [ebp + 8]
test esi, esi
jne 0x41f556
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 0x53c3d1
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
mov eax, dword [ebp + 8]
je 0x41f62f
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 0x53c38a
push eax
call fcn.004056a0
add esp, 0x10
mov ecx, dword [ebp - 0xb8]
cmp ecx, 0x10
jb 0x41f5ae
mov eax, dword [ebp - 0xcc]
inc ecx
cmp ecx, 0x1000
jb 0x41f5a2
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.0051a4c8
add esp, 0x10
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41f5e6
mov ecx, dword [ebp - 0x18]
sub ecx, eax
cmp ecx, 0x1000
jb 0x41f5c5
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.0051a4c8
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 0x41f60f
mov eax, dword [ebp - 0xe8]
inc ecx
cmp ecx, 0x1000
jb 0x41f603
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.0051a4c8
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0xa8]
push eax
call fcn.005353d6
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 0x41f644
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.00411ed0
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 0x41f770
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 0x53c3ea
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041fb30
add esp, 0x10
lea eax, [ebp - 0x171]
nop word [eax + eax]
cmp byte [eax + 1], 0
lea eax, [eax + 1]
jne 0x41f6f4
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.00411ed0
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 0x41f825
mov edi, dword [esi + 0x14]
mov ebx, esi
add ebx, 4
mov ecx, edi
inc ecx
je 0x41f851
sub esp, 4
push ecx
push ebx
push eax
call fcn.0052455c
mov edx, dword [ebp + 8]
add esp, 0x10
jmp 0x41f856
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 0x53c3ea
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041fb30
add esp, 0x10
lea eax, [ebp - 0x171]
nop dword [eax]
cmp byte [eax + 1], 0
lea eax, [eax + 1]
jne 0x41f7b4
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.00411ed0
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 0x41f83b
mov edi, dword [esi + 0x14]
mov ebx, esi
add ebx, 4
mov ecx, edi
inc ecx
je 0x41f88d
sub esp, 4
push ecx
push ebx
push eax
call fcn.0052455c
mov edx, dword [ebp + 8]
add esp, 0x10
jmp 0x41f892
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 0x41f856
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 0x41f892
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 0x41f585
mov eax, dword [ebp - 0x3c]
inc ecx
cmp ecx, 0x1000
jb 0x41f88b
mov eax, dword [eax - 4]
jmp 0x41f8c7
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 0x41f585
mov eax, dword [ebp - 0x3c]
inc ecx
cmp ecx, 0x1000
jb 0x41f8c7
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.0051a4c8
add esp, 0x10
jmp 0x41f585