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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d050
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x490274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x49396c], 0
jne 0x4201a7
push 0x40
call fcn.00435bec
mov esi, eax
add esp, 4
mov dword [ebp - 0x134], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x420143
mov dword [esi], 0
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x471f00
push 0x4715bc
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x420005
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push ecx
push edi
call eax
test eax, eax
jne 0x41fffa
mov eax, 2
jmp 0x420005
xor eax, eax
cmp dword [ebp - 0x130], eax
setne al
mov dword [esi + 0x24], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0xf
mov byte [esi + 0x28], 0
push pe_nt_image_headers32
lea eax, [ebp - 0x128]
mov dword [ebp - 0x12c], 0x11c
push 0
push eax
call fcn.0044e130
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x120]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
cmp edx, 5
jne 0x420078
test ecx, ecx
jle 0x4200a7
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x4200a7
cmp edx, 6
jne 0x42009f
sub ecx, 0
je 0x420097
sub ecx, 1
je 0x42008f
mov dword [esi], 5
jmp 0x4200a7
mov dword [esi], 4
jmp 0x4200a7
mov dword [esi], 3
jmp 0x4200a7
jle 0x4200a7
mov dword [esi], 6
movzx eax, word [ebp - 0x18]
xorps xmm0, xmm0
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0x16]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x158]
push eax
movups xmmword [ebp - 0x158], xmm0
mov dword [ebp - 0x138], 0
movups xmmword [ebp - 0x148], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x158]
test eax, eax
je 0x420128
cmp eax, 6
je 0x42010d
cmp eax, 9
jne 0x42012f
mov eax, dword [ebp - 0x144]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x13c]
mov dword [esi + 0x18], 1
mov dword [esi + 0x20], eax
jmp 0x420145
mov eax, dword [ebp - 0x144]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x13c]
mov dword [esi + 0x18], 2
mov dword [esi + 0x20], eax
jmp 0x420145
mov dword [esi + 0x18], 0
mov eax, dword [ebp - 0x144]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x13c]
mov dword [esi + 0x20], eax
jmp 0x420145
xor esi, esi
mov ecx, esi
mov edx, 0x49396c
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4201a7
test esi, esi
je 0x4201a7
mov ecx, dword [esi + 0x3c]
cmp ecx, 0x10
jb 0x42018a
mov eax, dword [esi + 0x28]
inc ecx
cmp ecx, 0x1000
jb 0x420180
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4201c7
mov eax, edx
push ecx
push eax
call fcn.00435c1c
add esp, 8
push 0x40
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0xf
push esi
mov byte [esi + 0x28], 0
call fcn.00435c1c
add esp, 8
mov eax, dword [0x49396c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00435bdb
mov esp, ebp
pop ebp
ret
call fcn.00451286
int3