Function at 0x1880b597
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11a0
call fcn.18827b70
push ebx
push esi
push edi
xor eax, eax
push 0xbb6
mov word [ebp - 0x11a0], ax
xor ebx, ebx
lea eax, [ebp - 0x119e]
push ebx
push eax
call fcn.18819090
add esp, 0xc
cmp word [ebp - 0x11a0], bx
jne 0x1880b5e5
push str._ProductName__encountered_a_fatal_error_and_will_exit._r_n_r_nMore_information:_r_n_r_nVersion:__Version__r_nOS:__OS__r_nSource_file:__SourceFile__r_nLine:__SourceFileLine_
mov eax, 0xbb8
lea ecx, [ebp - 0x11a0]
call fcn.188014a8
xor eax, eax
push 0x3a
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push ebx
push eax
call fcn.18819090
push 1
push 4
push 3
push str._u._u._u
push 0x3c
pop eax
lea edi, [ebp - 0xd0]
call fcn.188016e6
push 0x118
lea eax, [ebp - 0x1e8]
push ebx
push eax
call fcn.18819090
add esp, 0x28
lea eax, [ebp - 0x1ec]
push eax
mov dword [ebp - 0x1ec], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
push 0x62
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x24e]
push ebx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.18819090
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1880157b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add esp, 0x18
cmp ecx, dword [ebp - 0x1e8]
ja 0x1880b68f
jne 0x1880b69b
cmp eax, dword [ebp - 0x1e4]
jbe 0x1880b69b
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x1e4], eax
cmp dword [ebp - 0x1e8], 0xa
jb 0x1880b6c2
lea eax, [ebp - 0x250]
push eax
push str.ver__s
mov eax, pe_nt_image_headers32
lea edi, [ebp - 0x1d8]
call fcn.188016e6
pop ecx
pop ecx
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x6c], ebx
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x6c]
cmp eax, ebx
je 0x1880b71d
cmp eax, 6
je 0x1880b716
cmp eax, 9
je 0x1880b70f
push eax
push 0x18833de0
push 0x14
pop eax
lea edi, [ebp - 0x20]
call fcn.188016e6
pop ecx
pop ecx
jmp 0x1880b72d
push 0x18833dd0
jmp 0x1880b722
push 0x18833dd8
jmp 0x1880b722
push 0x188338d8
push 0x14
pop eax
lea ecx, [ebp - 0x20]
call fcn.188014a8
cmp byte [ebp - 0xd2], 3
mov byte [ebp - 1], bl
je 0x1880b742
cmp byte [ebp - 0xd2], 2
jne 0x1880b746
mov byte [ebp - 1], 1
xor eax, eax
push 0x18e
mov word [ebp - 0x3e0], ax
lea eax, [ebp - 0x3de]
push ebx
push eax
call fcn.18819090
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1d8]
push eax
push dword [ebp - 0x1e4]
mov esi, 0x190
push dword [ebp - 0x1e8]
mov eax, esi
push str._u._u__s__s
lea edi, [ebp - 0x3e0]
call fcn.188016e6
add esp, 0x20
cmp byte [ebp - 1], bl
je 0x1880b7a7
push str._Srv
mov eax, esi
mov ebx, edi
call fcn.188014dd
xor ebx, ebx
xor eax, eax
push 0x206
mov word [ebp - 0x5e8], ax
lea eax, [ebp - 0x5e6]
push ebx
push eax
call fcn.18819090
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x5e8]
push eax
push 0xffffffffffffffff
push dword [esi + 4]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 9
xor eax, eax
pop ecx
mov word [ebp - 0x94], ax
lea edi, [ebp - 0x92]
rep stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
push 0x14
lea eax, [ebp - 0x94]
push eax
push dword [esi + 8]
call fcn.188199d5
mov esi, dword [ebp + 0x10]
add esp, 0x10
cmp esi, ebx
je 0x1880b81e
cmp word [esi], bx
jne 0x1880b81e
mov dword [ebp + 0x10], ebx
mov esi, ebx
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x3e0]
mov dword [ebp - 0x48], str._Version_
mov dword [ebp - 0x40], str._OS_
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], str._ProductName_
mov dword [ebp - 0x34], esi
cmp esi, ebx
jne 0x1880b853
mov dword [ebp - 0x34], 0x18833988
lea eax, [ebp - 0x5e8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push 5
push eax
lea eax, [ebp - 0x11a0]
mov edi, 0x5dc
push eax
mov dword [ebp - 0x30], str._SourceFile_
mov dword [ebp - 0x28], str._SourceFileLine_
mov dword [ebp + 0x10], edi
call fcn.1880c9a6
mov ecx, dword [ebp + 0xc]
add esp, 0x14
push 0x18833e88
mov eax, edi
call fcn.1880b4fd
mov ecx, dword [ebp + 0xc]
push str.Missing_information:
mov eax, edi
call fcn.1880b4fd
cmp esi, ebx
jne 0x1880b8d7
mov ecx, dword [ebp + 0xc]
push str.AppName
mov eax, edi
call fcn.1880b4fd
mov ecx, dword [ebp + 0xc]
push 0x18833e90
mov eax, edi
call fcn.1880b4fd
mov ecx, dword [ebp + 0xc]
push str.ResDll
mov eax, edi
call fcn.1880b4fd
pop edi
pop esi
pop ebx
leave
ret