Function at 0x42f1bc
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x11c
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 0x124
xor ebx, ebx
push ebx
push esi
call fcn.00449c78
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x118
mov edi, eax
lea eax, [ebp - 0xa4]
push ebx
push eax
mov dword [ebp - 0xa8], 0x11c
call fcn.00449c78
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
cmp edi, ebx
je 0x42f229
call edi
test eax, eax
jne 0x42f25e
jmp 0x42f22f
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0xa4]
mov dword [esi], eax
mov eax, dword [ebp - 0xa0]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x9c]
mov dword [esi + 8], eax
movzx eax, word [ebp + 0x6c]
mov dword [esi + 0xc], eax
movzx eax, byte [ebp + 0x72]
mov dword [esi + 0x10], eax
movzx eax, word [ebp + 0x70]
mov dword [esi + 0x14], eax
mov edi, dword [esi]
push 0xa
xor edx, edx
pop ecx
mov eax, edi
div ecx
push 0xa
pop ebx
mov ecx, eax
mov eax, dword [esi + 4]
mov dword [ebp + 0x7c], edx
xor edx, edx
div ebx
shl ecx, 4
add ecx, dword [ebp + 0x7c]
shl ecx, 4
add ecx, eax
shl ecx, 4
lea eax, [ecx + edx]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
cmp edi, 5
jb 0x42f35d
call fcn.004286ba
mov dword [ebp + 0x7c], eax
test eax, eax
je 0x42f2ef
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea eax, [esi + 0x28]
push eax
call ebx
mov edi, str.Win32
lea eax, [esi + 0x38]
push edi
push eax
call ebx
push edi
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x42f35d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str._on
lea ebx, [esi + 0x38]
push ebx
call edi
push dword [ebp + 0x7c]
push ebx
call edi
mov dword [esi + 0x24], 1
jmp 0x42f35d
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x42f323
and dword [ebp + 0x7c], 0
lea eax, [ebp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov eax, dword [ebp + 0x7c]
mov dword [esi + 0x24], eax
cmp dword [esi + 0x24], 0
lea eax, [esi + 0x38]
je 0x42f347
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Win32_on_x64
push eax
call edi
push 0x473570
lea eax, [esi + 0x28]
push eax
call edi
jmp 0x42f35d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, str.Win32
push edi
push eax
call ebx
push edi
lea eax, [esi + 0x28]
push eax
call ebx
push 0x40
lea eax, [esi + 0x58]
push eax
push 0x4743ac
mov ebx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push ebx
mov edi, 0x80000002
push edi
call fcn.00428e72
cmp dword [esi + 8], 0x55f0
jb 0x42f390
cmp word [esi + 0x6a], 0x30
jne 0x42f390
push 0x31
pop eax
mov word [esi + 0x6a], ax
cmp dword [esi], 0xa
jb 0x42f3da
push 0x10
lea eax, [esi + 0xd8]
push eax
push str.DisplayVersion
push ebx
push edi
call fcn.00428e72
lea eax, [esi + 0xd8]
cmp word [eax], 0
jne 0x42f3c5
push 0x10
push eax
push str.ReleaseID
push ebx
push edi
call fcn.00428e72
push 0x10
add esi, 0xf8
push esi
push 0x474310
push ebx
push edi
call fcn.00428e72
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4