Function at 0x41b788
Capabilities:
Check os version
Delete registry value
Query or enumerate registry value

Disassembly:
mov eax, 0x461d5d
call fcn.0043b400
sub esp, 0x5f8
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov eax, dword [eax + 8]
push edi
cmp eax, ebx
mov esi, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], 0x4675bc
je 0x41b7b6
mov dword [ebp - 0x18], eax
push 1
lea eax, [ebp - 0x11]
pop edi
lea ecx, [ebp - 0x68]
push edi
push eax
push 0x477e98
call fcn.0040a610
mov eax, dword [eax + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x41b7da
mov eax, 0x4675bc
push dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 0x36
push 0x477e50
push eax
call fcn.004083a8
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.00406295
lea eax, [ebp - 0x114]
push 0x64c
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00403dbe
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], edi
call fcn.00401f3e
push eax
push ebx
push 0xc
push 0x3eb
push dword [0x47d7e0]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x2d]
mov edi, 0x467550
push ebx
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0x467548
mov dword [ebp - 0xa4], edi
call fcn.00401aa0
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
mov eax, dword [esi]
mov byte [ebp - 4], 2
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00403599
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x41b88c
mov eax, 0x46756c
push eax
lea eax, [ebp - 0xc4]
push 0x476ab8
push eax
call fcn.00405841
add esp, 0xc
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00401279
lea eax, [ebp - 0x11]
push ebx
push eax
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xec], 0x467548
mov dword [ebp - 0xcc], edi
call fcn.00401aa0
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
mov eax, dword [esi]
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00403599
mov eax, dword [eax + 8]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x41b8f3
mov eax, 0x46756c
push eax
lea eax, [ebp - 0xec]
push 0x477e2c
push eax
call fcn.00405841
add esp, 0xc
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00401279
mov dword [ebp - 0x10], ebx
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], ebx
call dword [eax]
test eax, eax
jne 0x41bba8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 0xf003f
push ebx
push 0x476adc
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x41b95b
lea ecx, [ebp - 0x10]
call fcn.004090c6
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
cmp dword [ecx + 0xc], ebx
jne 0x41bae8
cmp eax, ebx
jne 0x41bae8
lea eax, [ebp - 0x13]
push ebx
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x467548
mov dword [ebp - 0x70], edi
call fcn.00401aa0
lea eax, [ebp - 0x9c]
push 0x105
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 7
mov dword [ebp - 0x2c], 0x104
call fcn.00401799
mov dword [ebp - 0x34], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 8
call fcn.00401f3e
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov dword [ecx + 8], eax
lea ecx, [ebp - 0xec]
call fcn.00401f3e
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], ebx
push ecx
lea ecx, [ebp - 0x34]
push dword [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
call fcn.004019ee
cmp dword [ebp - 0x20], ebx
jne 0x41bad9
mov eax, dword [esi]
lea ecx, [ebp - 0x90]
push ebx
push ecx
push 0x11
mov ecx, esi
call dword [eax + 0x18]
lea ecx, [ebp - 0xec]
call fcn.00401f3e
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], ebx
jne 0x41bad9
lea eax, [ebp + 0x13]
push 1
push eax
push 0x477e98
lea ecx, [ebp - 0x13c]
call fcn.0040a610
mov eax, dword [eax + 8]
mov byte [ebp - 4], 9
cmp eax, ebx
jne 0x41ba5f
mov eax, 0x4675bc
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 0x24]
push 0x477df4
push eax
mov dword [ebp - 0x20], 0x56
call fcn.004083a8
add esp, 0xc
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 7
call fcn.00406295
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 6
call fcn.00401279
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004090c6
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.00401279
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00401279
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00401279
xor eax, eax
jmp 0x41c0a7
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 6
call fcn.00401279
lea eax, [ebp - 0x13]
push ebx
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0x467548
mov dword [ebp - 0x48], edi
call fcn.00401aa0
lea eax, [ebp - 0x9c]
push 0x105
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x3c], 0x104
call fcn.00401799
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xb
call fcn.00401f3e
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x20], eax
mov dword [edi + 8], eax
call fcn.00401f3e
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], ebx
push ecx
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
lea ecx, [ebp - 0x9c]
sete byte [ebp - 0x11]
mov byte [ebp - 4], 0xa
call fcn.004019ee
cmp byte [ebp - 0x11], bl
je 0x41bb9c
lea eax, [ebp - 0x20]
push 0xa
push eax
lea ecx, [ebp - 0x68]
call fcn.0041ced3
mov eax, dword [esi]
push dword [ebp - 0x20]
mov ecx, esi
call dword [eax + 0x20]
lea ecx, [ebp - 0xc4]
call fcn.00401f3e
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401279
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x19]
push eax
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 1
push dword [ebp + 0xc]
call fcn.0040c306
mov ecx, esi
call fcn.0041c0f6
cmp al, bl
je 0x41bfa3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
cmp eax, 1
jne 0x41bd19
mov eax, dword [esi]
push 0xe
mov ecx, esi
call dword [eax + 0x28]
test al, al
je 0x41bd19
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp + 8], ecx
je 0x41bfa3
mov edi, 0x4675a8
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x604]
call fcn.0041df8d
lea eax, [ebp + 0xf]
push ebx
push eax
push 0x47d770
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x68], 0x4675b0
mov dword [ebp - 0x48], edi
call fcn.0040b32a
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0x14]
lea eax, [ebp - 0x68]
push eax
push ebx
call fcn.0040bbda
push eax
lea ecx, [ebp - 0x604]
call fcn.0041e4cb
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xc
call fcn.00406295
push esi
lea ecx, [ebp - 0x2d4]
call fcn.0040619a
mov eax, dword [esi]
lea ecx, [ebp - 0x164]
push 0xe
push ecx
mov ecx, esi
mov byte [ebp - 4], 0xe
call dword [eax + 0x1c]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xf
push ecx
mov ecx, eax
call fcn.0040b124
push ebx
push eax
lea eax, [ebp - 0x604]
lea ecx, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x13c]
push eax
mov byte [ebp - 4], 0x10
call fcn.004090dd
lea ecx, [ebp - 0x13c]
call fcn.00406295
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xf
call fcn.00406295
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0xe
call fcn.00401279
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 0xc
call fcn.0040632b
lea ecx, [ebp - 0x604]
mov byte [ebp - 4], 6
call fcn.0041e3e4
lea ecx, [ebp + 8]
call fcn.0040bc9b
mov eax, dword [esi + 0xc]
cmp dword [ebp + 8], eax
jne 0x41bc06
jmp 0x41bfa3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test eax, eax
jne 0x41bfa3
push esi
lea ecx, [ebp - 0x2d4]
call fcn.0040619a
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x1d8], eax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x1d4], al
call fcn.0042ddf7
cmp eax, 6
mov edi, 0x4675a8
jb 0x41bd72
cmp byte [ebp - 0x19], bl
je 0x41bd72
call fcn.00437053
test al, al
jne 0x41bd72
mov byte [ebp - 0x1d3], 1
jmp 0x41be77
cmp byte [ebp - 0x12], bl
mov byte [ebp - 0x1d3], bl
jne 0x41be77
mov eax, dword [esi]
push 0x10
mov ecx, esi
call dword [eax + 0x28]
test al, al
jne 0x41be77
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
jne 0x41bdf1
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 6
call fcn.0040632b
cmp dword [ebp - 0x10], ebx
je 0x41bdbd
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.00401279
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00401279
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00401279
push 2
jmp 0x41bf8b
cmp byte [0x47d660], bl
jne 0x41be01
cmp byte [0x47dec0], bl
je 0x41be77
lea eax, [ebp + 0xb]
push 1
push eax
push 0x477e98
lea ecx, [ebp - 0x90]
call fcn.0040a610
mov eax, 0x477d90
mov byte [ebp - 4], 0x12
mov ecx, eax
mov dword [ebp - 0x68], 0x4675b0
test ecx, ecx
mov dword [ebp - 0x48], edi
jne 0x41be35
mov eax, 0x47d770
lea ecx, [ebp - 0x13]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.0040b32a
lea eax, [ebp - 0x90]
push 0x85
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x13
call fcn.0045d6d0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x12
call fcn.00406295
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x11
call fcn.00406295
cmp byte [ebp - 0x12], bl
push dword [ebp + 0x14]
mov ecx, esi
sete al
push eax
mov eax, dword [esi]
push dword [ebp + 0xc]
call dword [eax + 0x2c]
push dword [eax + 0x20]
lea ecx, [ebp - 0x2d4]
call fcn.004063b1
push 2
pop ecx
sub eax, ecx
je 0x41bf91
sub eax, 5
je 0x41beb6
sub eax, ecx
je 0x41bf91
jmp 0x41bf94
cmp byte [0x47d660], bl
jne 0x41bec6
cmp byte [0x47dec0], bl
je 0x41bf3c
lea eax, [ebp + 0xf]
push 1
push eax
push 0x477e98
lea ecx, [ebp - 0x90]
call fcn.0040a610
mov eax, 0x477d60
mov byte [ebp - 4], 0x14
mov ecx, eax
mov dword [ebp - 0x68], 0x4675b0
test ecx, ecx
mov dword [ebp - 0x48], edi
jne 0x41befa
mov eax, 0x47d770
lea ecx, [ebp + 0xb]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.0040b32a
lea eax, [ebp - 0x90]
push 0x8e
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x15
call fcn.0045d6d0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x14
call fcn.00406295
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x11
call fcn.00406295
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 6
call fcn.0040632b
cmp dword [ebp - 0x10], ebx
je 0x41bf5c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.00401279
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00401279
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00401279
push 7
pop eax
jmp 0x41c0a7
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 6
call fcn.0040632b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test eax, eax
jne 0x41c013
cmp dword [ebp - 0x18], ebx
jne 0x41bfda
lea ecx, [ebp - 0xc4]
call fcn.00401f3e
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push eax
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0xec]
call fcn.00401f3e
push eax
push dword [ebp - 0x10]
call esi
cmp byte [ebp + 0x10], bl
je 0x41c013
mov dword [ebp + 0x10], ebx
push 0xf003f
push 0x476a84
push SysReAllocStringLen
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x16
call fcn.0041c0b8
test eax, eax
jne 0x41c00f
push 0x476a60
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov byte [ebp - 4], 6
lea eax, [ebp + 0x17]
push 1
push eax
push 0x477e98
lea ecx, [ebp - 0x164]
call fcn.0040a610
mov eax, dword [eax + 8]
mov byte [ebp - 4], 0x17
cmp eax, ebx
jne 0x41c039
mov eax, 0x4675bc
push dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0xab
push 0x477df4
push eax
call fcn.004083a8
add esp, 0xc
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 6
call fcn.00406295
cmp dword [ebp - 0x10], ebx
je 0x41c077
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.00401279
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00401279
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00401279
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10