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

Disassembly:
mov eax, 0x461fcd
call fcn.0043c274
sub esp, 0x6f8
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], 0x4675fc
je 0x41bc6e
mov dword [ebp - 0x18], eax
push 1
lea eax, [ebp - 0x11]
pop edi
lea ecx, [ebp - 0x64]
push edi
push eax
push 0x478500
call fcn.0040a47f
mov eax, dword [eax + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x41bc92
mov eax, 0x4675fc
push dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0x36
push 0x4784b8
push eax
call fcn.00408297
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.0040604e
lea eax, [ebp - 0x114]
push 0x64c
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00403d0f
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 4], edi
cmp eax, ebx
jne 0x41bce8
mov eax, 0x467588
push eax
push ebx
push 0xc
push 0x3eb
push dword [0x47e400]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea eax, [ebp - 0x29]
mov edi, 0x46758c
push ebx
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0x467594
mov dword [ebp - 0xa4], edi
call fcn.00401c77
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
mov eax, dword [esi]
mov byte [ebp - 4], 2
call dword [eax + 0x2c]
mov ecx, eax
call fcn.004034e5
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x41bd48
mov eax, 0x467588
push eax
lea eax, [ebp - 0xc4]
push 0x476bf8
push eax
call fcn.0040566d
add esp, 0xc
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0040125c
lea eax, [ebp - 0x11]
push ebx
push eax
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xec], 0x467594
mov dword [ebp - 0xcc], edi
call fcn.00401c77
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
mov eax, dword [esi]
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
mov ecx, eax
call fcn.004034e5
mov eax, dword [eax + 8]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x41bdaf
mov eax, 0x467588
push eax
lea eax, [ebp - 0xec]
push 0x478494
push eax
call fcn.0040566d
add esp, 0xc
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.0040125c
mov dword [ebp - 0x10], ebx
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x38], ebx
call dword [eax]
test eax, eax
jne 0x41c06f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 0xf003f
push ebx
push 0x476c1c
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41be17
lea ecx, [ebp - 0x10]
call fcn.00408f03
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
cmp dword [ecx + 0xc], ebx
jne 0x41bfab
cmp eax, ebx
jne 0x41bfab
lea eax, [ebp - 0x13]
push ebx
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x467594
mov dword [ebp - 0x70], edi
call fcn.00401c77
mov eax, dword [ebp - 0xe4]
mov byte [ebp - 4], 7
cmp eax, ebx
mov dword [ebp - 0x68], 0x104
mov dword [ebp - 0x18], 0x467588
je 0x41be6a
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x9c]
push 0x105
push eax
lea ecx, [ebp - 0x90]
call fcn.00401822
mov ecx, dword [eax]
mov byte [ebp - 4], 8
mov byte [eax + 4], 1
call fcn.00401e7b
mov eax, dword [eax]
lea ecx, [ebp - 0x68]
push ecx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
call fcn.00401aab
cmp dword [ebp - 0x20], ebx
jne 0x41bf9c
mov eax, dword [esi]
lea ecx, [ebp - 0x90]
push ebx
push ecx
push 0x11
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [ebp - 0xe4]
cmp eax, ebx
jne 0x41bee6
mov eax, 0x467588
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], ebx
jne 0x41bf9c
lea eax, [ebp + 0x13]
push 1
push eax
push 0x478500
lea ecx, [ebp - 0x13c]
call fcn.0040a47f
mov eax, dword [eax + 8]
mov byte [ebp - 4], 9
cmp eax, ebx
jne 0x41bf22
mov eax, 0x4675fc
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 0x24]
push 0x47845c
push eax
mov dword [ebp - 0x20], 0x5a
call fcn.00408297
add esp, 0xc
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 7
call fcn.0040604e
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 6
call fcn.0040125c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00408f03
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.0040125c
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0040125c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.0040125c
xor eax, eax
jmp 0x41c57a
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 6
call fcn.0040125c
lea eax, [ebp - 0x13]
push ebx
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x467594
mov dword [ebp - 0x44], edi
call fcn.00401c77
mov edi, dword [ebp - 0xbc]
mov byte [ebp - 4], 0xa
cmp edi, ebx
mov dword [ebp - 0x30], 0x104
jne 0x41bfdc
mov edi, 0x467588
lea eax, [ebp - 0x9c]
push 0x105
push eax
lea ecx, [ebp - 0x64]
call fcn.00401822
mov ecx, dword [eax]
mov byte [ebp - 4], 0xb
mov byte [eax + 4], 1
call fcn.00401e7b
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
lea ecx, [ebp - 0x9c]
sete byte [ebp - 0x11]
mov byte [ebp - 4], 0xa
call fcn.00401aab
cmp byte [ebp - 0x11], bl
je 0x41c063
lea eax, [ebp - 0x20]
push 0xa
push eax
lea ecx, [ebp - 0x64]
call fcn.0041d31d
mov eax, dword [esi]
push dword [ebp - 0x20]
mov ecx, esi
call dword [eax + 0x20]
mov eax, dword [ebp - 0xbc]
cmp eax, ebx
jne 0x41c059
mov eax, 0x467588
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.0040125c
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x19]
push eax
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x30], esp
push 1
push dword [ebp + 0xc]
call fcn.0040c0ad
mov ecx, esi
call fcn.0041c5c9
cmp al, bl
je 0x41c46e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
cmp eax, 1
jne 0x41c1e4
mov eax, dword [esi]
push 0xe
mov ecx, esi
call dword [eax + 0x28]
test al, al
je 0x41c1e4
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp + 8], ecx
je 0x41c46e
mov edi, 0x4675e8
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x704]
call fcn.0041e4ac
lea eax, [ebp + 0xf]
push ebx
push eax
push 0x47e390
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x64], 0x4675f0
mov dword [ebp - 0x44], edi
call fcn.0040b1f1
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xd
mov eax, dword [eax + 0x1c]
cmp eax, ebx
jne 0x41c116
mov eax, 0x4675fc
lea ecx, [ebp - 0x64]
push ecx
push ebx
push eax
lea ecx, [ebp - 0x704]
call fcn.0041e9ec
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xc
call fcn.0040604e
push esi
lea ecx, [ebp - 0x2d4]
call fcn.00405f4e
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.0040af5f
push ebx
push eax
lea eax, [ebp - 0x704]
lea ecx, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x13c]
push eax
mov byte [ebp - 4], 0x10
call fcn.00408f1a
lea ecx, [ebp - 0x13c]
call fcn.0040604e
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xf
call fcn.0040604e
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0xe
call fcn.0040125c
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 0xc
call fcn.004060e4
lea ecx, [ebp - 0x704]
mov byte [ebp - 4], 6
call fcn.0041e905
lea ecx, [ebp + 8]
call fcn.0040bb62
mov eax, dword [esi + 0xc]
cmp dword [ebp + 8], eax
jne 0x41c0cd
jmp 0x41c46e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test eax, eax
jne 0x41c46e
push esi
lea ecx, [ebp - 0x2d4]
call fcn.00405f4e
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.0042e632
cmp eax, 6
mov edi, 0x4675e8
jb 0x41c23d
cmp byte [ebp - 0x19], bl
je 0x41c23d
call fcn.00437cf3
test al, al
jne 0x41c23d
mov byte [ebp - 0x1d3], 1
jmp 0x41c342
cmp byte [ebp - 0x12], bl
mov byte [ebp - 0x1d3], bl
jne 0x41c342
mov eax, dword [esi]
push 0x10
mov ecx, esi
call dword [eax + 0x28]
test al, al
jne 0x41c342
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
jne 0x41c2bc
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 6
call fcn.004060e4
cmp dword [ebp - 0x10], ebx
je 0x41c288
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.0040125c
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0040125c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.0040125c
push 2
jmp 0x41c456
cmp byte [0x47e280], bl
jne 0x41c2cc
cmp byte [0x47ec98], bl
je 0x41c342
lea eax, [ebp + 0xb]
push 1
push eax
push 0x478500
lea ecx, [ebp - 0x90]
call fcn.0040a47f
mov eax, 0x4783f8
mov byte [ebp - 4], 0x12
mov ecx, eax
mov dword [ebp - 0x64], 0x4675f0
test ecx, ecx
mov dword [ebp - 0x44], edi
jne 0x41c300
mov eax, 0x47e390
lea ecx, [ebp - 0x13]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.0040b1f1
lea eax, [ebp - 0x90]
push 0x8d
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0x13
call fcn.0045d780
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x12
call fcn.0040604e
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x11
call fcn.0040604e
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.0040616a
push 2
pop ecx
sub eax, ecx
je 0x41c45c
sub eax, 5
je 0x41c381
sub eax, ecx
je 0x41c45c
jmp 0x41c45f
cmp byte [0x47e280], bl
jne 0x41c391
cmp byte [0x47ec98], bl
je 0x41c407
lea eax, [ebp + 0xf]
push 1
push eax
push 0x478500
lea ecx, [ebp - 0x90]
call fcn.0040a47f
mov eax, 0x4783c8
mov byte [ebp - 4], 0x14
mov ecx, eax
mov dword [ebp - 0x64], 0x4675f0
test ecx, ecx
mov dword [ebp - 0x44], edi
jne 0x41c3c5
mov eax, 0x47e390
lea ecx, [ebp + 0xb]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.0040b1f1
lea eax, [ebp - 0x90]
push 0x96
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0x15
call fcn.0045d780
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x14
call fcn.0040604e
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x11
call fcn.0040604e
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 6
call fcn.004060e4
cmp dword [ebp - 0x10], ebx
je 0x41c427
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.0040125c
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0040125c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.0040125c
push 7
pop eax
jmp 0x41c57a
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 6
call fcn.004060e4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test eax, eax
jne 0x41c4e6
cmp dword [ebp - 0x38], ebx
jne 0x41c4ad
mov eax, dword [ebp - 0xbc]
cmp eax, ebx
jne 0x41c48c
mov eax, 0x467588
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0xe4]
cmp eax, ebx
jne 0x41c4a7
mov eax, 0x467588
push eax
push dword [ebp - 0x10]
call esi
cmp byte [ebp + 0x10], bl
je 0x41c4e6
mov dword [ebp + 0x10], ebx
push 0xf003f
push 0x476b94
push SysReAllocString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x16
call fcn.0041c58b
test eax, eax
jne 0x41c4e2
push 0x476b58
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [ebp - 4], 6
lea eax, [ebp + 0x17]
push 1
push eax
push 0x478500
lea ecx, [ebp - 0x164]
call fcn.0040a47f
mov eax, dword [eax + 8]
mov byte [ebp - 4], 0x17
cmp eax, ebx
jne 0x41c50c
mov eax, 0x4675fc
push dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0xb3
push 0x47845c
push eax
call fcn.00408297
add esp, 0xc
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 6
call fcn.0040604e
cmp dword [ebp - 0x10], ebx
je 0x41c54a
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.0040125c
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0040125c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.0040125c
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10