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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x448008]
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 0x440e2c
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.0041b4b0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
cmp dword [ebp - 0x128], 0
je 0x418a32
lea edx, [ebp - 0x120]
push edx
call dword [ebp - 0x128]
test eax, eax
jl 0x418a32
mov dword [ebp - 0x12c], 1
cmp dword [ebp - 0x12c], 0
jne 0x418a53
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x418a53
xor eax, eax
jmp 0x418cd0
cmp dword [ebp + 0x14], 0
je 0x418a69
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 0x418a8e
mov dword [ebp - 0x130], 1
jmp 0x418a98
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 0x418c49
cmp dword [ebp - 0x11c], 0xa
jne 0x418afb
cmp dword [ebp - 0x118], 0
jne 0x418af6
movzx ecx, byte [ebp - 6]
cmp ecx, 1
jne 0x418aec
mov dword [ebp - 0x124], 0x11
jmp 0x418af6
mov dword [ebp - 0x124], 0x12
jmp 0x418c47
cmp dword [ebp - 0x11c], 6
jne 0x418bb3
cmp dword [ebp - 0x118], 3
jne 0x418b32
movzx edx, byte [ebp - 6]
cmp edx, 1
jne 0x418b26
mov dword [ebp - 0x124], 0xf
jmp 0x418b30
mov dword [ebp - 0x124], 0x10
jmp 0x418bae
cmp dword [ebp - 0x118], 2
jne 0x418b5c
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x418b50
mov dword [ebp - 0x124], 0xd
jmp 0x418b5a
mov dword [ebp - 0x124], 0xe
jmp 0x418bae
cmp dword [ebp - 0x118], 1
jne 0x418b86
movzx ecx, byte [ebp - 6]
cmp ecx, 1
jne 0x418b7a
mov dword [ebp - 0x124], 0xb
jmp 0x418b84
mov dword [ebp - 0x124], 0xc
jmp 0x418bae
cmp dword [ebp - 0x118], 0
jne 0x418bae
movzx edx, byte [ebp - 6]
cmp edx, 1
jne 0x418ba4
mov dword [ebp - 0x124], 9
jmp 0x418bae
mov dword [ebp - 0x124], 0xa
jmp 0x418c47
cmp dword [ebp - 0x11c], 5
jne 0x418c34
cmp dword [ebp - 0x118], 2
jne 0x418c0a
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x418bdd
mov dword [ebp - 0x124], 8
jmp 0x418c08
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x418bfe
movzx ecx, word [ebp - 0x15c]
cmp ecx, 9
jne 0x418bfe
mov dword [ebp - 0x124], 6
jmp 0x418c08
mov dword [ebp - 0x124], 7
jmp 0x418c32
cmp dword [ebp - 0x118], 1
jne 0x418c1f
mov dword [ebp - 0x124], 6
jmp 0x418c32
cmp dword [ebp - 0x118], 0
jne 0x418c32
mov dword [ebp - 0x124], 5
jmp 0x418c47
cmp dword [ebp - 0x11c], 4
ja 0x418c47
mov dword [ebp - 0x124], 4
jmp 0x418c98
cmp dword [ebp - 0x110], 1
jne 0x418c98
cmp dword [ebp - 0x11c], 4
jne 0x418c98
cmp dword [ebp - 0x118], 0
jne 0x418c70
mov dword [ebp - 0x124], 1
jmp 0x418c98
cmp dword [ebp - 0x118], 0xa
jne 0x418c85
mov dword [ebp - 0x124], 2
jmp 0x418c98
cmp dword [ebp - 0x118], 0x5a
jne 0x418c98
mov dword [ebp - 0x124], 3
cmp dword [ebp + 8], 0
je 0x418ca9
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x124]
mov dword [edx], eax
cmp dword [ebp + 0xc], 0
je 0x418cba
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x134]
mov dword [ecx], edx
cmp dword [ebp + 0x10], 0
je 0x418ccb
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.00419340
mov esp, ebp
pop ebp
ret