Function at 0x576a98
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x576aa0
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x577408
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0xc]
cmp byte [ebx + 0x30], 0
jne 0x576b02
mov dl, 8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x576af9
lea ecx, [ebp - 0x14]
mov edx, 8
mov eax, ebx
call fcn.004714e4
lea eax, [ebp - 0x14]
mov edx, 0x577424
call fcn.00406f0c
mov ecx, dword [ebp - 0x14]
mov dl, 8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x34]
call fcn.005718a8
mov byte [ebx + 0x30], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc8]
add eax, 4
push eax
call sub.kernel32.dll_EnterCriticalSection
xor ecx, ecx
push ebp
push 0x5773b4
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x576b6c
push 0
mov eax, dword [0x693f50]
mov eax, dword [eax]
call eax
pop ecx
lea edx, [ebp - 0x18]
call fcn.00472940
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00406dd4
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, 0x577444
call fcn.00406f8c
mov ecx, dword [ebp - 0x1c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
cmp byte [0x68f3ac], 0
jne 0x576b91
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xc0], 0
je 0x576b91
mov eax, dword [0x693914]
mov eax, dword [eax]
call eax
mov byte [0x68f3ac], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
jne 0x576bc4
mov eax, dword [ebp - 0xc]
call fcn.00572f20
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3c], ebx
test ebx, ebx
jne 0x576bc4
mov ecx, 0x577498
mov dl, 1
mov eax, dword [0x5601f8]
call fcn.00478e00
call fcn.00405328
xor ecx, ecx
push ebp
push 0x577368
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0xc]
cmp word [eax + 0xba], 0
je 0x576bf1
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
mov eax, dword [0x6934e0]
cmp dword [eax], 0x1010000f
jb 0x576c5e
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x94]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x693920]
mov eax, dword [eax]
call eax
add esp, 8
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x576c5e
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x94]
mov eax, dword [0x55fa50]
call fcn.00488c8c
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x5774e0
call fcn.00406f8c
mov ecx, dword [ebp - 0x20]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc4]
test eax, eax
je 0x576c7d
test byte [eax + 0x45], 1
je 0x576c7d
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00576838
jmp 0x576cfc
push 0x573204
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x693bb4]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x694040]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.00579148
test al, al
jne 0x576cfc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x576cee
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x54], 0
jne 0x576cee
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00575d70
jmp 0x576cfc
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 0xc]
call fcn.00575b58
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.00579140
test al, al
jne 0x576d1a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.00579150
test al, al
je 0x576d24
mov eax, dword [ebp - 0xc]
call fcn.005754ac
jmp 0x576d65
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x576d57
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x44], 0
jne 0x576d57
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.005756f4
jmp 0x576d65
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0xc]
call fcn.00575298
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.00579150
test al, al
jne 0x576dc4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x576db0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x5c], 0
jne 0x576db0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x64], 0
jne 0x576db0
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.00575154
jmp 0x576dc4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x64]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 0xc]
call fcn.00574988
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0xc]
call fcn.005743e8
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.00574750
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x576e13
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x70], 0
jne 0x576e13
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
call fcn.00576460
jmp 0x576e21
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 0xc]
call fcn.0057617c
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x8c]
cmp al, 1
jne 0x576e5e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, 1
call fcn.0054e198
test eax, eax
jne 0x576ece
push 0x577518
mov cl, 1
mov edx, dword [0x5601f8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x576ece
test al, al
jbe 0x576ece
and eax, 0x7f
mov eax, dword [eax*4 + 0x68f374]
push eax
mov eax, dword [0x693d70]
mov eax, dword [eax]
call eax
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x576e92
push 0x577568
mov cl, 1
mov edx, dword [0x5601f8]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push ebx
push 0
push 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x693c5c]
mov eax, dword [eax]
call eax
add esp, 0x10
test eax, eax
jne 0x576ec3
push 0x5775b8
mov cl, 1
mov edx, dword [0x5601f8]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push ebx
mov eax, dword [0x693b10]
mov eax, dword [eax]
call eax
pop ecx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x84]
or ebx, 0x4000
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x41], 5
jne 0x576eed
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x41], 0
mov eax, dword [0x6934e0]
cmp dword [eax], 0x1010000f
jb 0x576f72
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
cmp al, byte [edx + 0x42]
ja 0x577013
and eax, 0x7f
mov eax, dword [eax*4 + 0x68f388]
push 0
push eax
push 0x7b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x693c5c]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x42]
mov eax, dword [eax*4 + 0x68f388]
push 0
push eax
push 0x7c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x693c5c]
mov eax, dword [eax]
call eax
add esp, 0x10
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
jmp 0x577013
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + 0x42]
cmp al, dl
ja 0x577013
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
test al, al
jbe 0x576fd8
cmp al, 1
jne 0x576fb0
or ebx, 0x2000000
jmp 0x576fd8
cmp al, 2
jne 0x576fc2
or ebx, 0x2000000
or ebx, 0x4000000
jmp 0x576fd8
cmp al, 3
jne 0x576fd8
or ebx, 0x2000000
or ebx, 0x4000000
or ebx, 0x10000000
cmp dl, 5
jae 0x577013
test dl, dl
jne 0x576ff5
or ebx, 0x4000000
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x577013
cmp dl, 1
jne 0x577008
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x577013
cmp dl, 2
jne 0x577013
or ebx, 0x8000000
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x577073
push 0x577608
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x41]
mov eax, dword [0x55f4e0]
call fcn.00488c8c
push dword [ebp - 0x3c]
push 0x577634
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x42]
mov eax, dword [0x55f4e0]
call fcn.00488c8c
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.0040705c
mov ecx, dword [ebp - 0x38]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x34]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0xb0]
mov eax, dword [ebp - 0xc]
call fcn.00578920
mov eax, dword [0x6934e0]
cmp dword [eax], 0x1010000f
ja 0x57709f
mov eax, ebx
and eax, 0x20
cmp eax, 0x20
jne 0x57709f
and ebx, 0xffffffdf
push 0
push ebx
push 0x20
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x693c5c]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x88], 0
je 0x577110
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x88]
mov ecx, 0
call fcn.00406dfc
mov eax, dword [ebp - 0x44]
call fcn.004061f8
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x693bf0]
mov eax, dword [eax]
call eax
add esp, 8
test eax, eax
jne 0x577126
push 0x577664
mov cl, 1
mov edx, dword [0x5601f8]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
jmp 0x577126
mov ecx, 0x5776a4
mov dl, 1
mov eax, dword [0x5601f8]
call fcn.00478e00
call fcn.00405328
mov eax, dword [ebp - 0xc]
call fcn.00578588
mov byte [ebp - 0xd], al
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x98]
push eax
push 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x693c5c]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 0x10
jne 0x5771ca
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x693ce8]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x57718a
push 0x5776d4
mov cl, 1
mov edx, dword [0x5601f8]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push 0x5736f8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x693fd8]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
cmp eax, 0x5000
je 0x5771ca
push 0
push eax
push 0x2a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x693c5c]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 2
je 0x5772a7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa0]
test eax, eax
jbe 0x5771f5
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x6941dc]
mov eax, dword [eax]
call eax
add esp, 8
push 0x573968
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x694064]
mov eax, dword [eax]
call eax
add esp, 8
push 0x573b58
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x694024]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa4]
test eax, eax
je 0x577237
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x57728a
mov eax, dword [ebp - 0xc]
add eax, 0xa4
call fcn.00407530
mov edi, eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0xa4]
test esi, esi
je 0x57725c
sub esi, 4
mov esi, dword [esi]
push esi
push edi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x693708]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x57728a
push 0x577718
mov cl, 1
mov edx, dword [0x5601f8]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x5772a7
mov ecx, 0x577770
mov dl, 8
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x34]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x57735e
mov esi, 1
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406bfc
xor edi, edi
test esi, ebx
je 0x5772f5
push dword [ebp - 4]
lea ecx, [ebp - 0x48]
mov edx, 8
mov eax, esi
call fcn.004714e4
push dword [ebp - 0x48]
push 0x5777b0
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040705c
add esi, esi
inc edi
cmp edi, 0x1f
jne 0x5772ca
push 0x5777c4
lea ecx, [ebp - 0x50]
mov edx, 8
mov eax, ebx
call fcn.004714e4
push dword [ebp - 0x50]
push 0x5777ec
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.0040705c
mov ecx, dword [ebp - 0x4c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0xc]
call fcn.00578c20
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x577800
call fcn.00406f8c
mov ecx, dword [ebp - 0x54]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x577394
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5773bb
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc8]
add eax, 4
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret