Function at 0x5bae75
Capabilities:
Get system information on windows

Disassembly:
mov eax, 0x6c1130
call fcn.00651da4
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
mov dword [edi], ebx
call fcn.005baa59
push eax
call fcn.0045d460
test al, al
je 0x5bafe3
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x68]
mov dword [ebp - 4], ebx
push eax
call fcn.005baae8
sub eax, ebx
je 0x5bb055
sub eax, 1
je 0x5baf5b
sub eax, 1
je 0x5baff8
sub eax, 1
jne 0x5bafd8
mov dword [ebp - 0x3c], fcn.0043b3cd
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push str.oscode
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040f49f
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00468d45
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040facf
push str.verfail
lea ecx, [ebp - 0x2c]
call fcn.0040f49f
mov byte [ebp - 4], 6
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.005ba903
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040facf
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.0043603c
push 2
pop esi
call fcn.005bb0f0
call fcn.005bac8c
push eax
lea ecx, [ebp - 0x44]
call fcn.0042812e
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 7
jae 0x5baf81
lea eax, [ebp - 0x44]
push eax
call fcn.0045d23f
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.004284eb
mov ecx, 0x7f9300
call fcn.006a40e7
test al, al
jne 0x5bafb1
mov dword [0x7f89b8], ebx
call fcn.005ba4d6
push 2
pop esi
cmp esi, 4
je 0x5bafbb
cmp esi, 3
jne 0x5bafd8
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_GetNativeSystemInfo]
push 6
pop eax
cmp word [ebp - 0x50], ax
je 0x5bafd8
cmp word [ebp - 0x50], 9
je 0x5bafd8
xor esi, esi
inc esi
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.004284eb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x3c], fcn.0043b3cd
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push str.oscode
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040f49f
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00468d45
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040facf
push str.exegone
lea ecx, [ebp - 0x2c]
call fcn.0040f49f
mov byte [ebp - 4], 3
jmp 0x5baf38
cmp dword [ebp - 0x58], 0
je 0x5bafd8
lea eax, [ebp - 0x68]
mov esi, 0x7f89e4
push eax
sub esp, 0xc
mov ecx, esi
push esp
call fcn.005bbaf5
sub esp, 0xc
mov ecx, esi
push esp
call fcn.005bbae5
lea eax, [ebp - 0x20]
push eax
call fcn.005b987d
lea eax, [ebp - 0x68]
mov dword [ebp - 0x14], ebx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.005b9a9b
mov eax, dword [ebp - 0x10]
mov ecx, esi
mov dword [edi], eax
lea eax, [ebp - 0x38]
push eax
call fcn.005bbaf5
mov ecx, eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ecx + 8]
sete al
test al, al
je 0x5baf5b
cmp byte [ebp - 0x11], 0
je 0x5bb0e8
cmp byte [ebp - 0x13], 0
je 0x5bb0e8
cmp byte [ebp - 0x12], 0
jne 0x5bb0e8
push 3
pop esi
mov ecx, 0x7f9300
call fcn.006a40e7
test al, al
jne 0x5baf95
jmp 0x5baf5e
push 4
pop esi
jmp 0x5bafbb