Function at 0x4d7360
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 0x616180
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6963f4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x18], edi
call fcn.004242c0
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4d7566
mov esi, dword [ebp + 8]
lea eax, [esp + 0x28]
push str.Software_
lea ecx, [esi + 0x7c]
push eax
mov dword [esp + 0x18], ebx
call fcn.0040eb30
push 0x63dab8
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x4c], ebx
call fcn.00401be0
add esi, 0x24
push esi
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x58], 1
call fcn.00404940
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 0x4d740d
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 0x4d7432
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push edx
push SysReAllocStringLen
call esi
test eax, eax
jne 0x4d74b4
push 0x1000
call fcn.005a0b1e
mov ecx, dword [esp + 0x14]
add esp, 4
mov edi, eax
lea eax, [esp + 0x20]
push eax
push edi
push 0
push 0
push 0x6540f8
push ecx
mov dword [esp + 0x38], 0x1000
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d748d
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp ebx, 5
jle 0x4d74b4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push ebx
mov edx, edi
call fcn.004d60a0
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4d7530
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push edx
push reloc.oleaut32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4d7518
test edi, edi
jne 0x4d74e3
push 0x1000
call fcn.005a0b1e
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push edi
push 0
push 0
push 0x6540f8
push ecx
mov dword [esp + 0x3c], 0x1000
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d750d
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp ebx, 5
jle 0x4d7530
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push ebx
mov edx, edi
call fcn.004d60a0
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 0x4d7558
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x18], 0
jne 0x4d7672
mov esi, dword [ebp + 0xc]
call fcn.00564d6e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4d7580
push 0x80004005
call fcn.004012a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
test esi, esi
mov dword [esp + 0x38], 5
je 0x4d75a8
push esi
lea ecx, [esp + 0x18]
call fcn.00401590
jmp 0x4d75bb
mov ecx, dword [ebp + 8]
add ecx, 0xa0
push ecx
lea ecx, [esp + 0x18]
call fcn.00407290
mov edx, dword [esp + 0x14]
push 0x641fa4
push edx
call fcn.0059f606
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d7602
cmp dword [ebp + 0xc], eax
jne 0x4d764a
mov eax, dword [ebp + 8]
add eax, 0xa4
push eax
lea ecx, [esp + 0x18]
call fcn.00407290
mov ecx, dword [esp + 0x14]
push 0x641fa4
push ecx
call fcn.0059f606
mov esi, eax
add esp, 8
test esi, esi
je 0x4d764a
push 2
push 0
push esi
call fcn.005a1be7
push esi
call fcn.005a1e04
push 0
push 0
push esi
mov ebx, eax
call fcn.005a1be7
add esp, 0x1c
test edi, edi
jne 0x4d7633
lea edx, [ebx + 1]
push edx
call fcn.005a0b1e
add esp, 4
mov edi, eax
push esi
push ebx
push 1
push edi
call fcn.005a210e
push esi
mov byte [edi + ebx], 0
call fcn.0059f7da
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 0x4d7672
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 5
jle 0x4d768a
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push ebx
mov edx, edi
call fcn.004d60a0
mov dword [esp + 0x18], eax
push edi
call fcn.005a01b3
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
xor eax, eax
inc eax
ret 0xc