Function at 0x4da650
Capabilities:
Check os version
Query or enumerate registry value
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x61e860
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor edi, edi
xor esi, esi
mov dword [esp + 0x18], edi
call fcn.004254f0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4da862
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x28]
push str.Software_
lea ecx, [ebx + 0x7c]
push eax
mov dword [esp + 0x18], esi
call fcn.0040ef20
push 0x645b40
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x4c], esi
call fcn.00401c10
add ebx, 0x24
push ebx
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x58], 1
call fcn.004049e0
add esp, 0x20
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4da6fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4da722
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push edx
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExA]
jne 0x4da7ac
push 0x1000
call fcn.005a854a
mov ecx, dword [esp + 0x14]
add esp, 4
mov edi, eax
lea eax, [esp + 0x20]
push eax
push edi
push 0
push 0
push 0x65bb58
push ecx
mov dword [esp + 0x38], 0x1000
call ebx
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [esp + 0x20]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, 5
jle 0x4da7ac
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push esi
mov edx, edi
call fcn.004d9310
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4da82c
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4da814
test edi, edi
jne 0x4da7df
push 0x1000
call fcn.005a854a
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push edi
push 0
push 0
push 0x65bb58
push ecx
mov dword [esp + 0x3c], 0x1000
call ebx
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [esp + 0x24]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, 5
jle 0x4da82c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push esi
mov edx, edi
call fcn.004d9310
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4da854
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x18], 0
jne 0x4da96e
mov ebx, dword [ebp + 0xc]
call fcn.0056d592
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4da87c
push 0x80004005
call fcn.004012f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
test ebx, ebx
mov dword [esp + 0x38], 5
je 0x4da8a4
push ebx
lea ecx, [esp + 0x18]
call fcn.004015c0
jmp 0x4da8b7
mov ecx, dword [ebp + 8]
add ecx, 0xa0
push ecx
lea ecx, [esp + 0x18]
call fcn.004074e0
mov edx, dword [esp + 0x14]
push 0x649a48
push edx
call fcn.005a6c42
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4da8fe
cmp dword [ebp + 0xc], eax
jne 0x4da946
mov eax, dword [ebp + 8]
add eax, 0xa4
push eax
lea ecx, [esp + 0x18]
call fcn.004074e0
mov ecx, dword [esp + 0x14]
push 0x649a48
push ecx
call fcn.005a6c42
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4da946
push 2
push 0
push ebx
call fcn.005a931a
push ebx
call fcn.005a9537
push 0
push 0
push ebx
mov esi, eax
call fcn.005a931a
add esp, 0x1c
test edi, edi
jne 0x4da92f
lea edx, [esi + 1]
push edx
call fcn.005a854a
add esp, 4
mov edi, eax
push ebx
push esi
push 1
push edi
call fcn.005a9841
push ebx
mov byte [edi + esi], 0
call fcn.005a6e16
add esp, 0x14
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4da96e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 5
jle 0x4da986
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push esi
mov edx, edi
call fcn.004d9310
mov dword [esp + 0x18], eax
push edi
call fcn.005a8a7b
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc