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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
push edi
push 0x9c
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.00642ec0
add esp, 0xc
mov dword [ebp - 0x9c], 0x9c
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
jne 0x655798
mov dword [ebp - 0x9c], 0x94
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x655798
xor eax, eax
jmp 0x655dd3
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
je 0x655dbd
cmp dword [ebp - 0x1bc], 1
je 0x655d0c
cmp dword [ebp - 0x1bc], 2
je 0x6557cc
jmp 0x655dce
cmp dword [ebp - 0x98], 6
jne 0x655810
cmp dword [ebp - 0x94], 0
jne 0x655810
mov ecx, dword [ebp - 2]
and ecx, 0xff
cmp ecx, 1
jne 0x6557ff
push 0x6e2aa4
mov edx, dword [ebp + 8]
push edx
call fcn.00642db0
add esp, 8
jmp 0x655810
push 0x6e2a88
mov eax, dword [ebp + 8]
push eax
call fcn.00642db0
add esp, 8
cmp dword [ebp - 0x98], 5
jne 0x655833
cmp dword [ebp - 0x94], 2
jne 0x655833
push 0x6e2a68
mov ecx, dword [ebp + 8]
push ecx
call fcn.00642db0
add esp, 8
cmp dword [ebp - 0x98], 5
jne 0x655856
cmp dword [ebp - 0x94], 1
jne 0x655856
push 0x6e2a50
mov edx, dword [ebp + 8]
push edx
call fcn.00642db0
add esp, 8
cmp dword [ebp - 0x98], 5
jne 0x655879
cmp dword [ebp - 0x94], 0
jne 0x655879
push 0x6e2a38
mov eax, dword [ebp + 8]
push eax
call fcn.00642db0
add esp, 8
cmp dword [ebp - 0x98], 4
ja 0x655893
push 0x6e2a20
mov ecx, dword [ebp + 8]
push ecx
call fcn.00642db0
add esp, 8
cmp dword [ebp - 0xa0], 0
je 0x655a66
mov edx, dword [ebp - 2]
and edx, 0xff
cmp edx, 1
jne 0x655906
cmp dword [ebp - 0x98], 4
jne 0x6558ca
push 0x6e2a0c
mov eax, dword [ebp + 8]
push eax
call fcn.00642db0
add esp, 8
jmp 0x655901
mov ecx, dword [ebp - 4]
and ecx, 0xffff
and ecx, 0x200
test ecx, ecx
je 0x6558f0
push 0x6e29fc
mov edx, dword [ebp + 8]
push edx
call fcn.00642db0
add esp, 8
jmp 0x655901
push 0x6e29ec
mov eax, dword [ebp + 8]
push eax
call fcn.00642db0
add esp, 8
jmp 0x655a61
mov ecx, dword [ebp - 2]
and ecx, 0xff
cmp ecx, 3
je 0x655926
mov edx, dword [ebp - 2]
and edx, 0xff
cmp edx, 2
jne 0x655a61
cmp dword [ebp - 0x98], 5
jne 0x6559c1
cmp dword [ebp - 0x94], 2
jne 0x6559c1
mov eax, dword [ebp - 4]
and eax, 0xffff
and eax, 0x80
test eax, eax
je 0x655964
push 0x6e29d8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00642db0
add esp, 8
jmp 0x6559bc
mov edx, dword [ebp - 4]
and edx, 0xffff
and edx, 2
test edx, edx
je 0x655987
push 0x6e29c4
mov eax, dword [ebp + 8]
push eax
call fcn.00642db0
add esp, 8
jmp 0x6559bc
mov ecx, dword [ebp - 4]
and ecx, 0xffff
cmp ecx, 0x400
jne 0x6559ab
push 0x6e29b4
mov edx, dword [ebp + 8]
push edx
call fcn.00642db0
add esp, 8
jmp 0x6559bc
push 0x6e29a0
mov eax, dword [ebp + 8]
push eax
call fcn.00642db0
add esp, 8
jmp 0x655a61
cmp dword [ebp - 0x98], 5
jne 0x655a2e
cmp dword [ebp - 0x94], 0
jne 0x655a2e
mov ecx, dword [ebp - 4]
and ecx, 0xffff
and ecx, 0x80
test ecx, ecx
je 0x6559f9
push 0x6e298c
mov edx, dword [ebp + 8]
push edx
call fcn.00642db0
add esp, 8
jmp 0x655a2c
mov eax, dword [ebp - 4]
and eax, 0xffff
and eax, 2
test eax, eax
je 0x655a1b
push 0x6e2978
mov ecx, dword [ebp + 8]
push ecx
call fcn.00642db0
add esp, 8
jmp 0x655a2c
push 0x6e2970
mov edx, dword [ebp + 8]
push edx
call fcn.00642db0
add esp, 8
jmp 0x655a61
mov eax, dword [ebp - 4]
and eax, 0xffff
and eax, 2
test eax, eax
je 0x655a50
push 0x6e2950
mov ecx, dword [ebp + 8]
push ecx
call fcn.00642db0
add esp, 8
jmp 0x655a61
push 0x6e2944
mov edx, dword [ebp + 8]
push edx
call fcn.00642db0
add esp, 8
jmp 0x655bc9
mov dword [ebp - 0x110], 0x50
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
push 0x6e2914
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
je 0x655aa1
xor eax, eax
jmp 0x655dd3
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push 0x6e2908
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x655add
cmp dword [ebp - 0x110], 0x50
jbe 0x655ae4
xor eax, eax
jmp 0x655dd3
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x108]
push edx
push 0x6e2900
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x655b18
push 0x6e28f0
mov eax, dword [ebp + 8]
push eax
call fcn.00642db0
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
push 0x6e28e4
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x655b3f
push 0x6e2970
mov edx, dword [ebp + 8]
push edx
call fcn.00642db0
add esp, 8
lea eax, [ebp - 0x108]
push eax
push 0x6e28d8
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x655b66
push 0x6e2978
mov ecx, dword [ebp + 8]
push ecx
call fcn.00642db0
add esp, 8
mov byte [ebp - 0xb8], 0
xor edx, edx
mov dword [ebp - 0xb7], edx
mov dword [ebp - 0xb3], edx
mov dword [ebp - 0xaf], edx
mov dword [ebp - 0xab], edx
mov word [ebp - 0xa7], dx
mov byte [ebp - 0xa5], dl
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
push 0x6e28d0
lea edx, [ebp - 0xb8]
push edx
call fcn.00642944
add esp, 0x10
lea eax, [ebp - 0xb8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00642db0
add esp, 8
cmp dword [ebp - 0x98], 4
jne 0x655cb3
push 0x6e28c0
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x655cb3
mov byte [ebp - 0x164], 0
mov ecx, 0x13
xor eax, eax
lea edi, [ebp - 0x163]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x168]
push eax
push 1
push 0
push 0x6e2884
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x655c69
mov ecx, dword [ebp - 0x90]
and ecx, 0xffff
push ecx
push 0x6e2864
lea edx, [ebp - 0x164]
push edx
call fcn.00642944
add esp, 0xc
lea eax, [ebp - 0x164]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00642db0
add esp, 8
jmp 0x655ca4
mov edx, dword [ebp - 0x90]
and edx, 0xffff
push edx
lea eax, [ebp - 0x88]
push eax
push 0x6e2854
lea ecx, [ebp - 0x164]
push ecx
call fcn.00642944
add esp, 0x10
lea edx, [ebp - 0x164]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00642db0
add esp, 8
mov ecx, dword [ebp - 0x168]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x655d07
mov byte [ebp - 0x1b8], 0
mov ecx, 0x13
xor eax, eax
lea edi, [ebp - 0x1b7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp - 0x90]
and edx, 0xffff
push edx
lea eax, [ebp - 0x88]
push eax
push 0x6e2854
lea ecx, [ebp - 0x1b8]
push ecx
call fcn.00642944
add esp, 0x10
lea edx, [ebp - 0x1b8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00642db0
add esp, 8
jmp 0x655dce
cmp dword [ebp - 0x98], 4
jne 0x655d58
cmp dword [ebp - 0x94], 0
jne 0x655d58
push 0x6e283c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00642db0
add esp, 8
movsx edx, byte [ebp - 0x87]
cmp edx, 0x43
je 0x655d47
movsx eax, byte [ebp - 0x87]
cmp eax, 0x42
jne 0x655d58
push 0x6e2834
mov ecx, dword [ebp + 8]
push ecx
call fcn.00642db0
add esp, 8
cmp dword [ebp - 0x98], 4
jne 0x655d98
cmp dword [ebp - 0x94], 0xa
jne 0x655d98
push 0x6e281c
mov edx, dword [ebp + 8]
push edx
call fcn.00642db0
add esp, 8
movsx eax, byte [ebp - 0x87]
cmp eax, 0x41
jne 0x655d98
push 0x6e2818
mov ecx, dword [ebp + 8]
push ecx
call fcn.00642db0
add esp, 8
cmp dword [ebp - 0x98], 4
jne 0x655dbb
cmp dword [ebp - 0x94], 0x5a
jne 0x655dbb
push 0x6e27f0
mov edx, dword [ebp + 8]
push edx
call fcn.00642db0
add esp, 8
jmp 0x655dce
push 0x6e27dc
mov eax, dword [ebp + 8]
push eax
call fcn.00642db0
add esp, 8
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret