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

Disassembly:
push 0x164
mov eax, 0x44ca19
call fcn.00414960
mov ebx, ecx
mov dword [ebp - 0x138], ebx
xor eax, eax
mov dword [ebp - 0x148], ebx
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov byte [ebx + 8], al
mov dword [ebx + 0x24], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41012d
and dword [ebp - 0x134], 0
lea ecx, [ebp - 0x134]
push ecx
push esi
call eax
test eax, eax
jne 0x410122
push 2
pop eax
jmp 0x41012d
xor eax, eax
cmp dword [ebp - 0x134], eax
setne al
mov dword [ebx + 0x30], eax
lea eax, [ebx + 0x34]
and dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
cmp dword [eax + 0x14], 0x10
jb 0x410146
mov eax, dword [eax]
mov byte [eax], 0
and dword [ebp - 4], 0
lea esi, [ebp - 0x144]
and dword [ebp - 0x144], 0
lea edi, [ebx + 0xc]
and dword [ebp - 0x140], 0
lea ecx, [ebx + 0xc]
and dword [ebp - 0x13c], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040ff55
push 0x118
mov dword [ebx], eax
xor esi, esi
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x130], 0x11c
push esi
push eax
call fcn.0042d090
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 0xc], esi
jne 0x4101c6
mov eax, dword [ebp - 0x12c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x128]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x124]
mov dword [ebx + 0x14], eax
movzx eax, word [ebp - 0x1c]
lea edi, [ebp - 0x16c]
mov dword [ebx + 0x1c], eax
movzx eax, word [ebp - 0x1a]
mov dword [ebx + 0x20], eax
push 9
pop eax
mov ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x16c]
xor edi, edi
movzx eax, cx
inc edi
push 9
pop edx
test eax, eax
je 0x41021b
cmp eax, 6
je 0x410212
cmp eax, edx
jne 0x41021e
mov dword [ebx + 0x24], edi
jmp 0x41021e
mov dword [ebx + 0x24], 2
jmp 0x41021e
mov dword [ebx + 0x24], esi
cmp dword [ebp - 0x12c], 6
mov eax, dword [ebp - 0x158]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x150]
mov dword [ebx + 0x2c], eax
je 0x410295
cmp dword [ebp - 0x12c], 0xa
je 0x410295
cmp dword [ebp - 0x12c], 5
jne 0x4102e8
cmp dword [ebp - 0x128], 2
jne 0x41027c
cmp byte [ebp - 0x16], 1
jne 0x410267
cmp cx, dx
je 0x410307
mov ax, word [ebp - 0x18]
not ax
movzx eax, ax
shr eax, 0xe
and eax, 2
mov dword [ebx + 0x18], eax
jmp 0x4102eb
cmp dword [ebp - 0x128], edi
jne 0x4102e8
mov ax, word [ebp - 0x18]
not ax
movzx eax, ax
shr eax, 9
and eax, edi
jmp 0x410277
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 - 0x138]
push ecx
push esi
push esi
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
call eax
mov eax, dword [ebp - 0x138]
cmp eax, 0xf
ja 0x4102f3
cmp eax, 0xc
jae 0x41030c
cmp eax, edi
je 0x410307
cmp eax, 4
je 0x410307
cmp eax, 6
je 0x410307
jbe 0x4102e8
cmp eax, 0xa
jbe 0x41030c
mov dword [ebx + 0x18], esi
mov eax, ebx
call fcn.0041490a
ret
cmp eax, 0x11
jb 0x4102e8
cmp eax, 0x12
jbe 0x41030c
cmp eax, 0x19
je 0x41030c
cmp eax, 0x30
jne 0x4102e8
mov dword [ebx + 0x18], edi
jmp 0x4102eb
mov dword [ebx + 0x18], 2
jmp 0x4102eb