Function at 0x5d572a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5d586b
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
xor ebx, ebx
lea edx, [ebp - 4]
mov eax, dword [0x667ac0]
mov eax, dword [eax]
call fcn.00423d04
mov eax, dword [0x668178]
mov eax, dword [eax]
dec eax
je 0x5d5497
dec eax
je 0x5d5521
jmp case.default.0x5d570f
mov eax, dword [0x667ecc]
mov eax, dword [eax]
sub eax, 0xa
jb 0x5d54af
sub eax, 0x50
jb 0x5d54db
je 0x5d551a
jmp case.default.0x5d570f
mov eax, dword [ebp - 4]
mov edx, 0x5d5888
call fcn.0040aa98
je 0x5d54cd
mov eax, dword [ebp - 4]
mov edx, 0x5d5898
call fcn.0040aa98
jne 0x5d54d4
mov bl, 2
jmp case.default.0x5d570f
mov bl, 1
jmp case.default.0x5d570f
cmp dword [0x66ed54], 0x4005a
jne 0x5d54ee
mov bl, 5
jmp case.default.0x5d570f
mov eax, dword [ebp - 4]
mov edx, 0x5d58a8
call fcn.0040aa98
je 0x5d550c
mov eax, dword [ebp - 4]
mov edx, 0x5d5888
call fcn.0040aa98
jne 0x5d5513
mov bl, 4
jmp case.default.0x5d570f
mov bl, 3
jmp case.default.0x5d570f
mov bl, 5
jmp case.default.0x5d570f
mov eax, dword [0x667b10]
mov eax, dword [eax]
add eax, 0xfffffffd
cmp eax, 7
ja case.default.0x5d570f
jmp dword [eax*4 + 0x5d553b]
mov eax, dword [0x667ecc]
mov eax, dword [eax]
dec eax
je 0x5d5574
sub eax, 4
je 0x5d557b
sub eax, 0x2e
je 0x5d5582
jmp case.default.0x5d570f
mov bl, 6
jmp case.default.0x5d570f
mov bl, 7
jmp case.default.0x5d570f
mov bl, 8
jmp case.default.0x5d570f
mov bl, 9
jmp case.default.0x5d570f
mov eax, dword [0x667ecc]
mov eax, dword [eax]
sub eax, 1
jb 0x5d55a6
je 0x5d55ad
dec eax
je 0x5d55b4
jmp case.default.0x5d570f
mov bl, 0xa
jmp case.default.0x5d570f
mov bl, 0xb
jmp case.default.0x5d570f
mov dword [ebp - 0x148], 0x11c
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
call fcn.005d5ce8
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x5d55dd
mov bl, 0xe
jmp case.default.0x5d570f
cmp word [ebp - 0x2c], 0
je 0x5d5601
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d5601
cmp byte [ebp - 0x2e], 1
jne 0x5d5601
mov bl, 0xd
jmp case.default.0x5d570f
mov bl, 0xc
jmp case.default.0x5d570f
mov eax, dword [0x667ecc]
cmp dword [eax], 2
jne 0x5d56ff
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x5d58b8
mov edx, 0x5d58dc
mov eax, 0x80000002
call fcn.005d8828
lea edx, [ebp - 0x14c]
mov eax, dword [0x667e40]
call fcn.0040da80
mov eax, dword [ebp - 0x14c]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.0040ace0
dec eax
je 0x5d567c
lea edx, [ebp - 0x150]
mov eax, dword [0x667ed8]
call fcn.0040da80
mov eax, dword [ebp - 0x150]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.0040ace0
dec eax
jne 0x5d5686
mov eax, 3
jmp 0x5d5706
lea edx, [ebp - 0x154]
mov eax, dword [0x66809c]
call fcn.0040da80
mov eax, dword [ebp - 0x154]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.0040ace0
dec eax
je 0x5d56d2
lea edx, [ebp - 0x158]
mov eax, dword [0x6680e0]
call fcn.0040da80
mov eax, dword [ebp - 0x158]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.0040ace0
dec eax
jne 0x5d56d9
mov eax, 2
jmp 0x5d5706
call fcn.005d5938
mov esi, eax
cmp esi, 6
jne 0x5d56ec
mov eax, 4
jmp 0x5d5706
cmp esi, 0xa
jne 0x5d56f6
or eax, 0xffffffff
jmp 0x5d5706
mov eax, dword [0x667ecc]
mov eax, dword [eax]
jmp 0x5d5706
mov eax, dword [0x667ecc]
mov eax, dword [eax]
cmp eax, 4
ja case.default.0x5d570f
jmp dword [eax*4 + 0x5d5716]
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d5751
cmp byte [ebp - 0x2e], 1
jne 0x5d5751
mov bl, 0xf
jmp case.default.0x5d570f
mov bl, 0x10
jmp case.default.0x5d570f
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d577f
cmp byte [ebp - 0x2e], 1
jne 0x5d577f
mov bl, 0x11
jmp case.default.0x5d570f
mov bl, 0x12
jmp case.default.0x5d570f
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d57aa
cmp byte [ebp - 0x2e], 1
jne 0x5d57aa
mov bl, 0x13
jmp case.default.0x5d570f
mov bl, 0x15
jmp case.default.0x5d570f
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d57d2
cmp byte [ebp - 0x2e], 1
jne 0x5d57d2
mov bl, 0x16
jmp case.default.0x5d570f
mov bl, 0x18
jmp case.default.0x5d570f
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d57fa
cmp byte [ebp - 0x2e], 1
jne 0x5d57fa
mov bl, 0x19
jmp case.default.0x5d570f
mov bl, 0x1a
jmp case.default.0x5d570f
mov esi, dword [0x667b10]
mov esi, dword [esi]
cmp esi, 0xa
jl 0x5d5840
sub esi, 0xa
jne 0x5d5840
call fcn.005d5b10
sub eax, 1
jae 0x5d5840
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d583e
cmp byte [ebp - 0x2e], 1
jne 0x5d583e
mov bl, 0x19
jmp 0x5d5840
mov bl, 0x1a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d5872
lea eax, [ebp - 0x158]
mov edx, 4
call fcn.00409954
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409954
ret