Function at 0x450c80
Capabilities:
Check os version
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x88
push 1
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
jne 0x450cb8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push edi
push 0x44
push 1
mov dword [esi + 4], eax
mov dword [esi + 0x68], 1
call fcn.00580d1f
mov edi, eax
add esp, 8
mov dword [esi + 0x84], edi
test edi, edi
je 0x450ef2
push 0x5bccf8
call fcn.0042f4e0
push eax
mov dword [edi], eax
call fcn.00431e80
push 1
call fcn.0059d800
add esp, 0xc
mov dword [edi + 4], eax
test eax, eax
je 0x450ee9
mov dword [eax + 0x28], 0x4537f0
cmp dword [esi + 4], 0
je 0x450d26
mov dword [eax + 0x24], 0x451700
mov dword [eax + 0x30], sym.wfreerdp.exe_freerdp_free
jmp 0x450d34
mov dword [eax + 0x24], 0x451020
mov dword [eax + 0x30], 0x450ff0
push 0x10
push 0x6060
push 1
call fcn.0059d3a0
add esp, 0xc
mov dword [edi + 0x40], eax
test eax, eax
je 0x450ede
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00580b90
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
sbb eax, eax
inc eax
mov dword [edi + 8], eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0xb8]
mov dword [edi + 0x14], eax
lea eax, [ebp - 0xa0]
push eax
push 0x20119
push 0
push str.SoftwareFreeRDPFreeRDPRemoteFX
push connect
mov dword [edi + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x450e81
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xa4], 4
push eax
lea eax, [ebp - 0xa8]
push eax
push 0
push str.UseThreads
push dword [ebp - 0xa0]
call ebx
test eax, eax
jne 0x450e12
cmp dword [ebp - 0x9c], eax
setne al
mov dword [edi + 8], eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0
push str.MinThreadCount
push dword [ebp - 0xa0]
call ebx
test eax, eax
jne 0x450e43
mov eax, dword [ebp - 0x9c]
mov dword [edi + 0x14], eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0
push str.MaxThreadCount
push dword [ebp - 0xa0]
call ebx
pop ebx
test eax, eax
jne 0x450e75
mov eax, dword [ebp - 0x9c]
mov dword [edi + 0x18], eax
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 8], 0
je 0x450f20
call sym.wfreerdp.exe_primitives_get
push 0
call fcn.0059de40
add esp, 4
mov dword [edi + 0x1c], eax
test eax, eax
je 0x450ed3
lea eax, [edi + 0x20]
push eax
call fcn.00450ab0
mov ecx, dword [edi + 0x14]
add esp, 4
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x24], eax
test ecx, ecx
je 0x450f0d
push ecx
push eax
call fcn.0059dee0
add esp, 8
test eax, eax
jne 0x450f0d
push dword [edi + 0x1c]
call fcn.0059ddb0
add esp, 4
push dword [edi + 0x40]
call fcn.0059d340
add esp, 4
push dword [edi + 4]
call fcn.0059d7c0
add esp, 4
push edi
call fcn.00580204
add esp, 4
push esi
call fcn.00580204
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
test eax, eax
je 0x450f20
push eax
push dword [edi + 0x1c]
call fcn.0059dea0
add esp, 8
push esi
mov dword [esi + 0x20], 0x20040888
mov byte [esi + 0x24], 0x20
mov dword [esi + 0x6c], 0x473720
mov dword [esi + 0x70], 0x473840
mov dword [esi + 0x74], 0x473af0
mov dword [esi + 0x78], 0x473ec0
mov dword [esi + 0x7c], fcn.004743b0
mov dword [esi + 0x80], 0x475b80
call fcn.004766d0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, 0xccc4
mov dword [esi], 2
mov word [esi + 0x40], ax
xor ecx, ebp
mov eax, esi
pop edi
pop esi
call fcn.005802ce
mov esp, ebp
pop ebp
ret