Function at 0x5dcd20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x766dfd
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 0x5dce24
lea ecx, [ebp - 0x105]
mov dword [ebp - 0x104], ecx
push 0
push 0
lea ecx, [ebp - 0xf8]
call fcn.0041c8f0
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 0x5dcd9b
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.0041c1a0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0xf8]
push ecx
lea ecx, [ebp - 0xdc]
call fcn.005c9b20
push 0x827c60
lea edx, [ebp - 0xdc]
push edx
call fcn.0048d568
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xf8]
call fcn.0041c8f0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 5
je 0x5dd28f
cmp dword [ebp - 0x1bc], 6
je 0x5dcf21
cmp dword [ebp - 0x1bc], 0xa
je 0x5dce58
jmp 0x5dd4f3
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x1c0], ecx
cmp dword [ebp - 0x1c0], 0
je 0x5dce72
jmp 0x5dcf21
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x5dce87
mov dword [ebp - 0x118], str.Windows_10
jmp 0x5dce91
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.0041c8f0
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 0x5dcec4
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.0041c1a0
mov edx, dword [ebp - 0xfc]
or edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp + 8]
jmp 0x5dd57a
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 3
ja case.default.0x5dcf40
mov ecx, dword [ebp - 0x1d4]
jmp dword [ecx*4 + 0x5dd588]
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x5dcf5c
mov dword [ebp - 0x128], str.Windows_Vista
jmp 0x5dcf66
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.0041c8f0
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 0x5dcf99
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.0041c1a0
mov edx, dword [ebp - 0xfc]
or edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp + 8]
jmp 0x5dd57a
movzx eax, byte [ebp - 0x12]
cmp eax, 1
jne 0x5dd00b
mov dword [ebp - 0x138], str.Windows_7
jmp 0x5dd015
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.0041c8f0
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 0x5dd048
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.0041c1a0
mov eax, dword [ebp - 0xfc]
or eax, 1
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 8]
jmp 0x5dd57a
movzx ecx, byte [ebp - 0x12]
cmp ecx, 1
jne 0x5dd0ba
mov dword [ebp - 0x148], str.Windows_8
jmp 0x5dd0c4
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.0041c8f0
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 0x5dd0f7
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.0041c1a0
mov ecx, dword [ebp - 0xfc]
or ecx, 1
mov dword [ebp - 0xfc], ecx
mov eax, dword [ebp + 8]
jmp 0x5dd57a
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x5dd169
mov dword [ebp - 0x158], str.Windows_8.1
jmp 0x5dd173
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.0041c8f0
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 0x5dd1a6
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.0041c1a0
mov edx, dword [ebp - 0xfc]
or edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp + 8]
jmp 0x5dd57a
lea eax, [ebp - 0x161]
mov dword [ebp - 0x160], eax
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0041c8f0
mov dword [ebp - 0x218], str.Unknown
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 0x5dd234
mov ecx, dword [ebp - 0x218]
sub ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x224]
push edx
push str.Unknown
mov ecx, dword [ebp + 8]
call fcn.0041c1a0
mov eax, dword [ebp - 0xfc]
or eax, 1
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 8]
jmp 0x5dd57a
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x228], ecx
cmp dword [ebp - 0x228], 0
je 0x5dd2c3
cmp dword [ebp - 0x228], 1
je 0x5dd34f
cmp dword [ebp - 0x228], 2
je 0x5dd3db
jmp 0x5dd467
lea edx, [ebp - 0x16d]
mov dword [ebp - 0x16c], edx
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0041c8f0
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 0x5dd2f4
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.0041c1a0
mov edx, dword [ebp - 0xfc]
or edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp + 8]
jmp 0x5dd57a
lea eax, [ebp - 0x179]
mov dword [ebp - 0x178], eax
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0041c8f0
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 0x5dd380
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.0041c1a0
mov eax, dword [ebp - 0xfc]
or eax, 1
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 8]
jmp 0x5dd57a
lea ecx, [ebp - 0x185]
mov dword [ebp - 0x184], ecx
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0041c8f0
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 0x5dd40c
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.0041c1a0
mov ecx, dword [ebp - 0xfc]
or ecx, 1
mov dword [ebp - 0xfc], ecx
mov eax, dword [ebp + 8]
jmp 0x5dd57a
lea edx, [ebp - 0x191]
mov dword [ebp - 0x190], edx
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0041c8f0
mov dword [ebp - 0x25c], str.Unknown
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 0x5dd498
mov eax, dword [ebp - 0x25c]
sub eax, dword [ebp - 0x260]
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
push ecx
push str.Unknown
mov ecx, dword [ebp + 8]
call fcn.0041c1a0
mov edx, dword [ebp - 0xfc]
or edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp + 8]
jmp 0x5dd57a
lea eax, [ebp - 0x19d]
mov dword [ebp - 0x19c], eax
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0041c8f0
mov dword [ebp - 0x26c], str.Unknown
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 0x5dd524
mov ecx, dword [ebp - 0x26c]
sub ecx, dword [ebp - 0x270]
mov dword [ebp - 0x278], ecx
mov edx, dword [ebp - 0x278]
push edx
push str.Unknown
mov ecx, dword [ebp + 8]
call fcn.0041c1a0
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