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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa920
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c0
mov eax, dword [0x53f084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x140], 0
mov dword [esi], 0
mov dword [esi + 0x1c], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417ff3
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0
push ecx
push edi
call eax
test eax, eax
jne 0x417fe8
mov eax, 2
jmp 0x417ff3
xor eax, eax
cmp dword [ebp - 0x13c], eax
setne al
mov dword [esi + 0x28], eax
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0xf
mov byte [esi + 0x2c], 0
push 0x118
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x138], 0x11c
call fcn.004d43f0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x134]
mov edi, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
cmp eax, 5
jne 0x418072
test edi, edi
jle 0x4181a7
xor eax, eax
cmp edi, 1
setne al
inc eax
jmp 0x4181a9
cmp eax, 6
jne 0x4180f4
mov eax, edi
sub eax, 0
je 0x4180ea
sub eax, 1
je 0x4180e0
sub eax, 1
je 0x4180d6
cmp dword [0x543fdc], 1
jne 0x4180cc
push str.minor__3
mov edx, 3
mov ecx, edi
call fcn.00417e40
add esp, 4
test eax, eax
je 0x4180cc
push eax
push 3
push 0x9a
push str.f:my_lab_tabexplorerextab_masterlibrary_basewinwindows_version.cpp
lea ecx, [ebp - 0x220]
call fcn.0040ec90
lea ecx, [ebp - 0x220]
call fcn.0040f1c0
mov eax, 6
jmp 0x4181a9
mov eax, 5
jmp 0x4181a9
mov eax, 4
jmp 0x4181a9
mov eax, 3
jmp 0x4181a9
cmp eax, 0xa
jne 0x41813c
cmp ecx, 0x295a
jge 0x41810b
mov eax, 7
jmp 0x4181a9
cmp ecx, 0x3839
jge 0x41811d
mov eax, 8
jmp 0x4181a9
cmp ecx, 0x3ad7
jge 0x41812c
mov eax, 9
jmp 0x4181a9
xor eax, eax
cmp ecx, 0x55f0
setge al
add eax, 0xa
jmp 0x4181a9
jle 0x418145
mov eax, 0xb
jmp 0x4181a9
cmp eax, 6
jle 0x4181a7
cmp dword [0x543fdc], 1
jne 0x418185
push 3
push 0xb2
push str.f:my_lab_tabexplorerextab_masterlibrary_basewinwindows_version.cpp
lea ecx, [ebp - 0x2d0]
call fcn.0040eda0
mov byte [ebp - 4], 1
lea ecx, [eax + 8]
mov edx, str.Check_failed:_false.
mov dword [ebp - 0x140], 1
call fcn.00405a30
mov dword [ebp - 4], 0
test byte [ebp - 0x140], 1
je 0x4181a0
lea ecx, [ebp - 0x2d0]
call fcn.0040f1c0
mov eax, 0xc
jmp 0x4181a9
xor eax, eax
mov dword [esi], eax
xorps xmm0, xmm0
movzx eax, word [ebp - 0x24]
mov dword [esi + 0x14], eax
movzx eax, word [ebp - 0x22]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x16c]
push eax
movups xmmword [ebp - 0x16c], xmm0
mov dword [ebp - 0x14c], 0
movups xmmword [ebp - 0x15c], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov dx, word [ebp - 0x16c]
movzx eax, dx
test eax, eax
je 0x41820b
cmp eax, 6
je 0x418202
cmp eax, 9
jne 0x418212
mov dword [esi + 0x1c], 1
jmp 0x418212
mov dword [esi + 0x1c], 2
jmp 0x418212
mov dword [esi + 0x1c], 0
mov eax, dword [ebp - 0x158]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x150]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x134]
cmp eax, 6
je 0x418281
cmp eax, 0xa
je 0x418281
cmp eax, 5
jne case.0x4182c4.2
mov ecx, dword [ebp - 0x130]
cmp ecx, 2
jne 0x41826d
cmp byte [ebp - 0x1e], 1
jne 0x41825d
cmp dx, 9
jne 0x41825d
mov dword [esi + 0x10], 1
jmp 0x4182db
mov eax, dword [ebp - 0x20]
shr eax, 0xe
not eax
and eax, 2
mov dword [esi + 0x10], eax
jmp 0x4182db
cmp ecx, 1
jne case.0x4182c4.2
mov eax, dword [ebp - 0x20]
shr eax, 9
not eax
and eax, ecx
mov dword [esi + 0x10], eax
jmp 0x4182db
push str.GetProductInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x144]
push ecx
push 0
push 0
push dword [ebp - 0x130]
push dword [ebp - 0x134]
call eax
mov eax, dword [ebp - 0x144]
dec eax
cmp eax, 0x2f
ja case.0x4182c4.2
movzx eax, byte [eax + 0x418308]
jmp dword [eax*4 + 0x4182fc]
mov dword [esi + 0x10], 2
jmp 0x4182db
mov dword [esi + 0x10], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d170a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret