Function at 0x458a60
Capabilities:
Get common file path
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x52efc0]
mov edi, dword [ebp + 8]
mov esi, ecx
xor eax, ebp
mov dword [esp + 0x40], eax
mov dword [ecx], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ebx, [esp + 0x28]
mov dword [esp + 0x28], 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x458ad6
xor eax, eax
cmp dword [esp + 0x28], 0
setne al
jmp 0x458adb
mov eax, 2
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
lea edi, [esp + 0x1c]
mov dword [esi + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
push edi
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x458b73
xor edi, edi
mov dword [esp + 8], ebx
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xc], 0
jmp 0x458c08
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], 4
mov dword [esp + 0x38], 4
mov dword [esp + 0x34], 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0
push eax
push ecx
push edi
push 0
push 0x4ee4b4
mov dword [esp + 0x18], edx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x458bdd
mov eax, dword [esp + 0x1c]
xor edx, edx
mov ecx, 0
add eax, 0xfffffffd
cmp dword [esp + 0x38], 4
jne 0x458bd7
mov ecx, dword [esp + 0x34]
cmp eax, 2
cmovb edx, ecx
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
push eax
push str.ReleaseId
call fcn.004572f0
mov cl, byte [esp + 0x33]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 4]
test cl, cl
movzx ecx, cl
cmovs ecx, eax
cmovs ebx, edx
push ecx
push ebx
lea eax, [esp + 0x24]
push eax
call fcn.00443e70
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov cl, byte [esp + 0x27]
mov edx, dword [esp + 0x23]
test edi, edi
mov dword [esp + 0x38], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x3b], edx
mov byte [esp + 3], cl
je 0x458c5d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 8]
mov edi, dword [ebp + 8]
cmp byte [eax + 0xb], 0
js 0x458c7c
cmp byte [esi + 0x2b], 0
js 0x458c8e
lea eax, [esi + 0x20]
mov byte [eax], 0
mov byte [eax + 0xb], 0
jmp 0x458cb3
push dword [esp + 0x28]
call fcn.004aeac6
add esp, 4
cmp byte [esi + 0x2b], 0
jns 0x458c70
mov eax, dword [esi + 0x20]
mov byte [eax], 0
mov dword [esi + 0x24], 0
cmp byte [esi + 0x2b], 0
jns 0x458cb3
push dword [esi + 0x20]
call fcn.004aeac6
add esp, 4
mov dword [esi + 0x28], 0
mov eax, dword [esp + 4]
mov dl, byte [esp + 3]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3b]
mov dword [esi + 0x24], eax
mov dword [esi + 0x27], ecx
mov ecx, dword [esp + 0xc]
mov byte [esi + 0x2b], dl
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 4]
cmp ecx, 0xa
jne 0x458d43
mov ecx, dword [esi + 0xc]
mov eax, 0xe
cmp ecx, 0x47b9
jg 0x458d7c
mov eax, 0xd
cmp ecx, 0x4562
jg 0x458d7c
mov eax, 0xc
cmp ecx, 0x42ed
jg 0x458d7c
mov eax, 0xb
cmp ecx, 0x3faa
jg 0x458d7c
mov eax, 0xa
cmp ecx, 0x3ad6
jg 0x458d7c
mov eax, 9
cmp ecx, 0x3838
jg 0x458d7c
xor eax, eax
cmp ecx, 0x2959
setg al
add eax, 7
jmp 0x458d7c
mov eax, 0xf
cmp ecx, 6
jg 0x458d7c
mov edx, dword [esi + 8]
jne 0x458d62
lea ecx, [edx + 3]
cmp edx, 3
mov eax, 6
cmovb eax, ecx
jmp 0x458d7c
xor eax, eax
test edx, edx
je 0x458d7c
cmp ecx, 5
jne 0x458d7c
xor ecx, ecx
cmp edx, 1
mov eax, 2
sete cl
sub eax, ecx
mov dword [esi], eax
lea ebx, [esi + 0x2c]
movzx eax, word [edi + 0x114]
mov dword [esi + 0x18], eax
movzx eax, word [edi + 0x116]
mov dword [esi + 0x1c], eax
lea eax, [edi + 0x14]
cmp word [edi + 0x14], 0
je 0x458dbd
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp word [edi + ecx*2 + 0x16], 0
lea ecx, [ecx + 1]
jne 0x458db0
jmp 0x458dbf
xor ecx, ecx
lea edx, [esp + 0x28]
push ecx
push eax
push edx
call fcn.00443e70
add esp, 0xc
cmp byte [ebx + 0xb], 0
js 0x458ddd
mov byte [ebx], 0
mov byte [ebx + 0xb], 0
jmp 0x458e02
mov eax, dword [esi + 0x2c]
mov byte [eax], 0
mov dword [esi + 0x30], 0
cmp byte [esi + 0x37], 0
jns 0x458e02
push dword [esi + 0x2c]
call fcn.004aeac6
add esp, 4
mov dword [esi + 0x34], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [ebx], xmm0
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x38], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 4]
cmp eax, 5
je 0x458e4f
cmp eax, 0xa
je 0x458e34
cmp eax, 6
jne case.0x458e3f.2
mov eax, dword [ebp + 0x10]
dec eax
cmp eax, 0x81
ja case.0x458e3f.2
jmp dword [eax*4 + 0x4ee504]
mov dword [esi + 0x14], 3
jmp 0x458e97
mov eax, dword [edi + 8]
cmp eax, 1
je 0x458e7e
cmp eax, 2
jne case.0x458e3f.2
cmp byte [edi + 0x11a], 1
jne 0x458e6b
cmp word [ecx], 9
je case.0x458e3f.1
cmp word [edi + 0x118], 0
js case.0x458e3f.2
mov dword [esi + 0x14], 2
jmp 0x458e97
test byte [edi + 0x119], 2
jne case.0x458e3f.2
mov dword [esi + 0x14], 1
jmp 0x458e97
mov dword [esi + 0x14], 0
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.004aeb01
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov dword [esi + 0x14], 4
jmp 0x458e97