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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x45d074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push 0x98
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xd8]
push esi
push eax
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xec], edx
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xdc], esi
call sub.MSVCR100.dll_memset
mov eax, dword [0x434d9c]
mov edx, dword [0x434d98]
mov dword [ebp - 0xf8], esi
mov ecx, 0xb
mov esi, str.SoftwareMicrosoftWindows_NTCurrentVersion
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x434d94]
mov dword [ebp - 8], eax
mov eax, 0x46dbe8
mov dword [ebp - 0xc], edx
add esp, 0xc
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x10], ecx
lea edx, [eax + 1]
jmp 0x406290
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406290
sub eax, edx
je 0x406347
cmp ebx, eax
ja 0x4062cc
mov edi, dword [ebp - 0xe0]
test ebx, ebx
je 0x4062e8
test edi, edi
je 0x4062e8
lea eax, [ebx - 1]
push eax
push 0x46dbe8
push eax
push edi
call dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
add esp, 0x10
mov byte [ebx + edi - 1], 0
jmp 0x4062e8
mov ecx, dword [ebp - 0xe0]
push 0x46dbe8
push ebx
push ecx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
mov edi, dword [ebp - 0xe0]
add esp, 0xc
mov eax, 0x46d7e8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4062f0
mov esi, dword [ebp - 0xec]
sub eax, edx
cmp esi, eax
ja 0x406607
test esi, esi
je 0x40661d
mov ecx, dword [ebp - 0xe4]
test ecx, ecx
je 0x40661d
lea eax, [esi - 1]
push eax
push 0x46d7e8
push eax
push ecx
call dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
add esp, 0x10
mov byte [esi + edi - 1], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040981a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xdc]
push eax
mov dword [ebp - 0xdc], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4063af
mov esi, dword [sym.imp.MSVCR100.dll_strcpy_s]
test ebx, ebx
je 0x40637e
mov ecx, dword [ebp - 0xe0]
push 0x4337f8
push ebx
push ecx
call esi
add esp, 0xc
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x40661d
mov edx, dword [ebp - 0xe4]
push 0x4337f8
push eax
push edx
call esi
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040981a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xcc]
dec eax
je 0x406516
dec eax
je 0x4063ca
mov eax, dword [ebp - 0xd0]
jmp 0x40651d
lea eax, [ebp - 0xe8]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x40]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4064d3
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0xf0]
push edx
mov edx, dword [ebp - 0xe8]
push eax
lea eax, [ebp - 0xf4]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push edx
call edi
test eax, eax
jne 0x40644e
mov eax, dword [ebp - 0xf0]
inc eax
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x406454
lea ecx, [ebp - 0xf0]
push ecx
mov ecx, dword [ebp - 0xe8]
push esi
lea edx, [ebp - 0xf4]
push edx
push 0
lea eax, [ebp - 0x10]
push eax
push ecx
call edi
jmp 0x406454
mov esi, dword [ebp - 0xf8]
mov edx, dword [ebp - 0xe8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4064d9
cmp byte [esi], 0
je 0x4064d9
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
cmp eax, 5
jne 0x4064af
test ecx, ecx
jne 0x4064af
cmp byte [ebp - 0x42], 1
je 0x4064af
mov eax, dword [ebp - 0xd0]
push eax
push ecx
push 5
push str.Server
push esi
push str._s__s__d._d___d_
push 0x400
push 0x46dbe8
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x20
jmp 0x406506
mov edx, dword [ebp - 0xd0]
push edx
push ecx
push eax
push esi
push str._s__d._d___d_
push 0x400
push 0x46dbe8
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x1c
jmp 0x406506
mov esi, dword [ebp - 0xf8]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xd8]
push eax
push ecx
push edx
push str.MS__d._d___d_
push 0x400
push 0x46dbe8
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x18
test esi, esi
je 0x406544
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
jmp 0x406544
movzx eax, word [ebp - 0xd0]
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xd8]
push eax
push ecx
push edx
push str.MS__d._d___d_
push 0x400
push 0x46dbe8
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x18
mov esi, dword [sym.imp.MSVCR100.dll_strcpy_s]
lea eax, [ebp - 0xc8]
push eax
push 0x400
push 0x46d7e8
call esi
mov eax, 0x46dbe8
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406568
mov edi, dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
sub eax, edx
cmp ebx, eax
ja 0x4065a0
test ebx, ebx
je 0x4065b2
mov esi, dword [ebp - 0xe0]
test esi, esi
je 0x4065b2
lea eax, [ebx - 1]
push eax
push 0x46dbe8
push eax
push esi
call edi
add esp, 0x10
mov byte [ebx + esi - 1], 0
jmp 0x4065b2
mov ecx, dword [ebp - 0xe0]
push 0x46dbe8
push ebx
push ecx
call esi
add esp, 0xc
mov eax, 0x46d7e8
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4065c0
mov esi, dword [ebp - 0xec]
sub eax, edx
cmp esi, eax
ja 0x406607
test esi, esi
je 0x40661d
mov ebx, dword [ebp - 0xe4]
test ebx, ebx
je 0x40661d
lea eax, [esi - 1]
push eax
push 0x46d7e8
push eax
push ebx
call edi
add esp, 0x10
pop edi
mov byte [esi + ebx - 1], 0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040981a
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xe4]
push 0x46d7e8
push esi
push edx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040981a
mov esp, ebp
pop ebp
ret