Function at 0x56b410
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ec33
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x5ee034]
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 esi, ecx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x144]
push 0x110
push 0
push eax
mov dword [ebp - 0x148], 0x114
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x56b4c5
cmp dword [ebp - 0x144], 6
jb 0x56b4c5
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0056b7d0
jmp 0x56b4cd
lea ecx, [ebp - 0x1c]
call fcn.0056be80
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jne 0x56b4dc
xor bl, bl
jmp 0x56b733
mov ecx, dword [ebp - 0x18]
mov eax, 0x4ec4ec4f
sub ecx, dword [ebp - 0x1c]
imul ecx
mov dword [ebp - 0x15c], 0
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x56b731
xor ecx, ecx
mov dword [ebp - 0x14c], ecx
nop dword [eax + eax]
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x56b6f6
lea edi, [esi + 0x50]
nop
mov ebx, dword [ebp - 0x1c]
add ebx, ecx
lea ecx, [ebp - 0x34]
push str.00000000_0000_0000_0000_000000000000
mov dword [ebp - 0x158], ebx
call fcn.00406350
mov byte [ebp - 4], 1
lea eax, [ebx + 0x38]
push ecx
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x150], eax
call fcn.00448900
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00404570
cmp ebx, 0xffffffff
jne 0x56b621
lea ecx, [edi - 0x18]
call fcn.0040b6b0
mov ebx, dword [ebp - 0x150]
mov edx, eax
mov ecx, ebx
call fcn.0040b6b0
cmp eax, edx
jne 0x56b62d
lea ecx, [edi - 0x18]
call fcn.00404530
mov ecx, ebx
mov edx, eax
call fcn.00404530
mov ecx, eax
call fcn.0044d550
test al, al
je 0x56b62d
mov ebx, dword [ebp - 0x158]
mov ecx, edi
call fcn.0040b6b0
lea ecx, [ebx + 0x50]
mov edx, eax
call fcn.0040b6b0
cmp eax, edx
jne 0x56b62d
mov ecx, edi
call fcn.00404530
lea ecx, [ebx + 0x50]
mov edx, eax
call fcn.00404530
mov ecx, eax
call fcn.0044d550
test al, al
je 0x56b62d
mov ebx, dword [ebp - 0x160]
mov edx, dword [ebx + 4]
cmp dword [ebx + 8], edx
je 0x56b64d
call fcn.004044b0
mov ecx, dword [esi]
mov edi, eax
mov dword [ebp - 0x150], edi
mov dword [edi], ecx
lea ecx, [esi + 4]
push ecx
lea ecx, [edi + 4]
call fcn.004045a0
mov byte [ebp - 4], 2
lea eax, [esi + 0x1c]
push eax
lea ecx, [edi + 0x1c]
call fcn.004045a0
mov byte [ebp - 4], 0
add dword [ebx + 4], 0x34
jmp 0x56b656
mov eax, dword [ebp - 0x158]
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x56b5dc
mov ebx, dword [ebp - 0x154]
add esi, 0x68
mov ecx, dword [ebp - 0x14c]
add edi, 0x68
cmp esi, dword [ebx + 4]
jne 0x56b520
jmp 0x56b6f0
push esi
push edx
mov ecx, ebx
call fcn.0056c480
mov ebx, dword [ebp - 0x154]
lea edi, [esi + 0x68]
mov eax, dword [ebx + 4]
cmp edi, eax
je 0x56b6c0
add edi, 0x34
mov ebx, eax
add esi, 0x1c
nop
mov eax, dword [edi - 0x34]
lea ecx, [esi - 0x18]
mov dword [esi - 0x1c], eax
lea eax, [edi - 0x30]
push eax
call fcn.00406310
lea eax, [esi + 0x68]
mov ecx, esi
push eax
call fcn.00406310
mov eax, dword [edi]
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], eax
lea eax, [edi + 4]
push eax
call fcn.00406310
lea eax, [edi + 0x1c]
push eax
lea ecx, [esi + 0x34]
call fcn.00406310
lea edi, [edi + 0x68]
add esi, 0x68
lea eax, [edi - 0x34]
cmp eax, ebx
jne 0x56b670
mov ebx, dword [ebp - 0x154]
mov eax, dword [ebx + 4]
lea esi, [eax - 0x68]
mov dword [ebp - 0x150], esi
mov byte [ebp - 4], 5
lea ecx, [esi + 0x50]
call fcn.00404570
mov byte [ebp - 4], 4
lea ecx, [esi + 0x38]
call fcn.00404570
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00545190
add dword [ebx + 4], 0xffffff98
mov ecx, dword [ebp - 0x14c]
mov esi, dword [ebp - 0x15c]
add ecx, 0x68
mov dword [ebp - 0x14c], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [ebp - 0x18]
inc esi
sub ecx, dword [ebp - 0x1c]
imul ecx
mov ecx, dword [ebp - 0x14c]
sar edx, 5
mov eax, edx
mov dword [ebp - 0x15c], esi
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x56b510
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x56b7a8
mov edx, dword [ebp - 0x18]
push ecx
call fcn.0056c6e0
mov ecx, dword [ebp - 0x14]
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x68
mov eax, esi
cmp ecx, 0x1000
jb 0x56b789
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x56b789
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0057d635
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov al, bl
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.0057d0c6
mov esp, ebp
pop ebp
ret 8