Function at 0x56d240
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5e6838
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5fc7d0]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5fc7d0]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x29c]
mov dword [esp + 0x34], ebx
call fcn.00545850
xor edi, edi
mov dword [esp + 0x30], eax
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebp
cmp dword [ebx + 8], edi
jle 0x56db37
mov ecx, ebx
call fcn.0054a330
movzx ecx, word [edi + eax]
lea ebx, [edi + eax]
mov dword [esp + 0x1c], ebx
cmp ecx, 0x102
jg 0x56d569
je 0x56d3e1
dec ecx
cmp ecx, 0xb
ja case.0x56d2db.2
movzx eax, byte [ecx + 0x56dbfc]
jmp dword [eax*4 + 0x56dbec]
inc ebp
mov dword [esp + 0x14], ebp
jmp case.0x56d2db.2
cmp word [ebx + 4], 6
lea ecx, [ebx + 4]
ja 0x56d30f
cmp word [ebx + 6], 0xf
ja 0x56d30f
movzx eax, word [ebx + 8]
mov edx, 0xcb
cmp ax, dx
jb 0x56d9c9
push ecx
call fcn.00569650
add esp, 4
mov byte [esi + 0x214], al
inc ebp
mov dword [esp + 0x14], ebp
jmp case.0x56d2db.2
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x268]
mov dword [esp + 0x278], eax
lea edx, [esp + 0x278]
movzx eax, word [ebx + 8]
xorps xmm0, xmm0
mov word [esp + 0x27c], ax
mov edi, 0xc
movzx eax, word [ebx + 0xa]
mov word [esp + 0x27e], ax
mov eax, dword [ebx + 0xc]
movq qword [esp + 0x280], xmm0
mov dword [esp + 0x280], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x284], eax
movq qword [esp + 0x270], xmm0
mov dword [esp + 0x20], 0x780
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], 0x61516bc0
mov dword [esp + 0x270], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x268], 0x20000
mov dword [esp + 0x26c], 0x11010000
mov dword [esp + 0x274], eax
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x56dbbd
add ecx, 4
add edx, 4
sub edi, 4
jae 0x56d3c2
inc ebp
mov dword [esp + 0x14], ebp
jmp 0x56d99e
push 0
lea eax, [esp + 0x264]
xorps xmm0, xmm0
push eax
mov eax, dword [esp + 0x38]
push 0
push dword [ebx + 4]
movlpd qword [esp + 0x270], xmm0
push dword [esi + 0x14]
mov eax, dword [eax + 0x354]
call eax
mov ecx, dword [esp + 0x260]
mov eax, dword [esp + 0x264]
mov dword [esi + 0x228], ecx
mov dword [esi + 0x22c], eax
cmp ecx, dword [ebx + 4]
jne 0x56d55f
mov eax, dword [esi + 0x240]
lea edi, [esi + 0x74]
shr eax, 2
mov dword [esp + 0x25c], 0
test al, 1
je 0x56d46f
mov ecx, 0x1000
cmp dword [ebx + 8], ecx
cmovb ecx, dword [ebx + 8]
cmp ecx, dword [edi + 0xc]
jbe 0x56d46a
push ecx
cmp dword [edi + 8], 0
mov ecx, edi
je 0x56d47a
call fcn.00559030
jmp 0x56d486
mov dword [edi + 8], ecx
jmp 0x56d486
mov eax, dword [ebx + 8]
cmp eax, dword [edi + 0xc]
jbe 0x56d483
push eax
jmp 0x56d45b
push 0
call fcn.0054e280
jmp 0x56d486
mov dword [edi + 8], eax
mov eax, dword [ebx + 8]
mov ecx, eax
mov dword [esi + 0x218], eax
add ecx, 0xfff
push 0
mov dword [esi + 0x21c], 0
mov eax, dword [esi + 0x21c]
push 0x1000
adc eax, 0
push eax
push ecx
call fcn.005c66e0
cmp eax, dword [esi + 0xa4]
lea ebx, [esi + 0x98]
jbe 0x56d4df
cmp dword [ebx + 8], 0
mov ecx, ebx
push eax
je 0x56d4d6
call fcn.0056b100
jmp 0x56d4e2
push 0
call fcn.0056e560
jmp 0x56d4e2
mov dword [ebx + 8], eax
mov ebp, 0x1000
cmp dword [esi + 0x7c], ebp
cmovb ebp, dword [esi + 0x7c]
cmp dword [edi + 8], 0
je 0x56d4f9
mov eax, dword [edi + 4]
jmp 0x56d4fb
xor eax, eax
push 0
lea ecx, [esp + 0x260]
push ecx
push ebp
push eax
mov eax, dword [esp + 0x40]
push dword [esi + 0x14]
mov eax, dword [eax + 0x34c]
call eax
test eax, eax
setne al
test al, al
je 0x56da18
cmp dword [esi + 0xa0], 0
je 0x56d553
mov eax, dword [ebx + 4]
mov byte [eax], 1
cmp dword [esi + 0x7c], 0x10
jb 0x56d553
cmp dword [edi + 8], 0
je 0x56d543
mov ecx, dword [edi + 4]
jmp 0x56d545
xor ecx, ecx
mov eax, dword [ebx + 4]
movdqu xmm0, xmmword [ecx + ebp - 0x10]
movdqu xmmword [eax + 1], xmm0
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x14], ebp
jmp case.0x56d2db.2
cmp ecx, 0x4004
jg 0x56d851
je 0x56d5ae
sub ecx, 0x104
je 0x56d59b
sub ecx, 4
jne case.0x56d2db.2
mov eax, dword [ebx + 4]
inc ebp
mov dword [esi + 0x238], eax
mov dword [esp + 0x14], ebp
jmp case.0x56d2db.2
mov eax, dword [ebx + 4]
inc ebp
mov dword [esi + 0x23c], eax
mov dword [esp + 0x14], ebp
jmp case.0x56d2db.2
movzx eax, word [ebx + 2]
lea edi, [ebx + 4]
sub eax, 4
lea ebp, [esi + 0xbc]
push eax
push edi
mov ecx, ebp
call fcn.0054e280
mov eax, dword [edi]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x56d7cd
cmp word [ebx + 2], 8
jbe 0x56d843
cmp dword [esi + 0x260], 0x10
lea eax, [esi + 0x24c]
mov dword [esp + 0x2c], eax
mov dword [eax + 0x10], 0
jb 0x56d5fc
mov eax, dword [eax]
push 0x52fc3c
lea ecx, [esp + 0x80]
mov byte [eax], 0
call fcn.00540e50
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x88]
mov dword [esp + 0x29c], 2
push eax
lea ecx, [esi + 0x24c]
call fcn.00548250
cmp dword [esp + 0x94], 0x10
mov dword [esp + 0x294], 0xffffffff
mov dword [esp + 0x7c], 0x52f2f8
jb 0x56d65e
push dword [esp + 0x80]
call fcn.005c40d3
add esp, 4
mov eax, dword [edi + 4]
lea ebx, [edi + 8]
xor edi, edi
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], 0
mov byte [esp + 0x80], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x25c], edi
test eax, eax
jle 0x56d7a5
jmp 0x56d6a0
push 0x18c
lea eax, [esp + 0xd4]
push 0
push eax
call fcn.005c55e0
add esp, 0xc
lea ecx, [esp + 0xd0]
call fcn.00567a10
lea eax, [esp + 0x238]
mov dword [esp + 0x294], 3
cmp ebp, eax
je 0x56d6f5
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x56d6e5
mov eax, dword [ebp + 4]
jmp 0x56d6e7
xor eax, eax
push ecx
push eax
lea ecx, [esp + 0x240]
call fcn.0054e280
push ebx
lea ecx, [esp + 0xd4]
call fcn.0056c370
test al, al
je 0x56da9c
add ebx, dword [esp + 0xd0]
mov eax, dword [0x6023e8]
test eax, eax
jne 0x56d765
push 0x34
call fcn.005c4082
mov edi, eax
add esp, 4
mov dword [esp + 0x260], edi
mov byte [esp + 0x294], 4
test edi, edi
je 0x56d74f
push 0x34
push 0
push edi
call fcn.005c55e0
add esp, 0xc
mov ecx, edi
call fcn.00564270
jmp 0x56d751
xor eax, eax
mov edi, dword [esp + 0x25c]
mov byte [esp + 0x294], 3
mov dword [0x6023e8], eax
lea ecx, [esp + 0xd0]
push ecx
mov ecx, eax
call fcn.0056b7b0
test al, al
je 0x56da9c
lea ecx, [esp + 0xd0]
mov dword [esp + 0x294], 0xffffffff
call fcn.005644a0
inc edi
mov dword [esp + 0x25c], edi
cmp edi, dword [esp + 0x28]
jl 0x56d6a0
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x56d7b8
mov eax, dword [eax]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
inc ebp
mov byte [eax], 0
mov dword [esp + 0x14], ebp
jmp 0x56d99e
lea edi, [ebx + 8]
xor ebx, ebx
test eax, eax
jle 0x56d83f
mov eax, dword [edi]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xe0]
push ecx
lea ecx, [esi + 0xe0]
mov dword [esp + 0x30], eax
push dword [eax + 4]
push eax
call fcn.005662d0
mov edx, eax
mov ecx, 0xccccccb
mov eax, dword [esi + 0xe4]
sub ecx, eax
cmp ecx, 1
jb 0x56dabc
lea ecx, [eax + 1]
inc ebx
mov eax, dword [esp + 0x2c]
add edi, 0xc
mov dword [esi + 0xe4], ecx
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
cmp ebx, dword [esp + 0x28]
jl 0x56d7d6
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
inc ebp
mov dword [esp + 0x14], ebp
jmp 0x56d99e
sub ecx, 0x4008
je 0x56d8e0
dec ecx
jne case.0x56d2db.2
cmp dword [esi + 0x58], ecx
je 0x56d86e
mov ecx, dword [esi + 0x54]
jmp 0x56d870
xor ecx, ecx
push dword [esi + 0x58]
lea eax, [ebx + 4]
push eax
push ecx
call fcn.005c4f90
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov eax, ecx
shr eax, 0x10
test al, 1
je 0x56d898
shr ecx, 0x11
test cl, 1
je case.0x56d2db.1
cmp dword [esi + 0x58], 0
je 0x56d8a3
mov ecx, dword [esi + 0x54]
jmp 0x56d8a5
xor ecx, ecx
push 0
lea eax, [esi + 0x230]
push eax
push dword [esi + 0x58]
push ecx
mov ecx, dword [esi + 8]
call fcn.0055a4b0
test al, al
je 0x56dac6
call fcn.005459f0
mov ecx, dword [esi + 8]
add eax, 4
push eax
add ecx, 4
call fcn.00568a60
inc ebp
mov dword [esp + 0x14], ebp
jmp case.0x56d2db.2
mov eax, dword [ebx + 4]
mov dword [esi + 0x230], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x234], eax
test byte [ebx + 0x10], 1
je 0x56d8ff
or dword [esi + 0xc], 0x10000
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [esi + 0x5c]
jbe 0x56d921
cmp dword [esi + 0x58], 0
push ecx
lea ecx, [esi + 0x50]
je 0x56d918
call fcn.00559030
jmp 0x56d924
push 0
call fcn.0054e280
jmp 0x56d924
mov dword [esi + 0x58], ecx
inc ebp
test byte [esi + 0xe], 1
mov dword [esp + 0x14], ebp
je 0x56d950
lea eax, [esi + 8]
push eax
lea eax, [esi + 0x1c]
push eax
call fcn.00564a00
mov ecx, eax
call fcn.00569140
test al, al
je case.0x56d2db.2
or dword [esi + 0xc], 0x20000
jmp case.0x56d2db.2
push 0x570
call fcn.005c4082
mov edi, eax
add esp, 4
mov dword [esp + 0x260], edi
mov dword [esp + 0x294], 5
test edi, edi
je 0x56d98e
push 0x570
push 0
push edi
call fcn.005c55e0
add esp, 0xc
mov ecx, edi
call fcn.005421c0
jmp 0x56d990
xor eax, eax
mov dword [esp + 0x294], 0xffffffff
mov dword [esi + 8], eax
mov edi, dword [esp + 0x18]
movzx eax, word [ebx + 2]
mov ebx, dword [esp + 0x34]
add edi, eax
mov dword [esp + 0x18], edi
cmp edi, dword [ebx + 8]
jl 0x56d2a6
cmp ebp, 0xb
jne 0x56db37
mov al, 1
jmp 0x56dbbf
or dword [esi + 0xc], 0x20
lea ecx, [esi + 0x248]
call fcn.00548750
push 0x52fbcc
lea ecx, [esp + 0xb8]
call fcn.00540e50
lea eax, [esp + 0xb4]
mov dword [esp + 0x294], 0
push eax
lea ecx, [esi + 0x248]
call fcn.00543e40
lea ecx, [esp + 0xb4]
call fcn.005685c0
jmp 0x56dbbd
or dword [esi + 0xc], 0x20
lea eax, [esi + 0x24c]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x56da31
mov eax, dword [eax]
mov byte [eax], 0
lea ecx, [esp + 0x48]
push 0x2f
push 0x52fc0c
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
call fcn.00548640
mov dword [esp + 0x44], 0x52f2f8
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x50]
mov dword [esp + 0x29c], 1
push eax
lea ecx, [esi + 0x24c]
call fcn.00548250
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x44], 0x52f2f8
jb 0x56dbbd
push dword [esp + 0x48]
jmp 0x56dbb5
or dword [esi + 0xc], 0x20
lea ecx, [esp + 0xd0]
mov dword [esp + 0x294], 0xffffffff
call fcn.005644a0
jmp 0x56dbbd
push 0x52f648
call fcn.005c36d7
or dword [esi + 0xc], 0x20
lea eax, [esi + 0x24c]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x56dadf
mov eax, dword [eax]
push 0x52fc6c
lea ecx, [esp + 0x9c]
mov byte [eax], 0
call fcn.00540e50
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xa4]
mov dword [esp + 0x29c], 6
push eax
lea ecx, [esi + 0x24c]
call fcn.00548250
cmp dword [esp + 0xb0], 0x10
mov dword [esp + 0x98], 0x52f2f8
jb 0x56dbbd
push dword [esp + 0x9c]
jmp 0x56dbb5
or dword [esi + 0xc], 0x20
lea eax, [esi + 0x24c]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x56db50
mov eax, dword [eax]
push 0x30
push 0x52fcac
lea ecx, [esp + 0x6c]
mov byte [eax], 0
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
call fcn.00548640
mov dword [esp + 0x60], 0x52f2f8
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x6c]
mov dword [esp + 0x29c], 7
push eax
lea ecx, [esi + 0x24c]
call fcn.00548250
cmp dword [esp + 0x78], 0x10
mov dword [esp + 0x60], 0x52f2f8
jb 0x56dbbd
push dword [esp + 0x64]
call fcn.005c40d3
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.005c4b26
add esp, 0x284
ret 4