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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
push str.RtlGetVersion
push 0x4d826c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x128], eax
xor eax, eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
push 0x11c
push 0
lea ecx, [ebp - 0x120]
push ecx
call fcn.0048e340
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
cmp dword [ebp - 0x128], 0
je 0x41e2e2
lea edx, [ebp - 0x120]
push edx
call dword [ebp - 0x128]
test eax, eax
jl 0x41e2e2
mov dword [ebp - 0x12c], 1
cmp dword [ebp - 0x12c], 0
jne 0x41e303
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x41e303
xor eax, eax
jmp 0x41e580
cmp dword [ebp + 0x14], 0
je 0x41e319
mov ecx, 0x47
lea esi, [ebp - 0x120]
mov edi, dword [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0x144], 0x21d8
jne 0x41e33e
mov dword [ebp - 0x130], 1
jmp 0x41e348
mov dword [ebp - 0x130], 0
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x124], 0
movzx eax, word [ebp - 0xc]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x110], 2
jne 0x41e4f9
cmp dword [ebp - 0x11c], 0xa
jne 0x41e3ab
cmp dword [ebp - 0x118], 0
jne 0x41e3a6
movzx ecx, byte [ebp - 6]
cmp ecx, 1
jne 0x41e39c
mov dword [ebp - 0x124], 0x11
jmp 0x41e3a6
mov dword [ebp - 0x124], 0x12
jmp 0x41e4f7
cmp dword [ebp - 0x11c], 6
jne 0x41e463
cmp dword [ebp - 0x118], 3
jne 0x41e3e2
movzx edx, byte [ebp - 6]
cmp edx, 1
jne 0x41e3d6
mov dword [ebp - 0x124], 0xf
jmp 0x41e3e0
mov dword [ebp - 0x124], 0x10
jmp 0x41e45e
cmp dword [ebp - 0x118], 2
jne 0x41e40c
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x41e400
mov dword [ebp - 0x124], 0xd
jmp 0x41e40a
mov dword [ebp - 0x124], 0xe
jmp 0x41e45e
cmp dword [ebp - 0x118], 1
jne 0x41e436
movzx ecx, byte [ebp - 6]
cmp ecx, 1
jne 0x41e42a
mov dword [ebp - 0x124], 0xb
jmp 0x41e434
mov dword [ebp - 0x124], 0xc
jmp 0x41e45e
cmp dword [ebp - 0x118], 0
jne 0x41e45e
movzx edx, byte [ebp - 6]
cmp edx, 1
jne 0x41e454
mov dword [ebp - 0x124], 9
jmp 0x41e45e
mov dword [ebp - 0x124], 0xa
jmp 0x41e4f7
cmp dword [ebp - 0x11c], 5
jne 0x41e4e4
cmp dword [ebp - 0x118], 2
jne 0x41e4ba
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x41e48d
mov dword [ebp - 0x124], 8
jmp 0x41e4b8
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x41e4ae
movzx ecx, word [ebp - 0x15c]
cmp ecx, 9
jne 0x41e4ae
mov dword [ebp - 0x124], 6
jmp 0x41e4b8
mov dword [ebp - 0x124], 7
jmp 0x41e4e2
cmp dword [ebp - 0x118], 1
jne 0x41e4cf
mov dword [ebp - 0x124], 6
jmp 0x41e4e2
cmp dword [ebp - 0x118], 0
jne 0x41e4e2
mov dword [ebp - 0x124], 5
jmp 0x41e4f7
cmp dword [ebp - 0x11c], 4
ja 0x41e4f7
mov dword [ebp - 0x124], 4
jmp 0x41e548
cmp dword [ebp - 0x110], 1
jne 0x41e548
cmp dword [ebp - 0x11c], 4
jne 0x41e548
cmp dword [ebp - 0x118], 0
jne 0x41e520
mov dword [ebp - 0x124], 1
jmp 0x41e548
cmp dword [ebp - 0x118], 0xa
jne 0x41e535
mov dword [ebp - 0x124], 2
jmp 0x41e548
cmp dword [ebp - 0x118], 0x5a
jne 0x41e548
mov dword [ebp - 0x124], 3
cmp dword [ebp + 8], 0
je 0x41e559
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x124]
mov dword [edx], eax
cmp dword [ebp + 0xc], 0
je 0x41e56a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x134]
mov dword [ecx], edx
cmp dword [ebp + 0x10], 0
je 0x41e57b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x138]
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret