Function at 0x45b3b9
Capabilities:
Check os version

Disassembly:
push 0x36c
mov eax, 0x59015a
call fcn.00487dc5
mov edi, ecx
mov dword [ebp - 0x370], edi
mov dword [ebp - 0x374], edi
lea ebx, [edi + 4]
xor edx, edx
xor eax, eax
mov dword [ebp - 0x378], edx
mov dword [edi], edx
mov dword [ebx + 0x10], edx
push 7
pop ecx
mov dword [ebx + 0x14], ecx
mov word [ebx], ax
mov dword [edi + 0x30], ecx
xor ecx, ecx
mov dword [edi + 0x2c], edx
mov word [edi + 0x1c], cx
mov dword [edi + 0x44], edx
mov dword [edi + 0x48], 7
mov word [edi + 0x34], cx
mov dword [ebp - 4], edx
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x378], 1
mov esi, dword [eax]
mov eax, dword [0x68121c]
cmp eax, dword [esi + 4]
jg 0x45bbd7
mov eax, dword [0x68122c]
cmp eax, dword [esi + 4]
jg 0x45bde6
mov eax, dword [0x68123c]
cmp eax, dword [esi + 4]
jg 0x45be7e
push 0x118
lea eax, [ebp - 0x1f8]
push 0
push eax
call fcn.00497f00
add esp, 0xc
lea eax, [ebp - 0x360]
mov esi, 0x11c
mov dword [ebp - 0x1fc], esi
push 0x110
push 0
push eax
call fcn.00497f00
add esp, 0xc
mov dword [ebp - 0x364], 0x114
lea eax, [ebp - 0x1fc]
push esi
push 0
push eax
call fcn.00497f00
add esp, 0xc
mov dword [ebp - 0x1fc], esi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45b4fe
lea ecx, [ebp - 0x1fc]
push ecx
call eax
test eax, eax
jne 0x45b4fe
mov eax, dword [ebp - 0x1f8]
cmp byte [ebp - 0xe2], 1
mov esi, dword [ebp - 0x1ec]
mov ecx, dword [ebp - 0x1f4]
mov edx, dword [ebp - 0x1f0]
mov dword [ebp - 0x368], eax
sete al
jmp 0x45b533
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45bbcf
mov eax, dword [ebp - 0x360]
mov esi, dword [ebp - 0x354]
mov ecx, dword [ebp - 0x35c]
mov edx, dword [ebp - 0x358]
mov dword [ebp - 0x368], eax
mov al, 1
cmp dword [ebp - 0x368], 0
mov dword [ebp - 0x36c], edx
mov dword [ebp - 0x370], ecx
je 0x45bbcf
cmp esi, 1
jne 0x45b6b8
cmp dword [ebp - 0x368], 4
jne 0x45b91a
movzx edx, dx
mov dword [ebp - 0x36c], edx
cmp ecx, 0xa
jae 0x45b5f4
cmp edx, 0x3b6
jne 0x45b59c
mov esi, str.Windows_95
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 1
jmp 0x45b91a
lea eax, [edx - 0x3b7]
cmp eax, 0x81
ja 0x45b5c9
mov esi, str.Windows_95_SP1
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 2
jmp 0x45b91a
cmp edx, 0x438
jbe 0x45b5f1
mov esi, str.Windows_95_OSR2
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 3
jmp 0x45b91a
cmp ecx, 0xa
jne 0x45b673
cmp edx, 0x7ce
jne 0x45b61e
mov esi, str.Windows_98
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 4
jmp 0x45b91a
lea eax, [edx - 0x7cf]
cmp eax, 0xb7
ja 0x45b64b
mov esi, str.Windows_98_SP1
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 5
jmp 0x45b91a
cmp edx, 0x887
jb 0x45b698
mov esi, str.Windows_98_SE
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 6
jmp 0x45b91a
cmp ecx, 0x5a
jne 0x45b698
mov esi, str.Windows_ME
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 7
jmp 0x45b91a
mov esi, str.Windows_9x
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0x63
jmp 0x45b91a
cmp esi, 2
jne 0x45b8fa
mov esi, dword [ebp - 0x368]
cmp esi, 3
jne 0x45b6f5
cmp ecx, 0x33
jne 0x45b8dd
mov esi, str.Windows_NT_3.51
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0x65
jmp 0x45b91a
cmp esi, 4
jne 0x45b722
test ecx, ecx
jne 0x45b8dd
mov esi, str.Windows_NT_4
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0x66
jmp 0x45b91a
cmp esi, 5
jne 0x45b7a3
test ecx, ecx
jne 0x45b74b
mov esi, str.Windows_2000
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0x67
jmp 0x45b91a
cmp ecx, 1
jne 0x45b770
mov esi, str.Windows_XP
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0x68
jmp 0x45b91a
cmp ecx, 2
jne 0x45b8dd
test al, al
mov ecx, str.Windows_Server_2003
mov esi, str.Windows_XP_Professional_x64
cmove esi, ecx
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0x69
jmp 0x45b91a
cmp esi, 6
jne 0x45b86b
test ecx, ecx
jne 0x45b7da
test al, al
mov ecx, str.Windows_Server_2008
mov esi, str.Windows_Vista
cmove esi, ecx
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0x6a
jmp 0x45b91a
cmp ecx, 1
jne 0x45b809
test al, al
mov ecx, str.Windows_Server_2008_R2
mov esi, str.Windows_7
cmove esi, ecx
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0x6b
jmp 0x45b91a
cmp ecx, 2
jne 0x45b838
test al, al
mov ecx, str.Windows_Server_2012
mov esi, str.Windows_8
cmove esi, ecx
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0x6c
jmp 0x45b91a
cmp ecx, 3
jne 0x45b8dd
test al, al
mov ecx, str.Windows_Server_2012_R2
mov esi, str.Windows_8.1
cmove esi, ecx
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0x6d
jmp 0x45b91a
cmp esi, 0xa
jne 0x45b8dd
test ecx, ecx
jne 0x45b8dd
test al, al
je 0x45b8ba
cmp edx, 0x55f0
jae 0x45b89d
mov esi, str.Windows_10
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0x6e
jmp 0x45b91a
mov esi, str.Windows_11
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0x6f
jmp 0x45b91a
cmp edx, 0x3839
ja 0x45b8c9
mov esi, str.Windows_Server_2016
jmp 0x45b885
mov esi, str.Windows_Server_2019
cmp edx, 0x4563
jbe 0x45b885
mov esi, str.Windows_Server
jmp 0x45b885
mov esi, str.Windows_NT
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0xc7
jmp 0x45b91a
cmp esi, 3
jne 0x45b91a
mov esi, str.Windows_CE
push esi
call fcn.004a0636
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0044dde3
mov dword [edi], 0xc9
and dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0x18
cmp dword [edi], 0x6e
jne 0x45b93e
mov ecx, 0x681220
jmp 0x45b948
cmp dword [edi], 0x6f
jne 0x45b978
mov ecx, 0x681230
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
push 0x1c
cdq
pop esi
idiv esi
mov esi, dword [ebp - 0x36c]
dec eax
imul eax, eax, 0x1c
push 0x1c
add eax, dword [ecx]
pop ecx
cmp esi, dword [eax]
jae 0x45b96a
sub eax, ecx
jmp 0x45b962
add eax, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.00452dd0
jmp 0x45b97e
mov esi, dword [ebp - 0x36c]
mov eax, dword [ebp - 0x370]
lea edx, [ebp - 0x36c]
mov dword [ebp - 0x370], eax
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x36c], esi
mov dword [ebp - 0x368], eax
call fcn.0045ef81
lea edx, [ebp - 0x370]
lea ecx, [ebp - 0x78]
call fcn.0045ef81
lea edx, [ebp - 0x368]
lea ecx, [ebp - 0xd8]
call fcn.0045ef81
mov esi, 0x663cf0
mov byte [ebp - 4], 0x1b
push esi
lea edx, [ebp - 0xd8]
lea ecx, [ebp - 0x44]
call fcn.00450b30
pop ecx
push 0x1c
pop ecx
mov byte [ebp - 4], cl
mov edx, eax
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00450b90
pop ecx
push esi
mov edx, eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x90]
call fcn.00450b30
pop ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x1e
push ecx
mov edx, eax
lea ecx, [ebp - 0xc0]
call fcn.00450b90
pop ecx
lea esi, [edi + 0x1c]
push eax
mov ecx, esi
call fcn.00452ae0
lea ecx, [ebp - 0xc0]
call fcn.0044e0e0
lea ecx, [ebp - 0x90]
call fcn.0044e0e0
lea ecx, [ebp - 0xa8]
call fcn.0044e0e0
lea ecx, [ebp - 0x44]
call fcn.0044e0e0
lea ecx, [ebp - 0xd8]
call fcn.0044e0e0
lea ecx, [ebp - 0x78]
call fcn.0044e0e0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x18
call fcn.0044e0e0
cmp dword [ebp - 0x1c], 0
push esi
jne 0x45baf6
lea ecx, [ebp - 0x60]
call fcn.00453190
push 0x664c68
mov edx, ebx
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x90]
call fcn.0045c9ac
pop ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x20
push ecx
mov edx, eax
lea ecx, [ebp - 0xa8]
call fcn.00450b90
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x44]
mov edx, eax
mov dword [esp], 0x664c64
call fcn.00450b30
pop ecx
push eax
lea ecx, [edi + 0x34]
call fcn.00452ae0
lea ecx, [ebp - 0x44]
call fcn.0044e0e0
lea ecx, [ebp - 0xa8]
call fcn.0044e0e0
lea ecx, [ebp - 0x90]
call fcn.0044e0e0
lea ecx, [ebp - 0x60]
jmp 0x45bbc2
lea ecx, [ebp - 0x78]
call fcn.00453190
push 0x664c70
mov edx, ebx
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0xc0]
call fcn.0045c9ac
pop ecx
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.00452d40
push eax
lea ecx, [ebp - 0x60]
call fcn.00452b80
mov dword [ebp - 0x378], 3
push 0x664c68
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x90]
call fcn.00450b30
pop ecx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x25
push ecx
mov edx, eax
lea ecx, [ebp - 0xa8]
call fcn.00450b90
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x44]
mov edx, eax
mov dword [esp], 0x664c64
call fcn.00450b30
pop ecx
push eax
lea ecx, [edi + 0x34]
call fcn.00452ae0
lea ecx, [ebp - 0x44]
call fcn.0044e0e0
lea ecx, [ebp - 0xa8]
call fcn.0044e0e0
lea ecx, [ebp - 0x90]
call fcn.0044e0e0
lea ecx, [ebp - 0x60]
call fcn.0044e0e0
lea ecx, [ebp - 0xc0]
call fcn.0044e0e0
lea ecx, [ebp - 0x78]
call fcn.0044e0e0
lea ecx, [ebp - 0x2c]
call fcn.0044e0e0
mov eax, edi
call fcn.00487d6f
ret
push 0x68121c
call fcn.00487631
cmp dword [0x68121c], 0xffffffff
pop ecx
jne 0x45b431
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x248]
push str.1507
mov dword [ebp - 0x24c], 0x2800
call fcn.00452f40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x22c]
push str.1511
mov dword [ebp - 0x230], 0x295a
call fcn.00452f40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x210]
push str.1607
mov dword [ebp - 0x214], 0x3839
call fcn.00452f40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1f4]
push str.1703
mov dword [ebp - 0x1f8], 0x3ad7
call fcn.00452f40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1d8]
push str.1709
mov dword [ebp - 0x1dc], 0x3fab
call fcn.00452f40
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1bc]
push str.1803
mov dword [ebp - 0x1c0], 0x42ee
call fcn.00452f40
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1a0]
push str.1809
mov dword [ebp - 0x1a4], 0x4563
call fcn.00452f40
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x184]
push str.1903
mov dword [ebp - 0x188], 0x47ba
call fcn.00452f40
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x168]
push str.1909
mov dword [ebp - 0x16c], 0x47ba
call fcn.00452f40
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x14c]
push str.2004
mov dword [ebp - 0x150], 0x4a61
call fcn.00452f40
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x130]
push str.20H2
mov dword [ebp - 0x134], 0x4a62
call fcn.00452f40
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x114]
push str.21H1
mov dword [ebp - 0x118], 0x4a63
call fcn.00452f40
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xf8]
push str.21H2
mov dword [ebp - 0xfc], 0x4a64
call fcn.00452f40
mov byte [ebp - 4], 0xe
xor eax, eax
push dword [ebp - 0x374]
mov dword [0x681220], eax
mov ecx, 0x681220
mov dword [0x681224], eax
mov dword [0x681228], eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0045ca0d
push 0x45bfb7
push 0xd
push 0x1c
pop eax
push eax
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 1
push eax
call fcn.00487755
push 0x595345
call fcn.00487abb
mov byte [ebp - 4], 0
mov dword [esp], 0x68121c
call fcn.004875e7
pop ecx
jmp 0x45b431
push 0x68122c
call fcn.00487631
cmp dword [0x68122c], 0xffffffff
pop ecx
jne 0x45b442
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x44]
push str.21H2
mov dword [ebp - 0x48], 0x55f0
call fcn.00452f40
xor eax, eax
mov byte [ebp - 4], 0x10
push dword [ebp - 0x374]
mov dword [0x681230], eax
mov ecx, 0x681230
mov dword [0x681234], eax
mov dword [0x681238], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0045ca0d
push 0x45bfb7
push 1
push 0x1c
pop eax
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xf
push eax
call fcn.00487755
push 0x59533b
call fcn.00487abb
mov byte [ebp - 4], 0
mov dword [esp], 0x68122c
call fcn.004875e7
pop ecx
jmp 0x45b442
mov esi, 0x68123c
push esi
call fcn.00487631
cmp dword [0x68123c], 0xffffffff
pop ecx
jne 0x45b453
mov dword [ebp - 4], 0x11
lea ecx, [ebp - 0x2f8]
push str.1607
mov dword [ebp - 0x2fc], 0x3839
call fcn.00452f40
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2dc]
push str.1809
mov dword [ebp - 0x2e0], 0x4563
call fcn.00452f40
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x2c0]
push str.1903
mov dword [ebp - 0x2c4], 0x47ba
call fcn.00452f40
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2a4]
push str.1909
mov dword [ebp - 0x2a8], 0x47bb
call fcn.00452f40
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x288]
push str.2004
mov dword [ebp - 0x28c], 0x4a61
call fcn.00452f40
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x26c]
push str.20H2
mov dword [ebp - 0x270], 0x4a62
call fcn.00452f40
xor eax, eax
mov byte [ebp - 4], 0x17
push dword [ebp - 0x374]
mov dword [0x681240], eax
mov ecx, 0x681240
mov dword [0x681244], eax
mov dword [0x681248], eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.0045ca0d
push 0x45bfb7
push 6
push 0x1c
pop eax
push eax
lea eax, [ebp - 0x2fc]
mov byte [ebp - 4], 0x11
push eax
call fcn.00487755
push 0x595331
call fcn.00487abb
pop ecx
push esi
mov byte [ebp - 4], 0
call fcn.004875e7
pop ecx
jmp 0x45b453