Function at 0x49d180
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56637d
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x5ef300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x2f0], 0
je 0x49d221
call fcn.00441760
lea ecx, [ebp - 0x28]
lea edx, [eax + 0x13c]
call fcn.00419370
mov edx, eax
mov dword [ebp - 4], 0
call fcn.0041d340
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.004179b0
call fcn.0041f660
test esi, esi
je 0x49d1f8
push 1
jmp 0x49d1fa
push 0
call dword [0x5ffca8]
add esp, 4
call fcn.0041f660
call dword [0x5ffcbc]
mov ecx, dword [edi + 0x2f0]
movzx eax, al
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x84]
cmp dword [edi + 0x2f4], 0
je 0x49d248
call fcn.0041f660
call dword [0x5ffce4]
mov ecx, dword [edi + 0x2f4]
movzx eax, al
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x84]
cmp dword [edi + 0x2f8], 0
je 0x49d26f
call fcn.0041f660
call dword [0x5ffe04]
mov ecx, dword [edi + 0x2f8]
movzx eax, al
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x84]
cmp dword [edi + 0x2fc], 0
je 0x49d29a
call fcn.0041f660
call dword [0x5ffe04]
mov edx, dword [edi + 0x2fc]
xor ecx, ecx
test al, al
sete cl
mov esi, dword [edx]
push ecx
push edx
call dword [esi + 0x84]
cmp dword [edi + 0x300], 0
je 0x49d2c1
call fcn.0041f660
call dword [0x5ffdfc]
mov ecx, dword [edi + 0x300]
movzx eax, al
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x84]
cmp dword [edi + 0x304], 0
je 0x49d30e
call fcn.0041f660
call dword [0x5ffbe4]
mov ecx, dword [edi + 0x304]
movzx eax, al
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x84]
call fcn.0041f660
call fcn.00475550
mov cl, byte [eax + 4]
mov edx, dword [edi + 0x304]
xor eax, eax
test cl, cl
push 1
sete al
mov esi, dword [edx]
push eax
push edx
call dword [esi + 0x8c]
cmp dword [edi + 0x308], 0
je 0x49d416
call fcn.0041f660
call dword [0x5ffd0c]
mov ecx, dword [edi + 0x308]
movzx eax, al
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x84]
push 0x118
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.0052dd20
add esp, 0xc
mov dword [ebp - 0x148], 0x11c
xor ebx, ebx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x49d3ae
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49d3a3
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x144]
push ecx
call eax
test eax, eax
je 0x49d3a3
xor eax, eax
mov word [ebp - 0x13a], ax
lea ebx, [eax + 1]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x49d3d8
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x148]
push eax
call esi
test eax, eax
jne 0x49d3d8
lea eax, [ebp - 0x148]
mov dword [ebp - 0x148], 0x114
push eax
call esi
test eax, eax
je 0x49d402
cmp dword [ebp - 0x144], 6
jne 0x49d402
cmp dword [ebp - 0x140], 1
jne 0x49d402
call fcn.0041f660
call fcn.00475550
mov al, byte [eax + 4]
test al, al
jne 0x49d402
mov edx, 1
jmp 0x49d404
xor edx, edx
mov eax, dword [edi + 0x308]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x8c]
cmp dword [edi + 0x30c], 0
je 0x49d463
call fcn.0041f660
call dword [0x5ffdbc]
mov ecx, dword [edi + 0x30c]
movzx eax, al
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x84]
call fcn.0041f660
call fcn.00475550
mov cl, byte [eax + 4]
mov edx, dword [edi + 0x30c]
xor eax, eax
test cl, cl
push 1
sete al
mov esi, dword [edx]
push eax
push edx
call dword [esi + 0x8c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b3fa
mov esp, ebp
pop ebp
ret