Function at 0x5794e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x284]
push ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov eax, 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0040e9e0
call fcn.00404380
push eax
test eax, eax
jne 0x57a025
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x20], 0
lea eax, [ebp - 8]
push eax
mov eax, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x5796ac
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, str.CurrentVersion
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryValueExW
cmp dword [ebp - 0xc], 1
jne 0x5796a4
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
call fcn.00410a80
mov eax, 1
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x54]
call fcn.0040e9e0
call fcn.00404380
push eax
test eax, eax
jne 0x57968c
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, str.CurrentVersion
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x579630
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040abb0
mov byte [ebp - 0x20], 1
mov eax, dword [ebp - 0x14]
mov edx, 0x68f358
call fcn.0040b010
test eax, eax
jne 0x579630
cmp dword [0x6c7504], 0xa
jae 0x579630
mov dword [0x6c7504], 6
mov dword [0x6c7508], 3
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, 0x68f36c
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x57968c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0040abb0
mov eax, dword [ebp - 0x14]
mov edx, 0x68f358
call fcn.0040b010
test eax, eax
jne 0x57968c
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x74]
xor dx, dx
call fcn.0040aab0
mov eax, dword [ebp - 0x74]
mov edx, dword [0x6c750c]
call fcn.00416c30
mov dword [0x6c750c], eax
call fcn.0040ec50
mov eax, dword [ebp - 0x10]
call fcn.00410ab0
pop eax
test eax, eax
je 0x5796a3
call fcn.0040ed80
nop
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
cmp dword [0x6c7504], 3
jne 0x5796db
cmp dword [0x6c7508], 0x33
jne 0x5796db
or dword [ebp - 4], 0x3000
call fcn.005774c0
mov cl, 8
mov edx, str.MyOperatingSystem:_Win_3.51
call fcn.00577de0
jmp 0x57a025
cmp dword [0x6c7504], 4
jne 0x5797d5
cmp dword [0x6c7508], 0
jne 0x5797d5
or dword [ebp - 4], 1
call fcn.005774c0
mov ebx, eax
lea eax, [ebp - 0x74]
call fcn.00403ec0
push 0
lea eax, [ebp - 0x78]
call fcn.00403ec0
mov edx, dword [0x6c750c]
xor eax, eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
mov ecx, 0xff
lea edx, [ebp - 0x178]
mov eax, 0xffffffff
call fcn.00405430
lea ecx, [ebp - 0x78]
xor dx, dx
lea eax, [ebp - 0x178]
call fcn.00409a00
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x78]
call fcn.0040a7d0
mov ecx, dword [ebp - 0x78]
mov edx, str.MyOperatingSystem:_Win_4.0.
lea eax, [ebp - 0x74]
call fcn.00409290
mov edx, dword [ebp - 0x74]
mov cl, 8
mov eax, ebx
call fcn.00577de0
mov eax, dword [0x6c750c]
cmp eax, 0x3b6
jb 0x57a025
sub eax, 0x3b6
je 0x5797a4
sub eax, 0xa1
je 0x5797b0
sub eax, 0x65
je 0x5797bc
sub eax, 0xa9
je 0x5797c8
jmp 0x57a025
or dword [ebp - 4], 0x38
jmp 0x57a025
or dword [ebp - 4], 0x58
jmp 0x57a025
or dword [ebp - 4], 0x98
jmp 0x57a025
or dword [ebp - 4], 0x5000
nop
jmp 0x57a025
cmp dword [0x6c7504], 4
jne 0x5798ad
cmp dword [0x6c7508], 1
jne 0x5798ad
or dword [ebp - 4], 2
call fcn.005774c0
mov ebx, eax
lea eax, [ebp - 0x78]
call fcn.00403ec0
push 0
lea eax, [ebp - 0x74]
call fcn.00403ec0
mov eax, dword [0x6c750c]
xor edx, edx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, 0xff
lea edx, [ebp - 0x278]
mov eax, 0xffffffff
call fcn.00405430
lea ecx, [ebp - 0x74]
xor dx, dx
lea eax, [ebp - 0x278]
call fcn.00409a00
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x74]
call fcn.0040a7d0
mov ecx, dword [ebp - 0x74]
mov edx, str.MyOperatingSystem:_Win_4.1.
lea eax, [ebp - 0x78]
call fcn.00409290
mov edx, dword [ebp - 0x78]
mov cl, 8
mov eax, ebx
call fcn.00577de0
mov eax, dword [0x6c750c]
cmp eax, 0x7ce
jb 0x57a025
sub eax, 0x7ce
je 0x579894
sub eax, 0xe0
je 0x5798a0
jmp 0x57a025
or dword [ebp - 4], 0x308
jmp 0x57a025
or dword [ebp - 4], 0x508
nop
jmp 0x57a025
cmp dword [0x6c7504], 4
jne 0x579971
cmp dword [0x6c7508], 9
jne 0x579971
or dword [ebp - 4], 4
call fcn.005774c0
mov ebx, eax
lea eax, [ebp - 0x78]
call fcn.00403ec0
push 0
lea eax, [ebp - 0x74]
call fcn.00403ec0
mov edx, dword [0x6c750c]
xor eax, eax
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, 0xff
lea edx, [ebp - 0x180]
mov eax, 0xffffffff
call fcn.00405430
lea ecx, [ebp - 0x74]
xor dx, dx
lea eax, [ebp - 0x180]
call fcn.00409a00
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x74]
call fcn.0040a7d0
mov ecx, dword [ebp - 0x74]
mov edx, str.MyOperatingSystem:_Win_4.9.
lea eax, [ebp - 0x78]
call fcn.00409290
mov edx, dword [ebp - 0x78]
mov cl, 8
mov eax, ebx
call fcn.00577de0
mov eax, dword [0x6c750c]
cmp eax, 0xbb8
jb 0x57a025
sub eax, 0xbb8
jne 0x57a025
mov esi, esi
or dword [ebp - 4], 0x808
nop
jmp 0x57a025
cmp dword [0x6c7504], 4
jne 0x579a13
cmp dword [0x6c7508], 0xa
jne 0x579a13
or dword [ebp - 4], 0x308
call fcn.005774c0
mov ebx, eax
lea eax, [ebp - 0x78]
call fcn.00403ec0
push 0
lea eax, [ebp - 0x74]
call fcn.00403ec0
mov edx, dword [0x6c750c]
xor eax, eax
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, 0xff
lea edx, [ebp - 0x180]
mov eax, 0xffffffff
call fcn.00405430
lea ecx, [ebp - 0x74]
xor dx, dx
lea eax, [ebp - 0x180]
call fcn.00409a00
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x74]
call fcn.0040a7d0
mov ecx, dword [ebp - 0x74]
mov edx, str.MyOperatingSystem:_Win_4.10.
lea eax, [ebp - 0x78]
call fcn.00409290
mov edx, dword [ebp - 0x78]
mov cl, 8
mov eax, ebx
call fcn.00577de0
jmp 0x57a025
cmp dword [0x6c7504], 4
jne 0x579ab4
cmp dword [0x6c7508], 0x5a
jne 0x579ab4
call fcn.005774c0
mov ebx, eax
lea eax, [ebp - 0x78]
call fcn.00403ec0
push 0
lea eax, [ebp - 0x74]
call fcn.00403ec0
mov eax, dword [0x6c750c]
xor edx, edx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, 0xff
lea edx, [ebp - 0x180]
mov eax, 0xffffffff
call fcn.00405430
lea ecx, [ebp - 0x74]
xor dx, dx
lea eax, [ebp - 0x180]
call fcn.00409a00
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x74]
call fcn.0040a7d0
mov ecx, dword [ebp - 0x74]
mov edx, str.MyOperatingSystem:_Win_4.90.
lea eax, [ebp - 0x78]
call fcn.00409290
mov edx, dword [ebp - 0x78]
mov cl, 8
mov eax, ebx
call fcn.00577de0
or dword [ebp - 4], 0x808
jmp 0x57a025
cmp dword [0x6c7504], 5
jne 0x579b56
cmp dword [0x6c7508], 0
jne 0x579b56
call fcn.005774c0
mov ebx, eax
lea eax, [ebp - 0x78]
call fcn.00403ec0
push 0
lea eax, [ebp - 0x74]
call fcn.00403ec0
mov edx, dword [0x6c750c]
xor eax, eax
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, 0xff
lea edx, [ebp - 0x180]
mov eax, 0xffffffff
call fcn.00405430
lea ecx, [ebp - 0x74]
xor dx, dx
lea eax, [ebp - 0x180]
call fcn.00409a00
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x74]
call fcn.0040a7d0
mov ecx, dword [ebp - 0x74]
mov edx, str.MyOperatingSystem:_Win_5.0.
lea eax, [ebp - 0x78]
call fcn.00409290
mov edx, dword [ebp - 0x78]
mov cl, 8
mov eax, ebx
call fcn.00577de0
or dword [ebp - 4], 0x9000
jmp 0x57a025
cmp dword [0x6c7504], 5
jne 0x579bf8
cmp dword [0x6c7508], 1
jne 0x579bf8
call fcn.005774c0
mov ebx, eax
lea eax, [ebp - 0x78]
call fcn.00403ec0
push 0
lea eax, [ebp - 0x74]
call fcn.00403ec0
mov edx, dword [0x6c750c]
xor eax, eax
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, 0xff
lea edx, [ebp - 0x180]
mov eax, 0xffffffff
call fcn.00405430
lea ecx, [ebp - 0x74]
xor dx, dx
lea eax, [ebp - 0x180]
call fcn.00409a00
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x74]
call fcn.0040a7d0
mov ecx, dword [ebp - 0x74]
mov edx, str.MyOperatingSystem:_Win_5.1.
lea eax, [ebp - 0x78]
call fcn.00409290
mov edx, dword [ebp - 0x78]
mov cl, 8
mov eax, ebx
call fcn.00577de0
or dword [ebp - 4], 0x31000
jmp 0x57a025
cmp dword [0x6c7504], 5
jne 0x579cc1
cmp dword [0x6c7508], 2
jne 0x579cc1
call fcn.005774c0
mov ebx, eax
lea eax, [ebp - 0x78]
call fcn.00403ec0
push 0
lea eax, [ebp - 0x74]
call fcn.00403ec0
mov edx, dword [0x6c750c]
xor eax, eax
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, 0xff
lea edx, [ebp - 0x180]
mov eax, 0xffffffff
call fcn.00405430
lea ecx, [ebp - 0x74]
xor dx, dx
lea eax, [ebp - 0x180]
call fcn.00409a00
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x74]
call fcn.0040a7d0
mov ecx, dword [ebp - 0x74]
mov edx, str.MyOperatingSystem:_Win_5.2.
lea eax, [ebp - 0x78]
call fcn.00409290
mov edx, dword [ebp - 0x78]
mov cl, 8
mov eax, ebx
call fcn.00577de0
or dword [ebp - 4], 0x41000
mov eax, dword [0x6c750c]
cmp eax, 0xece
jb 0x579cb4
sub eax, 0xece
jne 0x579cb4
or dword [ebp - 4], 0x110000
jmp 0x57a025
or dword [ebp - 4], 0x80000
nop
jmp 0x57a025
cmp dword [0x6c7504], 6
jne 0x579d62
cmp dword [0x6c7508], 0
jne 0x579d62
call fcn.005774c0
mov ebx, eax
lea eax, [ebp - 0x78]
call fcn.00403ec0
push 0
lea eax, [ebp - 0x74]
call fcn.00403ec0
mov eax, dword [0x6c750c]
xor edx, edx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, 0xff
lea edx, [ebp - 0x180]
mov eax, 0xffffffff
call fcn.00405430
lea ecx, [ebp - 0x74]
xor dx, dx
lea eax, [ebp - 0x180]
call fcn.00409a00
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x74]
call fcn.0040a7d0
mov ecx, dword [ebp - 0x74]
mov edx, str.MyOperatingSystem:_Win_6.0.
lea eax, [ebp - 0x78]
call fcn.00409290
mov edx, dword [ebp - 0x78]
mov cl, 8
mov eax, ebx
call fcn.00577de0
or dword [ebp - 4], 0x201000
jmp 0x57a025
cmp dword [0x6c7504], 6
jne 0x579e04
cmp dword [0x6c7508], 1
jne 0x579e04
call fcn.005774c0
mov ebx, eax
lea eax, [ebp - 0x78]
call fcn.00403ec0
push 0
lea eax, [ebp - 0x74]
call fcn.00403ec0
mov edx, dword [0x6c750c]
xor eax, eax
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, 0xff
lea edx, [ebp - 0x180]
mov eax, 0xffffffff
call fcn.00405430
lea ecx, [ebp - 0x74]
xor dx, dx
lea eax, [ebp - 0x180]
call fcn.00409a00
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x74]
call fcn.0040a7d0
mov ecx, dword [ebp - 0x74]
mov edx, str.MyOperatingSystem:_Win_6.1.
lea eax, [ebp - 0x78]
call fcn.00409290
mov edx, dword [ebp - 0x78]
mov cl, 8
mov eax, ebx
call fcn.00577de0
or dword [ebp - 4], 0x401000
jmp 0x57a025
cmp dword [0x6c7504], 6
jne 0x579e51
cmp dword [0x6c7508], 2
jne 0x579e51
or dword [ebp - 4], 0x801000
cmp byte [ebp - 0x20], 0
je 0x57a025
mov eax, dword [ebp - 0x14]
mov edx, 0x68f358
call fcn.0040b010
test eax, eax
jne 0x57a025
and dword [ebp - 4], 0xff7fffff
or dword [ebp - 4], 0x1000000
mov esi, esi
jmp 0x57a025
cmp dword [0x6c7504], 6
jne 0x579e6f
cmp dword [0x6c7508], 3
jne 0x579e6f
or dword [ebp - 4], 0x1001000
jmp 0x57a025
cmp dword [0x6c7504], 0xa
jne 0x579e8d
cmp dword [0x6c7508], 0
jne 0x579e8d
or dword [ebp - 4], 0x2001000
jmp 0x57a025
call fcn.005774c0
mov ebx, eax
lea eax, [ebp - 0x78]
call fcn.00403ec0
push 0
mov eax, str.MyOperatingSystem:_Win
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x27c]
call fcn.00403ec0
mov eax, dword [0x6c7504]
xor edx, edx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
push dword [ebp - 0x94]
push dword [ebp - 0x98]
mov ecx, 0xff
lea edx, [ebp - 0x198]
mov eax, 0xffffffff
call fcn.00405430
lea ecx, [ebp - 0x27c]
xor dx, dx
lea eax, [ebp - 0x198]
call fcn.00409a00
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x27c]
call fcn.0040a7d0
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x8c], eax
mov eax, 0x68f2f4
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x280]
call fcn.00403ec0
mov eax, dword [0x6c7508]
xor edx, edx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
push dword [ebp - 0x94]
push dword [ebp - 0x98]
mov ecx, 0xff
lea edx, [ebp - 0x198]
mov eax, 0xffffffff
call fcn.00405430
lea ecx, [ebp - 0x280]
xor dx, dx
lea eax, [ebp - 0x198]
call fcn.00409a00
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x280]
call fcn.0040a7d0
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x84], eax
mov eax, 0x68f2f4
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x284]
call fcn.00403ec0
mov eax, dword [0x6c750c]
xor edx, edx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
push dword [ebp - 0x94]
push dword [ebp - 0x98]
mov ecx, 0xff
lea edx, [ebp - 0x198]
mov eax, 0xffffffff
call fcn.00405430
lea ecx, [ebp - 0x284]
xor dx, dx
lea eax, [ebp - 0x198]
call fcn.00409a00
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x284]
call fcn.0040a7d0
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x7c], eax
lea edx, [ebp - 0x90]
mov ecx, 5
lea eax, [ebp - 0x78]
call fcn.00409500
mov edx, dword [ebp - 0x78]
mov cl, 8
mov eax, ebx
call fcn.00577de0
call fcn.0040ec50
lea eax, [ebp - 0x284]
call fcn.00403ec0
lea eax, [ebp - 0x280]
call fcn.00403ec0
lea eax, [ebp - 0x27c]
call fcn.00403ec0
lea eax, [ebp - 0x78]
call fcn.00403ec0
lea eax, [ebp - 0x74]
call fcn.00403ec0
lea eax, [ebp - 0x14]
call fcn.0040a950
lea eax, [ebp - 0x18]
call fcn.0040a950
pop eax
test eax, eax
je 0x57a075
call fcn.0040ed80
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret