Function at 0x4d5860
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x4d5868
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4d5c2a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
call fcn.004b3668
lea eax, [ebp - 0x48]
call fcn.004b37f8
push 0
push 1
push 0
push 0
mov eax, dword [0x4f3a40]
call fcn.004b7454
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 8]
lea eax, [ebp - 0x28]
mov edx, 8
call fcn.004253f8
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0
push 0x31f
push 0
push 0x1f
lea edx, [ebp - 0x70]
mov eax, dword [0x4f3a40]
call fcn.004b756c
mov eax, dword [ebp - 0x70]
call fcn.00409210
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4d5a59
push 0x8000
call fcn.0040ddac
pop ecx
mov ebx, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor esi, esi
cmp dword [ebp - 0x14], 0
jne 0x4d5924
cmp dword [ebp - 0x18], 4
je 0x4d5a49
mov dword [ebp - 0x1c], 0x1000
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumValueW
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409274
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 4]
call fcn.00409300
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
call fcn.0041b2f4
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
call fcn.004092ec
mov eax, dword [ebp - 0x74]
call fcn.004ba344
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x4ebd54]
jne 0x4d598f
cmp eax, dword [0x4ebd50]
je 0x4d59d3
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x4ebd5c]
jne 0x4d59a5
cmp eax, dword [0x4ebd58]
je 0x4d59d3
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x4ebd64]
jne 0x4d59bb
cmp eax, dword [0x4ebd60]
je 0x4d59d3
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x4ebd6c]
jne 0x4d59d1
cmp eax, dword [0x4ebd68]
jne 0x4d5a3c
mov dword [ebp - 0x1c], 0x1000
lea eax, [ebp - 0x1c]
push eax
mov edi, ebx
push edi
push 0
push 0
push edi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x4d5a00
cmp dword [ebp - 0x18], 0
jne 0x4d5a3c
lea ecx, [ebp - 0x84]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.004253f8
mov edx, dword [ebp - 0x84]
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 8]
call fcn.004b9d08
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 8]
mov ecx, dword [0x4031b8]
call fcn.0040b308
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], 0
inc esi
cmp esi, 0x100
jne 0x4d5914
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
push ebx
call fcn.0040ddbc
pop ecx
lea eax, [ebp - 0x6c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x58]
xor edx, edx
push edx
push eax
call fcn.004ba3a0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x8c]
lea eax, [ebp - 0x18]
mov edx, 8
call fcn.004253f8
mov edx, dword [ebp - 0x8c]
lea ecx, [ebp - 0x88]
mov eax, dword [ebp - 8]
call fcn.004b9d08
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 8]
mov ecx, dword [0x4031b8]
call fcn.0040b308
movzx eax, word [ebp - 0x6c]
xor edx, edx
push edx
push eax
call fcn.004ba3a0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x94]
lea eax, [ebp - 0x18]
mov edx, 8
call fcn.004253f8
mov edx, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 8]
call fcn.004b9d08
mov edx, dword [ebp - 0x90]
lea eax, [ebp - 8]
mov ecx, dword [0x4031b8]
call fcn.0040b308
mov eax, dword [ebp - 0x54]
xor edx, edx
push edx
push eax
call fcn.004ba3a0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x9c]
lea eax, [ebp - 0x18]
mov edx, 8
call fcn.004253f8
mov edx, dword [ebp - 0x9c]
lea ecx, [ebp - 0x98]
mov eax, dword [ebp - 8]
call fcn.004b9d08
mov edx, dword [ebp - 0x98]
lea eax, [ebp - 8]
mov ecx, dword [0x4031b8]
call fcn.0040b308
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4d5b56
sub ebx, 4
mov ebx, dword [ebx]
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b9f2c
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4d5b6f
sub ebx, 4
mov ebx, dword [ebx]
push dword [0x4f3a4c]
push dword [0x4f3a48]
push 0
push 2
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.004ba098
push edx
push eax
call fcn.004d5578
push edx
push eax
mov eax, dword [0x4f3a40]
call fcn.004b7810
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x48]
call fcn.004b367c
lea eax, [ebp - 0x30]
call fcn.004b3508
fld dword [0x4d5c38]
fucompp
wait
fnstsw ax
sahf
jae 0x4d5bd1
mov eax, 0x7fffffff
call fcn.00405934
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5c31
lea eax, [ebp - 0x9c]
mov edx, dword [0x4031b8]
mov ecx, 8
call fcn.00409d34
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.00408790
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00408730
lea eax, [ebp - 0xc]
mov edx, dword [0x4031b8]
mov ecx, 2
call fcn.00409d34
lea eax, [ebp - 4]
call fcn.004086d0
ret