Function at 0x5a77d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72c73d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xac], 0x9c
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x5a78d4
lea ecx, [ebp - 0x105]
mov dword [ebp - 0x104], ecx
push 0
push 0
lea ecx, [ebp - 0xf8]
call fcn.0040b0a0
mov dword [ebp - 0x1ac], str.Cannot_get_OS_version_information
mov edx, dword [ebp - 0x1ac]
add edx, 1
mov dword [ebp - 0x1b0], edx
mov eax, dword [ebp - 0x1ac]
mov cl, byte [eax]
mov byte [ebp - 0x1b1], cl
add dword [ebp - 0x1ac], 1
cmp byte [ebp - 0x1b1], 0
jne 0x5a784b
mov edx, dword [ebp - 0x1ac]
sub edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x1b8], edx
mov eax, dword [ebp - 0x1b8]
push eax
push str.Cannot_get_OS_version_information
lea ecx, [ebp - 0xf8]
call fcn.0040a9d0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0xf8]
push ecx
lea ecx, [ebp - 0xdc]
call fcn.00593a10
push 0x7dab3c
lea edx, [ebp - 0xdc]
push edx
call fcn.00563aac
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xf8]
call fcn.0040b0a0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 5
je 0x5a7d3f
cmp dword [ebp - 0x1bc], 6
je 0x5a79d1
cmp dword [ebp - 0x1bc], 0xa
je 0x5a7908
jmp 0x5a7fa3
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x1c0], ecx
cmp dword [ebp - 0x1c0], 0
je 0x5a7922
jmp 0x5a79d1
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x5a7937
mov dword [ebp - 0x118], str.Windows_10
jmp 0x5a7941
mov dword [ebp - 0x118], str.Windows_Server_2016
lea eax, [ebp - 0x111]
mov dword [ebp - 0x110], eax
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b0a0
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x1c4], ecx
mov edx, dword [ebp - 0x1c4]
add edx, 1
mov dword [ebp - 0x1c8], edx
mov eax, dword [ebp - 0x1c4]
mov cl, byte [eax]
mov byte [ebp - 0x1c9], cl
add dword [ebp - 0x1c4], 1
cmp byte [ebp - 0x1c9], 0
jne 0x5a7974
mov edx, dword [ebp - 0x1c4]
sub edx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1d0], edx
mov eax, dword [ebp - 0x1d0]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040a9d0
mov edx, dword [ebp - 0xfc]
or edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp + 8]
jmp 0x5a802a
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 3
ja case.default.0x5a79f0
mov ecx, dword [ebp - 0x1d4]
jmp dword [ecx*4 + 0x5a8038]
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x5a7a0c
mov dword [ebp - 0x128], str.Windows_Vista
jmp 0x5a7a16
mov dword [ebp - 0x128], str.Windows_Server_2008
lea eax, [ebp - 0x121]
mov dword [ebp - 0x120], eax
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b0a0
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x1d8], ecx
mov edx, dword [ebp - 0x1d8]
add edx, 1
mov dword [ebp - 0x1dc], edx
mov eax, dword [ebp - 0x1d8]
mov cl, byte [eax]
mov byte [ebp - 0x1dd], cl
add dword [ebp - 0x1d8], 1
cmp byte [ebp - 0x1dd], 0
jne 0x5a7a49
mov edx, dword [ebp - 0x1d8]
sub edx, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp - 0x1e4]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040a9d0
mov edx, dword [ebp - 0xfc]
or edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp + 8]
jmp 0x5a802a
movzx eax, byte [ebp - 0x12]
cmp eax, 1
jne 0x5a7abb
mov dword [ebp - 0x138], str.Windows_7
jmp 0x5a7ac5
mov dword [ebp - 0x138], str.Windows_Server_2008_R2
lea ecx, [ebp - 0x131]
mov dword [ebp - 0x130], ecx
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b0a0
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x1e8], edx
mov eax, dword [ebp - 0x1e8]
add eax, 1
mov dword [ebp - 0x1ec], eax
mov ecx, dword [ebp - 0x1e8]
mov dl, byte [ecx]
mov byte [ebp - 0x1ed], dl
add dword [ebp - 0x1e8], 1
cmp byte [ebp - 0x1ed], 0
jne 0x5a7af8
mov eax, dword [ebp - 0x1e8]
sub eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f4], eax
mov ecx, dword [ebp - 0x1f4]
push ecx
mov edx, dword [ebp - 0x138]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040a9d0
mov eax, dword [ebp - 0xfc]
or eax, 1
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 8]
jmp 0x5a802a
movzx ecx, byte [ebp - 0x12]
cmp ecx, 1
jne 0x5a7b6a
mov dword [ebp - 0x148], str.Windows_8
jmp 0x5a7b74
mov dword [ebp - 0x148], str.Windows_Server_2012
lea edx, [ebp - 0x141]
mov dword [ebp - 0x140], edx
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b0a0
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f8]
add ecx, 1
mov dword [ebp - 0x1fc], ecx
mov edx, dword [ebp - 0x1f8]
mov al, byte [edx]
mov byte [ebp - 0x1fd], al
add dword [ebp - 0x1f8], 1
cmp byte [ebp - 0x1fd], 0
jne 0x5a7ba7
mov ecx, dword [ebp - 0x1f8]
sub ecx, dword [ebp - 0x1fc]
mov dword [ebp - 0x204], ecx
mov edx, dword [ebp - 0x204]
push edx
mov eax, dword [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040a9d0
mov ecx, dword [ebp - 0xfc]
or ecx, 1
mov dword [ebp - 0xfc], ecx
mov eax, dword [ebp + 8]
jmp 0x5a802a
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x5a7c19
mov dword [ebp - 0x158], str.Windows_8.1
jmp 0x5a7c23
mov dword [ebp - 0x158], str.Windows_Server_2012_R2
lea eax, [ebp - 0x151]
mov dword [ebp - 0x150], eax
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b0a0
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x208], ecx
mov edx, dword [ebp - 0x208]
add edx, 1
mov dword [ebp - 0x20c], edx
mov eax, dword [ebp - 0x208]
mov cl, byte [eax]
mov byte [ebp - 0x20d], cl
add dword [ebp - 0x208], 1
cmp byte [ebp - 0x20d], 0
jne 0x5a7c56
mov edx, dword [ebp - 0x208]
sub edx, dword [ebp - 0x20c]
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040a9d0
mov edx, dword [ebp - 0xfc]
or edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp + 8]
jmp 0x5a802a
lea eax, [ebp - 0x161]
mov dword [ebp - 0x160], eax
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b0a0
mov dword [ebp - 0x218], 0x74dbf4
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x218]
mov al, byte [edx]
mov byte [ebp - 0x21d], al
add dword [ebp - 0x218], 1
cmp byte [ebp - 0x21d], 0
jne 0x5a7ce4
mov ecx, dword [ebp - 0x218]
sub ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x224]
push edx
push 0x74dbf4
mov ecx, dword [ebp + 8]
call fcn.0040a9d0
mov eax, dword [ebp - 0xfc]
or eax, 1
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 8]
jmp 0x5a802a
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x228], ecx
cmp dword [ebp - 0x228], 0
je 0x5a7d73
cmp dword [ebp - 0x228], 1
je 0x5a7dff
cmp dword [ebp - 0x228], 2
je 0x5a7e8b
jmp 0x5a7f17
lea edx, [ebp - 0x16d]
mov dword [ebp - 0x16c], edx
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b0a0
mov dword [ebp - 0x22c], str.Windows_2000
mov eax, dword [ebp - 0x22c]
add eax, 1
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x22c]
mov dl, byte [ecx]
mov byte [ebp - 0x231], dl
add dword [ebp - 0x22c], 1
cmp byte [ebp - 0x231], 0
jne 0x5a7da4
mov eax, dword [ebp - 0x22c]
sub eax, dword [ebp - 0x230]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
push ecx
push str.Windows_2000
mov ecx, dword [ebp + 8]
call fcn.0040a9d0
mov edx, dword [ebp - 0xfc]
or edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp + 8]
jmp 0x5a802a
lea eax, [ebp - 0x179]
mov dword [ebp - 0x178], eax
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b0a0
mov dword [ebp - 0x23c], str.Windows_XP
mov ecx, dword [ebp - 0x23c]
add ecx, 1
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x23c]
mov al, byte [edx]
mov byte [ebp - 0x241], al
add dword [ebp - 0x23c], 1
cmp byte [ebp - 0x241], 0
jne 0x5a7e30
mov ecx, dword [ebp - 0x23c]
sub ecx, dword [ebp - 0x240]
mov dword [ebp - 0x248], ecx
mov edx, dword [ebp - 0x248]
push edx
push str.Windows_XP
mov ecx, dword [ebp + 8]
call fcn.0040a9d0
mov eax, dword [ebp - 0xfc]
or eax, 1
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 8]
jmp 0x5a802a
lea ecx, [ebp - 0x185]
mov dword [ebp - 0x184], ecx
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b0a0
mov dword [ebp - 0x24c], str.Windows_Server_2003_Windows_Server_2003_R2
mov edx, dword [ebp - 0x24c]
add edx, 1
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x24c]
mov cl, byte [eax]
mov byte [ebp - 0x251], cl
add dword [ebp - 0x24c], 1
cmp byte [ebp - 0x251], 0
jne 0x5a7ebc
mov edx, dword [ebp - 0x24c]
sub edx, dword [ebp - 0x250]
mov dword [ebp - 0x258], edx
mov eax, dword [ebp - 0x258]
push eax
push str.Windows_Server_2003_Windows_Server_2003_R2
mov ecx, dword [ebp + 8]
call fcn.0040a9d0
mov ecx, dword [ebp - 0xfc]
or ecx, 1
mov dword [ebp - 0xfc], ecx
mov eax, dword [ebp + 8]
jmp 0x5a802a
lea edx, [ebp - 0x191]
mov dword [ebp - 0x190], edx
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b0a0
mov dword [ebp - 0x25c], 0x74dbf4
mov eax, dword [ebp - 0x25c]
add eax, 1
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x25c]
mov dl, byte [ecx]
mov byte [ebp - 0x261], dl
add dword [ebp - 0x25c], 1
cmp byte [ebp - 0x261], 0
jne 0x5a7f48
mov eax, dword [ebp - 0x25c]
sub eax, dword [ebp - 0x260]
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
push ecx
push 0x74dbf4
mov ecx, dword [ebp + 8]
call fcn.0040a9d0
mov edx, dword [ebp - 0xfc]
or edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp + 8]
jmp 0x5a802a
lea eax, [ebp - 0x19d]
mov dword [ebp - 0x19c], eax
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b0a0
mov dword [ebp - 0x26c], 0x74dbf4
mov ecx, dword [ebp - 0x26c]
add ecx, 1
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x26c]
mov al, byte [edx]
mov byte [ebp - 0x271], al
add dword [ebp - 0x26c], 1
cmp byte [ebp - 0x271], 0
jne 0x5a7fd4
mov ecx, dword [ebp - 0x26c]
sub ecx, dword [ebp - 0x270]
mov dword [ebp - 0x278], ecx
mov edx, dword [ebp - 0x278]
push edx
push 0x74dbf4
mov ecx, dword [ebp + 8]
call fcn.0040a9d0
mov eax, dword [ebp - 0xfc]
or eax, 1
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret