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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x218
mov eax, dword [0x498068]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
mov esi, ecx
mov dword [esp + 8], 0
push edi
mov dword [esi], 0
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4247ea
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push edi
call eax
test eax, eax
jne 0x4247e1
mov eax, 2
jmp 0x4247ea
xor eax, eax
cmp dword [esp + 8], eax
setne al
push 0x118
mov dword [esi + 0x24], eax
lea eax, [esp + 0x100]
push 0
push eax
mov dword [esp + 0x104], 0x11c
call fcn.00452050
add esp, 0xc
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [esp + 0xfc]
mov ecx, dword [esp + 0x100]
mov eax, dword [esp + 0x104]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
cmp edx, 5
jne 0x424858
test ecx, ecx
jle 0x4248ee
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x4248ee
cmp edx, 6
jne 0x42488d
cmp byte [esp + 0x212], 1
jne 0x424885
sub ecx, 0
je 0x42487d
sub ecx, 1
je 0x424875
mov dword [esi], edx
jmp 0x4248ee
mov dword [esi], 5
jmp 0x4248ee
mov dword [esi], 3
jmp 0x4248ee
mov dword [esi], 4
jmp 0x4248ee
cmp edx, 0xa
jne 0x42489a
mov dword [esi], 7
jmp 0x4248ee
cmp edx, 6
jle 0x4248ee
cmp dword [0x49ad1c], 1
jne 0x4248d7
cmp dword [0x49ad2c], 3
jg 0x4248d7
push 3
push 0x3e
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basewinwindows_version.cc
lea ecx, [esp + 0x54]
call fcn.00424f80
mov edx, str.Check_failed:_false.
lea ecx, [eax + 8]
call fcn.00407130
mov eax, 1
jmp 0x4248db
mov eax, dword [esp + 0xc]
test al, 1
je 0x4248e8
lea ecx, [esp + 0x48]
call fcn.00425110
mov dword [esi], 8
cmp dword [esi], 0
movzx eax, word [esp + 0x20c]
mov dword [esi + 0x10], eax
movzx eax, word [esp + 0x20e]
mov dword [esi + 0x14], eax
je 0x4249c1
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
push eax
movaps xmmword [esp + 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [esp + 0x10]
test eax, eax
je 0x424996
cmp eax, 6
je 0x42496b
cmp eax, 9
jne 0x42499d
mov ecx, dword [esp + 0x24]
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x18], 1
mov dword [esi + 0x20], ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0044f786
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x18], 2
mov dword [esi + 0x20], ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0044f786
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x18], 0
mov ecx, dword [esp + 0x24]
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x20], ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0044f786
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop edi
mov dword [esi + 0x18], 3
pop esi
xor ecx, esp
call fcn.0044f786
mov esp, ebp
pop ebp
ret