Function at 0x5593a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dfad
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x5f4e20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x170], 0
call fcn.005587a0
mov dword [ebp - 4], 1
push 0x11c
lea eax, [ebp - 0x12c]
push 0
push eax
mov dword [ebp - 0x160], 0
call fcn.0053af20
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], 0x11c
call esi
test eax, eax
setne bh
mov byte [ebp - 0x131], bh
test bh, bh
jne 0x5594ad
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], 0x114
call esi
test eax, eax
jne 0x5594ad
push str._PSMisc::GetOSString_
lea eax, [ebp - 0x130]
push eax
call fcn.00559120
mov byte [ebp - 4], 2
push dword [eax]
push 0x10000
call fcn.0055b080
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x130]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55949a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x160]
push eax
mov ecx, edi
call fcn.005586e0
jmp 0x559e2c
movzx eax, word [ebp - 0x120]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x124]
push 0
push 0x583ea8
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x144], eax
call fcn.004015a0
lea ecx, [ebp - 0x150]
push 0
push 0x583ea8
call fcn.004015a0
mov eax, dword [ebp - 0x11c]
mov byte [ebp - 0x154], 0
mov esi, 0xffffffff
dec eax
je 0x559aae
dec eax
je 0x559521
mov dword [ebp - 0x160], 0
jmp 0x559c45
mov edx, dword [ebp - 0x128]
cmp edx, 4
ja 0x559536
mov eax, 4
jmp 0x55984a
cmp edx, 5
jne 0x5595d9
cmp dword [ebp - 0x124], 0
jne 0x559555
mov eax, edx
mov dword [ebp - 0x160], eax
jmp 0x559859
cmp dword [ebp - 0x124], 1
jne 0x55956e
mov eax, 6
mov dword [ebp - 0x160], eax
jmp 0x559859
cmp dword [ebp - 0x124], 2
jne 0x559848
mov ecx, dword [ebp - 0x14]
mov bl, byte [ebp - 0x12]
test ecx, 0x200
jne 0x5595c9
cmp bl, 1
je 0x5595c9
push 0x59
mov dword [ebp - 0x160], 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x55983a
push 0x5bb344
lea ecx, [ebp - 0x14c]
call fcn.00401110
mov eax, dword [ebp - 0x160]
mov edx, dword [ebp - 0x128]
jmp 0x559850
mov eax, 6
mov dword [ebp - 0x160], eax
jmp 0x55985f
cmp edx, 6
jne 0x559848
mov cl, byte [ebp - 0x12]
xor eax, eax
cmp cl, 1
setne al
add eax, 9
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x124]
test eax, eax
jne 0x55960b
cmp cl, 1
setne al
add eax, 9
jmp 0x55963f
cmp eax, 1
jne 0x55961d
xor eax, eax
cmp cl, 1
setne al
add eax, 0xb
jmp 0x55963f
cmp eax, 2
jne 0x55962f
xor eax, eax
cmp cl, 1
setne al
add eax, 0xd
jmp 0x55963f
cmp eax, 3
jne 0x559645
xor eax, eax
cmp cl, 1
setne al
add eax, 0xf
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x158], 0x11
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov byte [ebp - 4], 5
push 0
push 0x58a3a4
lea ecx, [ebp - 0x168]
call fcn.005624b0
test al, al
je 0x5597ee
lea eax, [ebp - 0x16c]
push eax
push str.GetProductInfo
lea ecx, [ebp - 0x168]
call fcn.00562470
test al, al
je 0x5597ee
lea eax, [ebp - 0x130]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call dword [ebp - 0x16c]
test eax, eax
je 0x5597ee
mov eax, dword [ebp - 0x130]
cmp eax, 0x29
ja case.0x5596eb.0
movzx eax, byte [eax + 0x559eb8]
jmp dword [eax*4 + 0x559e68]
mov dword [ebp - 0x158], 0
jmp 0x55982b
mov dword [ebp - 0x158], 1
jmp 0x55982b
mov dword [ebp - 0x158], 2
jmp 0x55982b
mov dword [ebp - 0x158], 3
jmp 0x55982b
mov dword [ebp - 0x158], 4
jmp 0x55982b
mov dword [ebp - 0x158], 5
jmp 0x55982b
mov dword [ebp - 0x158], 6
jmp 0x55982b
mov dword [ebp - 0x158], 7
jmp 0x55982b
mov dword [ebp - 0x158], 8
jmp 0x55982b
mov dword [ebp - 0x158], 9
jmp 0x55982b
mov dword [ebp - 0x158], 0x12
jmp 0x55982b
mov dword [ebp - 0x158], 0xa
jmp 0x55982b
mov dword [ebp - 0x158], 0xb
jmp 0x55982b
mov dword [ebp - 0x158], 0xc
jmp 0x55982b
mov dword [ebp - 0x158], 0xd
jmp 0x55982b
mov dword [ebp - 0x158], 0xe
jmp 0x55982b
mov dword [ebp - 0x158], 0xf
jmp 0x55982b
mov dword [ebp - 0x158], 0x10
jmp 0x55982b
push str._PSMisc::GetPlatform_
lea eax, [ebp - 0x174]
push eax
call fcn.00559120
mov byte [ebp - 4], 6
push dword [eax]
push 0x10000
call fcn.0055b080
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x174]
call fcn.004010f0
mov dword [ebp - 0x158], 0x11
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.00562420
mov eax, dword [ebp - 0x160]
mov edx, dword [ebp - 0x128]
jmp 0x559850
xor eax, eax
mov dword [ebp - 0x160], eax
cmp edx, 5
jb 0x5599d1
mov bl, byte [ebp - 0x12]
mov ecx, dword [ebp - 0x14]
test bh, bh
je 0x5599d1
mov bh, 1
cmp bl, bh
jne 0x559895
cmp eax, 9
jne 0x55987c
push str.Client
jmp 0x559968
test ecx, 0x200
mov eax, str.Home
mov ecx, str.Professional
cmove eax, ecx
push eax
jmp 0x559968
cmp bl, 3
je 0x5598a3
cmp bl, 2
jne 0x559973
mov byte [ebp - 0x154], 1
cmp eax, 9
jne 0x5598b9
push str.Server
jmp 0x559968
cmp eax, 7
je 0x55993d
cmp eax, 0xa
je 0x55993d
cmp eax, 0xc
je 0x55993d
test cl, 2
je 0x5598f5
cmp edx, 5
jne 0x5598e0
cmp dword [ebp - 0x124], 0
mov eax, str.Advanced_Server
je 0x5598e5
mov eax, str.Enterprise_Server
push eax
lea ecx, [ebp - 0x150]
call fcn.00401110
xor bh, bh
jmp 0x559973
test cl, cl
jns 0x55990d
push str.DataCenter_Server
lea ecx, [ebp - 0x150]
call fcn.00401110
xor bh, bh
jmp 0x559973
test ecx, 0x400
je 0x559929
push str.Web_Server
lea ecx, [ebp - 0x150]
call fcn.00401110
xor bh, bh
jmp 0x559973
push str.Server
lea ecx, [ebp - 0x150]
call fcn.00401110
xor bh, bh
jmp 0x559973
test cl, 2
je 0x559949
push str.Enterprise
jmp 0x559968
test cl, cl
jns 0x559954
push str.Datacenter
jmp 0x559968
test ecx, 0x400
je 0x559963
push 0x5bb404
jmp 0x559968
push str.Standard
lea ecx, [ebp - 0x150]
call fcn.00401110
call fcn.0055a500
test al, al
je 0x55998c
push str._x64
lea ecx, [ebp - 0x150]
call fcn.00414b0e
test bh, bh
je 0x5599a0
push str._Edition
lea ecx, [ebp - 0x150]
call fcn.00414b0e
mov bh, byte [ebp - 0x131]
lea ecx, [ebp - 0x118]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5599b0
sub ecx, edx
sar ecx, 1
je 0x559c45
lea eax, [ebp - 0x118]
push eax
jmp 0x559c3a
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x130]
call fcn.00401b20
mov byte [ebp - 4], 9
push 0x20019
push reloc.OLEAUT32.dll_SysReAllocString
push str.SystemCurrentControlSetControlProductOptions
lea ecx, [ebp - 0x168]
call fcn.0055c000
test al, al
je 0x559a77
lea eax, [ebp - 0x130]
push eax
push str.ProductType
lea ecx, [ebp - 0x168]
call fcn.0055be90
test al, al
je 0x559a77
push str.WinNT
lea ecx, [ebp - 0x130]
call fcn.0040d760
test eax, eax
jne 0x559a4c
push str.Workstation
jmp 0x559a6c
push str.ServerNT
lea ecx, [ebp - 0x130]
call fcn.0040d760
test eax, eax
jne 0x559a77
mov byte [ebp - 0x154], 1
push str.Server
lea ecx, [ebp - 0x150]
call fcn.00401110
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x130]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x559a9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.0055bda0
jmp 0x5599a6
cmp dword [ebp - 0x148], 4
jne 0x559c45
cmp dword [ebp - 0x144], 0
jne 0x559af7
cmp dword [ebp - 0x140], 0x3b6
jne 0x559af7
push 0x583ea8
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x160], 1
call fcn.00401110
cmp dword [ebp - 0x148], 4
jne 0x559c45
mov eax, dword [ebp - 0x140]
add eax, 0xfffffc49
cmp eax, 0x81
ja 0x559b30
push 0x5bb570
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x160], 1
call fcn.00401110
cmp dword [ebp - 0x148], 4
jne 0x559c45
cmp dword [ebp - 0x144], 0xa
jae 0x559b73
cmp dword [ebp - 0x140], 0x438
jbe 0x559b6c
push str.OSR2
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x160], 1
call fcn.00401110
cmp dword [ebp - 0x148], 4
jne 0x559c45
cmp dword [ebp - 0x144], 0xa
jne 0x559c22
cmp dword [ebp - 0x140], 0x7ce
jne 0x559bb5
push 0x583ea8
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x160], 2
call fcn.00401110
cmp dword [ebp - 0x148], 4
jne 0x559c45
cmp dword [ebp - 0x144], 0xa
jne 0x559c22
mov eax, dword [ebp - 0x140]
add eax, 0xfffff831
cmp eax, 0xb7
ja 0x559bf3
push 0x5bb570
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x160], 2
call fcn.00401110
cmp dword [ebp - 0x148], 4
jne 0x559c45
cmp dword [ebp - 0x144], 0xa
jne 0x559c22
cmp dword [ebp - 0x140], 0x887
jb 0x559c45
push 0x5bb584
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x160], 2
call fcn.00401110
cmp dword [ebp - 0x148], 4
jne 0x559c45
cmp dword [ebp - 0x144], 0x5a
jne 0x559c45
mov dword [ebp - 0x160], 3
push 0x583ea8
lea ecx, [ebp - 0x14c]
call fcn.00401110
push dword [ebp - 0x160]
call fcn.00559340
mov dword [ebp - 0x15c], eax
test bh, bh
je 0x559d48
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x13c], eax
movzx eax, word [ebp - 0x16]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov byte [ebp - 4], 0xc
call fcn.004157e7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x559ca6
push 0x80004005
call fcn.00401220
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 0xe
push 0x20019
push reloc.OLEAUT32.dll_SysReAllocString
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea ecx, [ebp - 0x168]
call fcn.0055c000
test al, al
je 0x559d18
lea eax, [ebp - 0x130]
push eax
push str.SubVersionNumber
lea ecx, [ebp - 0x168]
call fcn.0055be90
test al, al
je 0x559d18
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x559d18
jns 0x559d0c
push 0x80070057
call fcn.00401220
movzx eax, word [eax]
sub eax, 0x60
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x130]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x559d39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.0055bda0
cmp dword [ebp - 0x160], 4
jne 0x559e1e
lea ecx, [ebp - 0x118]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x559d60
sub ecx, edx
sar ecx, 1
je 0x559dbd
xor esi, esi
cmp word [ebp - 0x118], si
je 0x559da3
lea eax, [ebp - 0x118]
movzx eax, word [eax]
push eax
call fcn.0053b0ea
add esp, 4
test eax, eax
jne 0x559da3
inc esi
lea eax, [ebp - 0x118]
cmp word [eax + esi*2], 0
lea eax, [eax + esi*2]
jne 0x559d82
lea eax, [ebp - 0x118]
lea eax, [eax + esi*2]
push eax
call fcn.0053b05e
add esp, 4
mov dword [ebp - 0x13c], eax
jmp 0x559dc3
mov eax, dword [ebp - 0x13c]
cmp eax, 6
jne 0x559e1e
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov byte [ebp - 4], 0x11
push 0x20019
push reloc.OLEAUT32.dll_SysReAllocString
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
lea ecx, [ebp - 0x168]
call fcn.0055c000
mov ecx, dword [ebp - 0x138]
mov edx, 1
test al, al
cmovne ecx, edx
mov dword [ebp - 0x138], ecx
mov byte [ebp - 4], dl
lea ecx, [ebp - 0x168]
call fcn.0055bda0
lea eax, [ebp - 0x160]
push eax
mov ecx, edi
call fcn.005586e0
mov dword [ebp - 0x170], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x160]
call fcn.0040d550
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00539659
mov esp, ebp
pop ebp
ret 4