Function at 0x41f390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456ffc
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x46c], ecx
xor edi, edi
mov dword [ebp - 0x45c], 0
xor eax, eax
mov dword [ebp - 0x444], 7
mov bl, 1
mov dword [ebp - 0x448], edi
mov word [ebp - 0x458], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], eax
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x464]
mov byte [ebp - 4], bl
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x41f75b
push 0x19
push str.CurrentMajorVersionNumber
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x414], 7
mov dword [ebp - 0x418], eax
mov word [ebp - 0x428], ax
call fcn.00404c00
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x468]
push ecx
lea ecx, [ebp - 0x45c]
mov dword [ebp - 0x45c], esi
push ecx
push esi
lea eax, [ebp - 0x428]
mov dword [ebp - 0x468], 4
cmovae eax, dword [ebp - 0x428]
push esi
push eax
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
xor eax, eax
test esi, esi
cmove eax, dword [ebp - 0x45c]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp - 0x414]
cmp eax, 8
jb 0x41f4ca
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00405180
lea ecx, [ebp - 0x428]
test esi, esi
jne 0x41f550
push str.CurrentMinorVersionNumber
call fcn.00405870
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x460]
push ecx
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x468], esi
push ecx
push esi
lea eax, [ebp - 0x428]
mov dword [ebp - 0x460], 4
cmovae eax, dword [ebp - 0x428]
push esi
push eax
push dword [ebp - 0x464]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call eax
test eax, eax
mov eax, dword [ebp - 0x414]
cmove edi, dword [ebp - 0x468]
cmp eax, 8
jb 0x41f643
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00405180
jmp 0x41f643
push str.CurrentVersion
call fcn.00405870
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
push ecx
cmovae eax, dword [ebp - 0x428]
lea ecx, [ebp - 0x410]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x464]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x460], 0x400
call eax
mov esi, eax
test esi, esi
jne 0x41f5e2
cmp word [ebp - 0x410], ax
jne 0x41f5af
xor ecx, ecx
jmp 0x41f5cf
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f5c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x458]
call fcn.00404c00
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x414]
cmp eax, 8
jb 0x41f604
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00405180
test esi, esi
jne 0x41f643
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
movzx eax, word [eax]
sub eax, 0x30
cmp dword [ebp - 0x444], 8
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
movzx edi, word [eax + 4]
sub edi, 0x30
push 0x10
xor eax, eax
mov dword [ebp - 0x414], 7
push str.InstallationType
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
call fcn.00404c00
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
push ecx
cmovae eax, dword [ebp - 0x428]
lea ecx, [ebp - 0x410]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x464]
mov dword [ebp - 0x460], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41f6f2
cmp word [ebp - 0x410], ax
jne 0x41f6c6
xor ecx, ecx
jmp 0x41f6df
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f6d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x440]
call fcn.00404c00
mov eax, dword [ebp - 0x414]
cmp eax, 8
jb 0x41f710
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00405180
test esi, esi
jne 0x41f75b
push str.Client
lea ecx, [ebp - 0x440]
call fcn.00415080
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
lea ecx, [ebp - 0x440]
push str.Server
call fcn.00415080
test eax, eax
je 0x41f759
push str.Server_Core
lea ecx, [ebp - 0x440]
call fcn.00415080
test eax, eax
jne 0x41f75b
mov bl, 3
mov ecx, dword [ebp - 0x46c]
mov eax, dword [ebp - 0x45c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x42c]
mov dword [ecx + 8], edi
mov byte [ecx + 0x11a], bl
cmp eax, 8
jb 0x41f791
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00405180
xor eax, eax
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x430], 0
cmp eax, 8
jb 0x41f7cc
inc eax
lea ecx, [ebp - 0x458]
push eax
push dword [ebp - 0x458]
call fcn.00405180
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret