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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
lea edi, [ebp - 0x144]
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x40b7ce
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [edi], 0x11c
push edi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x40b3e3
mov dword [edi], 0x114
push edi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x40b3e3
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x40b7d5
cmp dword [edi + 0x10], 2
je 0x40b3f3
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x40b7d5
test ebx, ebx
je 0x40b401
movzx eax, word [edi + 0x118]
mov word [ebx], ax
test esi, esi
je 0x40b40e
movzx eax, byte [edi + 0x11a]
mov byte [esi], al
cmp dword [0x4d12c4], 0
je 0x40b429
mov eax, dword [0x4d12c4]
mov dword [ebp - 4], eax
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x40b7d5
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.00401ba0
push 0x40b7e0
push 0x40b808
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.004016b0
test eax, eax
je 0x40b457
lea edx, [ebp - 0x28]
push edx
call eax
jmp 0x40b460
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
cmp dword [edi + 4], 5
jne 0x40b475
cmp dword [edi + 8], 1
jne 0x40b475
cmp byte [edi + 0x11a], 1
je 0x40b48a
cmp dword [edi + 4], 5
jne 0x40b4c9
cmp dword [edi + 8], 2
jne 0x40b4c9
cmp byte [edi + 0x11a], 1
jne 0x40b4c9
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x40b4a5
sub ax, 5
je 0x40b4bd
sub ax, 3
je 0x40b4b1
jmp 0x40b7b8
mov dword [ebp - 4], 1
jmp 0x40b7b8
mov dword [ebp - 4], 2
jmp 0x40b7b8
mov dword [ebp - 4], 4
jmp 0x40b7b8
cmp dword [edi + 4], 6
jne 0x40b51d
cmp dword [edi + 8], 0
jne 0x40b51d
cmp byte [edi + 0x11a], 1
jne 0x40b51d
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x40b4f9
sub ax, 5
je 0x40b511
sub ax, 3
je 0x40b505
jmp 0x40b7b8
mov dword [ebp - 4], 8
jmp 0x40b7b8
mov dword [ebp - 4], 0x10
jmp 0x40b7b8
mov dword [ebp - 4], 0x20
jmp 0x40b7b8
cmp dword [edi + 4], 6
jne 0x40b571
cmp dword [edi + 8], 1
jne 0x40b571
cmp byte [edi + 0x11a], 1
jne 0x40b571
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x40b54d
sub ax, 5
je 0x40b565
sub ax, 3
je 0x40b559
jmp 0x40b7b8
mov dword [ebp - 4], 0x40
jmp 0x40b7b8
mov dword [ebp - 4], 0x80
jmp 0x40b7b8
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x40b7b8
cmp dword [edi + 4], 6
jne 0x40b5c5
cmp dword [edi + 8], 2
jne 0x40b5c5
cmp byte [edi + 0x11a], 1
jne 0x40b5c5
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x40b5a1
sub ax, 5
je 0x40b5b9
sub ax, 3
je 0x40b5ad
jmp 0x40b7b8
mov dword [ebp - 4], 0x200
jmp 0x40b7b8
mov dword [ebp - 4], 0x400
jmp 0x40b7b8
mov dword [ebp - 4], 0x800
jmp 0x40b7b8
cmp dword [edi + 4], 6
jne 0x40b619
cmp dword [edi + 8], 3
jne 0x40b619
cmp byte [edi + 0x11a], 1
jne 0x40b619
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x40b5f5
sub ax, 5
je 0x40b60d
sub ax, 3
je 0x40b601
jmp 0x40b7b8
mov dword [ebp - 4], 0x200000
jmp 0x40b7b8
mov dword [ebp - 4], 0x400000
jmp 0x40b7b8
mov dword [ebp - 4], 0x800000
jmp 0x40b7b8
cmp dword [edi + 4], 6
jne 0x40b66d
cmp dword [edi + 8], 4
jne 0x40b66d
cmp byte [edi + 0x11a], 1
jne 0x40b66d
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x40b649
sub ax, 5
je 0x40b661
sub ax, 3
je 0x40b655
jmp 0x40b7b8
mov dword [ebp - 4], 0x1000000
jmp 0x40b7b8
mov dword [ebp - 4], 0x2000000
jmp 0x40b7b8
mov dword [ebp - 4], 0x4000000
jmp 0x40b7b8
cmp dword [edi + 4], 0xa
jne 0x40b6c1
cmp dword [edi + 8], 0
jne 0x40b6c1
cmp byte [edi + 0x11a], 1
jne 0x40b6c1
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x40b69d
sub ax, 5
je 0x40b6b5
sub ax, 3
je 0x40b6a9
jmp 0x40b7b8
mov dword [ebp - 4], 0x1000000
jmp 0x40b7b8
mov dword [ebp - 4], 0x2000000
jmp 0x40b7b8
mov dword [ebp - 4], 0x4000000
jmp 0x40b7b8
cmp dword [edi + 4], 5
jne 0x40b715
cmp dword [edi + 8], 2
jne 0x40b715
cmp byte [edi + 0x11a], 1
je 0x40b715
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x40b6f1
sub ax, 5
je 0x40b709
sub ax, 3
je 0x40b6fd
jmp 0x40b7b8
mov dword [ebp - 4], 0x1000
jmp 0x40b7b8
mov dword [ebp - 4], 0x2000
jmp 0x40b7b8
mov dword [ebp - 4], 0x4000
jmp 0x40b7b8
cmp dword [edi + 4], 6
jne 0x40b72a
cmp dword [edi + 8], 0
jne 0x40b72a
cmp byte [edi + 0x11a], 1
jne 0x40b73f
cmp dword [edi + 4], 6
jne 0x40b772
cmp dword [edi + 8], 1
jne 0x40b772
cmp byte [edi + 0x11a], 1
je 0x40b772
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x40b757
sub ax, 5
je 0x40b769
sub ax, 3
je 0x40b760
jmp 0x40b7b8
mov dword [ebp - 4], 0x8000
jmp 0x40b7b8
mov dword [ebp - 4], 0x10000
jmp 0x40b7b8
mov dword [ebp - 4], 0x20000
jmp 0x40b7b8
cmp dword [edi + 4], 6
jne 0x40b7b8
cmp dword [edi + 8], 2
jne 0x40b7b8
cmp byte [edi + 0x11a], 1
je 0x40b7b8
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x40b79f
sub ax, 5
je 0x40b7b1
sub ax, 3
je 0x40b7a8
jmp 0x40b7b8
mov dword [ebp - 4], 0x40000
jmp 0x40b7b8
mov dword [ebp - 4], 0x80000
jmp 0x40b7b8
mov dword [ebp - 4], 0x100000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b7d5
mov eax, dword [ebp - 4]
mov dword [0x4d12c4], eax
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret