Function at 0x47eff0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x4c90b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x20
mov word [ebp - 8], ax
cmp dword [0x4cb248], 0
je 0x47f022
mov eax, dword [0x4cb248]
jmp 0x47f357
mov dword [0x4cb248], 0
mov eax, 1
test eax, eax
je 0x47f078
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x47f076
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0xc]
test eax, eax
je 0x47f076
cmp dword [ebp - 0x10], 0
je 0x47f076
mov eax, 0x40
mov word [ebp - 8], ax
jmp 0x47f081
mov eax, 0x40
mov word [ebp - 8], ax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x47f0f3
push str.RtlGetNtVersionNumbers
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x47f0dd
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
call dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x47f0f1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4cb248]
jmp 0x47f357
jmp 0x47f0fd
mov eax, dword [0x4cb248]
jmp 0x47f357
cmp dword [ebp - 0x14], 4
jne 0x47f124
cmp dword [ebp - 0x18], 0
je 0x47f115
cmp dword [ebp - 0x18], 0xa
je 0x47f115
cmp dword [ebp - 0x18], 0x5a
jne 0x47f11f
mov dword [0x4cb248], 1
jmp 0x47f352
cmp dword [ebp - 0x14], 5
jne 0x47f19f
cmp dword [ebp - 0x18], 0
jne 0x47f13c
mov dword [0x4cb248], 2
jmp 0x47f19a
cmp dword [ebp - 0x18], 1
jne 0x47f16c
movzx eax, word [ebp - 8]
cmp eax, 0x20
jne 0x47f157
mov dword [0x4cb248], 4
jmp 0x47f16a
movzx eax, word [ebp - 8]
cmp eax, 0x40
jne 0x47f16a
mov dword [0x4cb248], 8
jmp 0x47f19a
cmp dword [ebp - 0x18], 2
jne 0x47f19a
movzx eax, word [ebp - 8]
cmp eax, 0x20
jne 0x47f187
mov dword [0x4cb248], 0x10
jmp 0x47f19a
movzx eax, word [ebp - 8]
cmp eax, 0x40
jne 0x47f19a
mov dword [0x4cb248], 0x20
jmp 0x47f352
cmp dword [ebp - 0x14], 6
jne 0x47f240
cmp dword [ebp - 0x18], 0
jne 0x47f240
push 0x11c
push 0
lea eax, [ebp - 0x140]
push eax
call fcn.0048a4c0
add esp, 0xc
mov dword [ebp - 0x140], 0x11c
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, byte [ebp - 0x26]
cmp eax, 3
jne 0x47f213
movzx eax, word [ebp - 8]
cmp eax, 0x20
jne 0x47f1fe
mov dword [0x4cb248], 0x100
jmp 0x47f211
movzx eax, word [ebp - 8]
cmp eax, 0x40
jne 0x47f211
mov dword [0x4cb248], 0x200
jmp 0x47f23b
movzx eax, word [ebp - 8]
cmp eax, 0x20
jne 0x47f228
mov dword [0x4cb248], 0x40
jmp 0x47f23b
movzx eax, word [ebp - 8]
cmp eax, 0x40
jne 0x47f23b
mov dword [0x4cb248], 0x80
jmp 0x47f352
cmp dword [ebp - 0x14], 6
jne 0x47f279
cmp dword [ebp - 0x18], 1
jne 0x47f279
movzx eax, word [ebp - 8]
cmp eax, 0x20
jne 0x47f261
mov dword [0x4cb248], 0x400
jmp 0x47f274
movzx eax, word [ebp - 8]
cmp eax, 0x40
jne 0x47f274
mov dword [0x4cb248], 0x800
jmp 0x47f352
cmp dword [ebp - 0x14], 6
jne 0x47f2b2
cmp dword [ebp - 0x18], 2
jne 0x47f2b2
movzx eax, word [ebp - 8]
cmp eax, 0x20
jne 0x47f29a
mov dword [0x4cb248], 0x1000
jmp 0x47f2ad
movzx eax, word [ebp - 8]
cmp eax, 0x40
jne 0x47f2ad
mov dword [0x4cb248], 0x2000
jmp 0x47f352
cmp dword [ebp - 0x14], 6
jne 0x47f2e8
cmp dword [ebp - 0x18], 3
jne 0x47f2e8
movzx eax, word [ebp - 8]
cmp eax, 0x20
jne 0x47f2d3
mov dword [0x4cb248], 0x4000
jmp 0x47f2e6
movzx eax, word [ebp - 8]
cmp eax, 0x40
jne 0x47f2e6
mov dword [0x4cb248], 0x8000
jmp 0x47f352
cmp dword [ebp - 0x14], 6
jne 0x47f31e
cmp dword [ebp - 0x18], 4
jne 0x47f31e
movzx eax, word [ebp - 8]
cmp eax, 0x20
jne 0x47f309
mov dword [0x4cb248], 0x10000
jmp 0x47f31c
movzx eax, word [ebp - 8]
cmp eax, 0x40
jne 0x47f31c
mov dword [0x4cb248], 0x20000
jmp 0x47f352
cmp dword [ebp - 0x14], 0xa
jne 0x47f352
cmp dword [ebp - 0x18], 0
jne 0x47f352
movzx eax, word [ebp - 8]
cmp eax, 0x20
jne 0x47f33f
mov dword [0x4cb248], 0x10000
jmp 0x47f352
movzx eax, word [ebp - 8]
cmp eax, 0x40
jne 0x47f352
mov dword [0x4cb248], 0x20000
mov eax, dword [0x4cb248]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487e4e
mov esp, ebp
pop ebp
ret