Function at 0x5ba7aa8f
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5bb70c3c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov esi, ecx
xor ebx, ebx
push 0x26
mov dword [ebp - 0xb4], eax
pop ecx
xor eax, eax
mov dword [ebp - 0xa0], ebx
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa4], ebx
call fcn.5ba7ad22
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x38], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5ba7ab2a
cmp dword [ebp - 0x90], 2
jne 0x5ba7ab2a
cmp dword [ebp - 0x9c], 5
jne 0x5ba7ab2a
cmp dword [ebp - 0x98], 1
jne 0x5ba7ab2a
cmp word [ebp - 0x94], 0xa28
jne 0x5ba7ab2a
call fcn.5babcc7f
mov dword [ebp - 0xa4], eax
cmp dword [0x5bb73c30], ebx
mov edi, dword [sym.imp.USER32.dll_LoadAcceleratorsA]
jne 0x5ba7ab4a
push 0xc8
push dword [0x5bb73708]
call edi
mov dword [0x5bb73c30], eax
cmp dword [ebp - 0xa4], ebx
je 0x5ba7ab6c
cmp dword [0x5bb73c34], ebx
jne 0x5ba7ab6c
push 0xcd
push dword [ebp - 0xa4]
call edi
mov dword [0x5bb73c34], eax
lea eax, [ebp - 0xe4]
push eax
mov edi, 0x5ba4e890
push edi
push dword [0x5bb73710]
mov dword [ebp - 0xe4], 0x30
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x5ba7ac0d
mov eax, dword [0x5bb73710]
push 0x7f00
push ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], 0x5ba56714
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xe4]
push eax
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x5ba7ac0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x582
jne 0x5ba7acc3
call fcn.5ba75d75
test eax, eax
mov ecx, dword [0x5ba4a564]
jne 0x5ba7ac22
mov ecx, dword [ebp - 0xac]
push esi
push dword [0x5bb73710]
mov eax, SysReAllocString
push ebx
push dword [ebp - 0xb4]
push eax
push eax
push eax
push eax
push 0x2cf0000
push ebx
push edi
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 0x24], eax
push 0x2c
lea eax, [ebp - 0x114]
push eax
push 7
call fcn.5ba6c8a9
test eax, eax
je 0x5ba7ac91
mov eax, dword [ebp + 8]
xor edi, edi
inc edi
cmp eax, edi
je 0x5ba7ac70
mov dword [ebp - 0x10c], eax
jmp 0x5ba7ac7f
cmp dword [ebp - 0x10c], 2
jne 0x5ba7ac7f
mov dword [ebp - 0x10c], edi
lea eax, [ebp - 0x114]
push eax
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
jmp 0x5ba7aca8
push dword [esi + 0x24]
call sub.MSOERT2.dll_CenterDialog
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_ShowWindow]
xor edi, edi
inc edi
lea eax, [esi + 0x38c]
push eax
push esi
call fcn.5ba6ea51
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [esi + 0x24], ebx
jne 0x5ba7acca
mov eax, 0x80004005
jmp 0x5ba7ad0e
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xe8]
push eax
push 0x5ba4cb50
push 0x5ba4c690
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xb0], 4
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
jne 0x5ba7ad0c
cmp dword [ebp - 0xa8], ebx
je 0x5ba7ad0c
mov dword [esi + 0x78], edi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 0xc