Function at 0x502980
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push pe_nt_image_headers32
lea eax, [ebp - 0x19c]
push 0
push eax
call fcn.00581cf0
add esp, 0xc
mov dword [ebp - 0x1a0], 0x11c
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
jns 0x5029d9
mov dword [0x62dbb0], 0
jmp 0x502e5a
mov eax, dword [ebp - 0x19c]
mov ecx, 0x2e
push 0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x198]
push 0x50
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x194]
push 0x62db60
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x80]
push 5
push eax
mov dword [ebp - 0x80], 8
mov dword [ebp - 0x68], 0
mov word [ebp - 0x58], cx
mov dword [ebp - 0x50], 8
mov dword [ebp - 0x38], 0
mov word [ebp - 0x28], cx
mov dword [ebp - 0x20], 8
call sym.SystemInformer.exe_PhFormatToBuffer
mov eax, dword [ebp - 0x198]
lea esi, [ebp - 0x1a0]
mov ecx, 0x47
mov edi, 0x6336b8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x19c]
cmp ecx, 6
jne 0x502a6b
jmp 0x502a60
cmp eax, 1
jb 0x5029ca
jmp 0x502a77
jb 0x5029ca
jne 0x502af7
cmp eax, 1
jne 0x502aa1
mov dword [0x62dbb0], 0x3d
mov dword [0x62dbb4], 0x60d3e4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x502aca
mov dword [0x62dbb0], 0x3e
mov dword [0x62dbb4], 0x60d3d0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x502e50
mov dword [0x62dbb0], 0x3f
mov dword [0x62dbb4], 0x60d3b8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
jmp 0x502b00
cmp ecx, 0xa
jne 0x502e50
cmp dword [ebp - 0x198], 0
jne 0x502e50
mov eax, dword ds:[ebp - 0x194]
cmp eax, 0x6590
jbe 0x502b4b
mov eax, 0x6048f0
mov dword [0x62dbb0], 0xffffffff
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
jb 0x502b71
mov eax, str.Windows_11_24H2
mov dword [0x62dbb0], 0x75
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x5867
jb 0x502b9c
mov eax, str.Windows_11_23H2
mov dword [0x62dbb0], 0x74
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
lea esp, [esp]
cmp eax, 0x585d
jb 0x502bcb
mov eax, str.Windows_11_22H2
mov dword [0x62dbb0], 0x73
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x55f0
jb 0x502bf6
mov eax, str.Windows_11
mov dword [0x62dbb0], 0x72
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x4a65
jb 0x502c21
mov eax, str.Windows_10_22H2
mov dword [0x62dbb0], 0x71
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x4a64
jb 0x502c4c
mov eax, str.Windows_10_21H2
mov dword [0x62dbb0], 0x70
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x4a63
jb 0x502c77
mov eax, str.Windows_10_21H1
mov dword [0x62dbb0], 0x6f
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x4a62
jb 0x502ca2
mov eax, str.Windows_10_20H2
mov dword [0x62dbb0], 0x6e
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x4a61
jb 0x502ccd
mov eax, str.Windows_10_20H1
mov dword [0x62dbb0], 0x6d
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x47bb
jb 0x502cf8
mov eax, str.Windows_10_19H2
mov dword [0x62dbb0], 0x6c
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x47ba
jb 0x502d23
mov eax, str.Windows_10_19H1
mov dword [0x62dbb0], 0x6b
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x4563
jb 0x502d4e
mov eax, str.Windows_10_RS5
mov dword [0x62dbb0], 0x6a
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x42ee
jb 0x502d79
mov eax, str.Windows_10_RS4
mov dword [0x62dbb0], 0x69
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
lea esp, [esp]
cmp eax, 0x3fab
jb 0x502dab
mov eax, str.Windows_10_RS3
mov dword [0x62dbb0], 0x68
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x3ad7
jb 0x502dd6
mov eax, str.Windows_10_RS2
mov dword [0x62dbb0], 0x67
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x3839
jb 0x502e01
mov eax, str.Windows_10_RS1
mov dword [0x62dbb0], 0x66
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp eax, 0x295a
jb 0x502e2c
mov eax, str.Windows_10_TH2
mov dword [0x62dbb0], 0x65
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
mov eax, str.Windows_10
mov dword [0x62dbb0], 0x64
mov dword [0x62dbb4], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
mov dword [0x62dbb0], 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x62dbb4], 0x6048f0
pop esi
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret