Function at 0x53faf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe4c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x540592
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x419c38]
call fcn.00426698
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x154]
xor ecx, ecx
mov edx, 0x11c
call fcn.00404a64
mov dword [ebp - 0x154], 0x11c
lea eax, [ebp - 0x154]
push eax
call sub.kernel32.dll_GetVersionExW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x53fb9e
lea eax, [ebp - 0x154]
xor ecx, ecx
mov edx, 0x11c
call fcn.00404a64
mov dword [ebp - 0x154], 0x114
lea eax, [ebp - 0x154]
push eax
call sub.kernel32.dll_GetVersionExW
mov byte [ebp - 0x29], 0
lea eax, [ebp - 0xc]
call fcn.00406b08
lea eax, [ebp - 0x10]
call fcn.00541260
test al, al
je 0x53fbdb
push 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x15c], eax
mov byte [ebp - 0x158], 0x11
lea ecx, [ebp - 0x15c]
mov edx, 0x5405ac
mov eax, dword [ebp - 0x1c]
call fcn.00426464
cmp dword [ebp - 0x150], 6
jne 0x53fc20
cmp dword [ebp - 0x14c], 2
jne 0x53fc20
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.00541144
test al, al
je 0x53fc20
cmp dword [ebp - 0x30], 6
jb 0x53fc20
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x144]
sub eax, 1
jb 0x540506
je 0x540472
dec eax
jne 0x54051a
mov byte [0x5c5b04], 1
mov eax, dword [ebp - 0x150]
cmp eax, 6
jg 0x53fc60
je 0x53fd1f
sub eax, 5
jb 0x53fc78
je 0x53fc91
jmp 0x53ff08
sub eax, 0xa
je 0x53fe31
dec eax
sub eax, 0x5a
jb 0x53feea
jmp 0x53ff08
mov edx, 0x5405d0
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
mov byte [0x5c5b05], 1
jmp 0x53ff20
mov eax, dword [ebp - 0x14c]
sub eax, 1
jb 0x53fca3
je 0x53fcbc
dec eax
je 0x53fcd5
jmp 0x53fd0d
mov byte [0x5c5b08], 1
mov edx, 0x5405f4
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x53ff20
mov byte [0x5c5b06], 1
mov edx, 0x54061c
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x53ff20
cmp byte [ebp - 0x3a], 1
jne 0x53fcf4
mov byte [0x5c5b07], 1
mov edx, 0x540640
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x53ff20
mov byte [0x5c5b09], 1
mov edx, 0x540684
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x53ff20
mov edx, 0x5406b8
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x53ff20
mov eax, dword [ebp - 0x14c]
cmp eax, 2
jg 0x53fd38
je 0x53fda9
sub eax, 1
jb 0x53fd50
je 0x53fd7e
jmp 0x53fe03
sub eax, 3
je 0x53fdd4
dec eax
sub eax, 0x61
jb 0x53fdff
jmp 0x53fe03
cmp byte [ebp - 0x3a], 1
jne 0x53fd65
mov edx, 0x5406d8
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x53fd72
mov edx, 0x540704
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
mov byte [0x5c5b0a], 1
jmp 0x53fe03
cmp byte [ebp - 0x3a], 1
jne 0x53fd93
mov edx, 0x54073c
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x53fda0
mov edx, 0x540760
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
mov byte [0x5c5b0b], 1
jmp 0x53fe03
cmp byte [ebp - 0x3a], 1
jne 0x53fdbe
mov edx, 0x54079c
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x53fdcb
mov edx, 0x5407c0
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
mov byte [0x5c5b0c], 1
jmp 0x53fe03
cmp byte [ebp - 0x3a], 1
jne 0x53fde9
mov edx, 0x5407f8
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x53fdf6
mov edx, 0x540820
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
mov byte [0x5c5b0c], 1
jmp 0x53fe03
mov byte [ebp - 0x29], 1
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x150]
call fcn.0053e670
cmp dword [ebp - 8], 0
je 0x53ff20
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x53ff20
mov eax, dword [ebp - 0x14c]
sub eax, 1
jae 0x53ff20
mov edx, 0x54085c
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
mov byte [0x5c5b0d], 1
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x150]
call fcn.0053e670
cmp dword [ebp - 8], 0
je 0x53fe79
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
mov dl, 1
mov eax, dword [0x455964]
call fcn.00456aa0
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x53fece
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x18]
call fcn.00456b88
mov edx, 0x540880
mov eax, dword [ebp - 0x18]
call fcn.00456e04
test al, al
je 0x53fec4
lea ecx, [ebp - 0xc]
mov edx, 0x5408e8
mov eax, dword [ebp - 0x18]
call fcn.0045764c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53fee0
mov eax, dword [ebp - 0x18]
call fcn.00405080
jmp 0x53ff20
mov edx, 0x540908
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
mov edx, dword [ebp - 0x150]
call fcn.00426090
mov byte [ebp - 0x29], 1
jmp 0x53ff20
mov edx, 0x540908
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
mov edx, dword [ebp - 0x150]
call fcn.00426090
cmp byte [0x5c5b08], 0
jne 0x53ff6c
cmp byte [0x5c5b06], 0
jne 0x53ff6c
cmp byte [0x5c5b07], 0
jne 0x53ff6c
cmp byte [0x5c5b09], 0
jne 0x53ff6c
cmp byte [0x5c5b0a], 0
jne 0x53ff6c
cmp byte [0x5c5b0b], 0
jne 0x53ff6c
cmp byte [0x5c5b0c], 0
jne 0x53ff6c
cmp byte [0x5c5b0d], 0
jne 0x53ff6c
xor eax, eax
jmp 0x53ff6e
mov al, 1
mov byte [0x5c5b0f], al
cmp byte [0x5c5b06], 0
jne 0x53ffb6
cmp byte [0x5c5b07], 0
jne 0x53ffb6
cmp byte [0x5c5b09], 0
jne 0x53ffb6
cmp byte [0x5c5b0a], 0
jne 0x53ffb6
cmp byte [0x5c5b0b], 0
jne 0x53ffb6
cmp byte [0x5c5b0c], 0
jne 0x53ffb6
cmp byte [0x5c5b0d], 0
jne 0x53ffb6
xor eax, eax
jmp 0x53ffb8
mov al, 1
mov byte [0x5c5b0e], al
cmp byte [0x5c5b09], 0
jne 0x53ffee
cmp byte [0x5c5b0a], 0
jne 0x53ffee
cmp byte [0x5c5b0b], 0
jne 0x53ffee
cmp byte [0x5c5b0c], 0
jne 0x53ffee
cmp byte [0x5c5b0d], 0
jne 0x53ffee
xor eax, eax
jmp 0x53fff0
mov al, 1
mov byte [0x5c5b10], al
cmp byte [0x5c5b0a], 0
jne 0x540023
cmp byte [0x5c5b0b], 0
jne 0x540023
cmp byte [0x5c5b0c], 0
jne 0x540023
cmp byte [0x5c5b0d], 0
jne 0x540023
cmp byte [ebp - 0x29], 0
jne 0x540023
xor eax, eax
jmp 0x540025
mov al, 1
mov byte [0x5c5b11], al
cmp byte [0x5c5b0b], 0
jne 0x54004f
cmp byte [0x5c5b0c], 0
jne 0x54004f
cmp byte [0x5c5b0d], 0
jne 0x54004f
cmp byte [ebp - 0x29], 0
jne 0x54004f
xor eax, eax
jmp 0x540051
mov al, 1
mov byte [0x5c5b12], al
cmp byte [0x5c5b0c], 0
jne 0x540072
cmp byte [0x5c5b0d], 0
jne 0x540072
cmp byte [ebp - 0x29], 0
jne 0x540072
xor eax, eax
jmp 0x540074
mov al, 1
mov byte [0x5c5b13], al
movzx eax, byte [0x5c5b0d]
or al, byte [ebp - 0x29]
mov byte [0x5c5b14], al
cmp byte [ebp - 0x11], 0
je 0x54025f
movzx eax, byte [ebp - 0x3a]
dec al
je 0x5400af
dec al
je 0x540183
dec al
je 0x540195
jmp 0x5402e2
cmp byte [0x5c5b11], 0
jne 0x5402e2
movzx eax, word [ebp - 0x3c]
test ah, 2
je 0x5400d7
mov edx, 0x540928
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
test al, 0x40
je 0x5400ed
mov edx, 0x540950
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x540171
mov edx, 0x540970
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
call fcn.0053e514
fstp qword [ebp - 0x28]
wait
fld qword [ebp - 0x28]
fcomp dword [0x54097c]
wait
fnstsw ax
sahf
jb 0x540139
fld qword [ebp - 0x28]
fcomp dword [0x540980]
wait
fnstsw ax
sahf
jae 0x540139
mov edx, 0x540990
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
fld qword [ebp - 0x28]
fcomp dword [0x540980]
wait
fnstsw ax
sahf
jb 0x5402e2
fld qword [ebp - 0x28]
fcomp dword [0x54099c]
wait
fnstsw ax
sahf
ja 0x5402e2
mov edx, 0x5409ac
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
mov edx, 0x5409c4
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
mov edx, 0x5409ec
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
movzx eax, word [ebp - 0x3c]
test ah, 4
je 0x5401b0
mov edx, 0x540a20
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
test ah, 0x40
je 0x5401c7
mov edx, 0x540a48
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
test al, 0x80
je 0x5401dd
mov edx, 0x540a88
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
test al, 1
je 0x5401f3
mov edx, 0x540aac
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
test al, 0x20
je 0x540209
mov edx, 0x540ad8
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
test al, 2
je 0x54021f
mov edx, 0x540b1c
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
test ah, 0x20
je 0x540236
mov edx, 0x540b40
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
test ah, 1
jne 0x54024d
mov edx, 0x540b6c
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
mov edx, 0x540ba0
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402e2
mov dl, 1
mov eax, dword [0x455964]
call fcn.00456aa0
mov dword [ebp - 0x18], eax
mov edx, 0x80000002
mov eax, dword [ebp - 0x18]
call fcn.00456b88
mov edx, 0x540bc0
mov eax, dword [ebp - 0x18]
call fcn.00456e04
test al, al
je 0x5402da
lea ecx, [ebp - 4]
mov edx, 0x540c2c
mov eax, dword [ebp - 0x18]
call fcn.0045764c
mov edx, 0x540c50
mov eax, dword [ebp - 4]
call fcn.0041d5f4
test eax, eax
jne 0x5402bc
mov edx, 0x540c68
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x5402da
mov edx, 0x540c90
mov eax, dword [ebp - 4]
call fcn.0041d5f4
test eax, eax
jne 0x5402da
mov edx, 0x540cb0
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
mov eax, dword [ebp - 0x18]
call fcn.00405080
cmp dword [ebp - 0xc], 0
jne 0x5403c5
cmp word [ebp - 0x140], 0
je 0x540372
push 3
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x17c], eax
mov byte [ebp - 0x178], 0
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x170], 0
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x16c], eax
mov byte [ebp - 0x168], 0
lea eax, [ebp - 0x180]
lea edx, [ebp - 0x140]
mov ecx, 0x80
call fcn.00407740
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x164], eax
mov byte [ebp - 0x160], 0x11
lea ecx, [ebp - 0x17c]
mov edx, 0x540ccc
mov eax, dword [ebp - 0x1c]
call fcn.00426464
jmp 0x54051a
push 2
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x198], eax
mov byte [ebp - 0x194], 0
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x190], eax
mov byte [ebp - 0x18c], 0
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x188], eax
mov byte [ebp - 0x184], 0
lea ecx, [ebp - 0x198]
mov edx, 0x540d18
mov eax, dword [ebp - 0x1c]
call fcn.00426464
jmp 0x54051a
cmp word [ebp - 0x140], 0
je 0x540435
push 2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x198], eax
mov byte [ebp - 0x194], 0x11
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x190], eax
mov byte [ebp - 0x18c], 0
lea eax, [ebp - 0x19c]
lea edx, [ebp - 0x140]
mov ecx, 0x80
call fcn.00407740
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x188], eax
mov byte [ebp - 0x184], 0x11
lea ecx, [ebp - 0x198]
mov edx, 0x540d5c
mov eax, dword [ebp - 0x1c]
call fcn.00426464
jmp 0x54051a
push 1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 0x1a8], 0x11
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 0x1a0], 0
lea ecx, [ebp - 0x1ac]
mov edx, 0x540da0
mov eax, dword [ebp - 0x1c]
call fcn.00426464
jmp 0x54051a
mov byte [0x5c5b04], 0
cmp dword [ebp - 0x150], 4
jne 0x5404af
cmp dword [ebp - 0x14c], 0
jne 0x5404af
mov edx, 0x540ddc
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
cmp word [ebp - 0x13e], 0x43
jne 0x5404af
mov edx, 0x540e00
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
cmp dword [ebp - 0x150], 4
jne 0x5404e5
cmp dword [ebp - 0x14c], 0xa
jne 0x5404e5
mov edx, 0x540e18
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
cmp word [ebp - 0x13e], 0x41
jne 0x5404e5
mov edx, 0x540e3c
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
cmp dword [ebp - 0x150], 4
jne 0x54051a
cmp dword [ebp - 0x14c], 0x5a
jne 0x54051a
mov edx, 0x540e50
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
jmp 0x54051a
mov byte [0x5c5b04], 0
mov edx, 0x540e74
mov eax, dword [ebp - 0x1c]
call fcn.00425df8
lea edx, [ebp - 0x1b4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx - 0x24]
mov eax, dword [ebp - 0x1b4]
lea edx, [ebp - 0x1b0]
call fcn.0041d8e4
mov edx, dword [ebp - 0x1b0]
mov eax, 0x64e934
call fcn.00406ee8
mov eax, dword [ebp - 0x1c]
call fcn.00405080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x540599
lea eax, [ebp - 0x1b4]
mov edx, 2
call fcn.00406b68
lea eax, [ebp - 0x19c]
call fcn.00406b08
lea eax, [ebp - 0x180]
call fcn.00406b08
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406b68
ret