Function at 0x416e44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x53c
xor esi, esi
inc esi
mov dword [ebp - 0x48], esi
xor edi, edi
mov dword [ebp - 0x10], edi
sub esp, 4
mov ebx, 0x400
lea eax, [ebp - 0x540]
push ebx
push edi
push eax
call fcn.0050df9b
add esp, 0x10
mov dword [ebp - 0x44], ebx
sub esp, 4
lea eax, [ebp - 0x140]
push 0x80
push edi
push eax
call fcn.0050df9b
add esp, 0x10
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], edi
mov byte [ebp - 0xa0], 0
lea ebx, [ebp - 0x40]
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
lea eax, [ebp - 0x88]
mov dword [eax + 0x1c], 0x51dfc0
mov dword [eax + 0x20], 0x526618
mov dword [eax + 0x24], ebp
mov dword [eax + 0x2c], esp
mov dword [eax + 0x24], 0x417290
mov dword [eax + 8], esi
call fcn.0051ec29
sub esp, 8
mov eax, 0x2c
push eax
push ebx
call fcn.00404190
add esp, 0x10
test al, al
je 0x416f11
mov esi, dword [ebp - 0x3c]
sub esp, 4
mov eax, 0x2c
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProductName
push esi
call fcn.0050ddd0
add esp, 0x10
add esi, 0x2c
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0xc0]
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], 0
mov byte [eax + 4], 0
mov dword [ebp - 0x80], 2
sub esp, 4
push 0x40
push 0x5264b5
push eax
call fcn.00403518
add esp, 0x10
mov dword [ebp - 0x80], 3
sub esp, 4
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xc0]
push eax
push ecx
call fcn.0042b454
add esp, 0x10
cmp dword [ebp - 0x18], 0xf
ja 0x416f6f
lea eax, [ebp - 0x2c]
jmp 0x416f72
mov eax, dword [ebp - 0x2c]
mov ecx, 4
mov dword [ebp - 0x80], ecx
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 edi, dword [ebp + 8]
sub esp, 0xc
lea eax, [ebp - 0x30]
push eax
call fcn.00403adc
add esp, 0x10
test esi, esi
jne 0x416fde
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x80], 5
sub esp, 8
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x540]
push ecx
push edx
push 0
push 0x526405
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
mov edi, dword [ebp + 8]
je 0x41707b
mov dword [edi + 0x18], 0xf
xor eax, eax
mov dword [edi + 0x14], eax
mov byte [edi + 4], 0
mov dword [ebp - 0x80], 0x12
sub esp, 4
push eax
push 0x5263be
push edi
call fcn.00403518
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0xc0]
push eax
call fcn.00403adc
add esp, 0x10
mov eax, dword [ebp - 0x3c]
test eax, eax
mov esi, dword [ebp + 8]
je 0x41704a
mov ecx, dword [ebp - 0x34]
sub ecx, eax
cmp ecx, 0x1000
jb 0x417033
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.005040fc
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
sub esp, 0xc
lea eax, [ebp - 0xa4]
push eax
call fcn.00403adc
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x88]
push eax
call fcn.0051ec4a
add esp, 0x10
mov eax, esi
add esp, 0x53c
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x541]
cmp byte [eax + 1], 0
lea eax, [eax + 1]
jne 0x417081
lea ecx, [ebp - 0x540]
sub eax, ecx
mov dword [ebp - 0x80], 6
sub esp, 4
lea edx, [ebp - 0xa4]
push eax
push ecx
push edx
call fcn.0040c98c
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x80], 7
sub esp, 8
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x48]
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 0x4171b2
mov dword [ebp - 0x80], 0xd
sub esp, 0xc
push eax
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov eax, 0x52641e
neg eax
mov ecx, dword [ebp - 0x90]
lea eax, [ecx + eax + 0x52641f]
mov dword [ebp - 0x80], 0xe
sub esp, 8
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040f360
add esp, 0x10
mov dword [ebp - 0x80], 0xf
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040ca60
add esp, 0x10
mov dword [ebp - 0x80], 0x10
sub esp, 4
push 1
push 0x52641e
lea eax, [ebp - 0x30]
push eax
call fcn.0040c98c
add esp, 0x10
lea eax, [ebp - 0x141]
cmp byte [eax + 1], 0
lea eax, [eax + 1]
jne 0x417175
lea ecx, [ebp - 0x140]
sub eax, ecx
mov dword [ebp - 0x80], 0x11
sub esp, 4
push eax
push ecx
lea eax, [ebp - 0x30]
push eax
call fcn.0040c98c
add esp, 0x10
sub esp, 8
push eax
push dword [ebp + 8]
call fcn.00405288
add esp, 0x10
jmp 0x41727c
mov ecx, 8
mov dword [ebp - 0x80], ecx
sub esp, 0xc
push eax
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov eax, 0x52641e
neg eax
mov ecx, dword [ebp - 0x90]
lea eax, [ecx + eax + 0x52641f]
mov dword [ebp - 0x80], 9
sub esp, 8
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040f360
add esp, 0x10
mov dword [ebp - 0x80], 0xa
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040ca60
add esp, 0x10
mov dword [ebp - 0x80], 0xb
sub esp, 4
push 1
push 0x52641e
lea eax, [ebp - 0x30]
push eax
call fcn.0040c98c
add esp, 0x10
lea eax, [ebp - 0x141]
cmp byte [eax + 1], 0
lea eax, [eax + 1]
jne 0x417244
lea ecx, [ebp - 0x140]
sub eax, ecx
mov dword [ebp - 0x80], 0xc
sub esp, 4
push eax
push ecx
lea eax, [ebp - 0x30]
push eax
call fcn.0040c98c
add esp, 0x10
sub esp, 8
push eax
push dword [ebp + 8]
call fcn.00405288
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x30]
push eax
call fcn.00403adc
add esp, 0x10
jmp 0x417007