Function at 0x586cf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x586cf8
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x587660
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0xc]
cmp byte [ebx + 0x30], 0
jne 0x586d5a
mov dl, 8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x586d51
lea ecx, [ebp - 0x14]
mov edx, 8
mov eax, ebx
call fcn.00470e8c
lea eax, [ebp - 0x14]
mov edx, 0x58767c
call fcn.00406e1c
mov ecx, dword [ebp - 0x14]
mov dl, 8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x34]
call fcn.00581af4
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 0x58760c
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 0x586dc4
push 0
mov eax, dword [0x6130b4]
mov eax, dword [eax]
call eax
pop ecx
lea edx, [ebp - 0x18]
call fcn.004722a8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00406c24
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, 0x58769c
call fcn.00406edc
mov ecx, dword [ebp - 0x1c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
cmp byte [0x610e84], 0
jne 0x586de9
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xc0], 0
je 0x586de9
mov eax, dword [0x612b90]
mov eax, dword [eax]
call eax
mov byte [0x610e84], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
jne 0x586e1c
mov eax, dword [ebp - 0xc]
call fcn.00583178
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3c], ebx
test ebx, ebx
jne 0x586e1c
mov ecx, 0x5876f0
mov dl, 1
mov eax, dword [0x5702d8]
call fcn.0047804c
call fcn.00405214
xor ecx, ecx
push ebp
push 0x5875c0
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0xc]
cmp word [eax + 0xba], 0
je 0x586e49
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
mov eax, dword [0x612858]
cmp dword [eax], 0x1010000f
jb 0x586eb6
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 [0x612b9c]
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 0x586eb6
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x94]
mov eax, dword [0x56fb30]
call fcn.00484c30
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x587738
call fcn.00406edc
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 0x586ed5
test byte [eax + 0x45], 1
je 0x586ed5
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00586a90
jmp 0x586f54
push 0x58345c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x612dc4]
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 [0x613170]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.005893a0
test al, al
jne 0x586f54
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x586f46
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x54], 0
jne 0x586f46
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.00585fc8
jmp 0x586f54
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 0xc]
call fcn.00585db0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.00589398
test al, al
jne 0x586f72
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.005893a8
test al, al
je 0x586f7c
mov eax, dword [ebp - 0xc]
call fcn.00585704
jmp 0x586fbd
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x586faf
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x44], 0
jne 0x586faf
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.0058594c
jmp 0x586fbd
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0xc]
call fcn.005854f0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.005893a8
test al, al
jne 0x58701c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x587008
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x5c], 0
jne 0x587008
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x64], 0
jne 0x587008
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.005853ac
jmp 0x58701c
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.00584be0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0xc]
call fcn.00584640
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.005849a8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x58706b
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x70], 0
jne 0x58706b
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.005866b8
jmp 0x587079
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 0xc]
call fcn.005863d4
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x8c]
cmp al, 1
jne 0x5870b6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, 1
call fcn.0055de08
test eax, eax
jne 0x587126
push 0x587770
mov cl, 1
mov edx, dword [0x5702d8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x587126
test al, al
jbe 0x587126
and eax, 0x7f
mov eax, dword [eax*4 + 0x610e4c]
push eax
mov eax, dword [0x612f28]
mov eax, dword [eax]
call eax
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x5870ea
push 0x5877c0
mov cl, 1
mov edx, dword [0x5702d8]
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 [0x612e40]
mov eax, dword [eax]
call eax
add esp, 0x10
test eax, eax
jne 0x58711b
push 0x587810
mov cl, 1
mov edx, dword [0x5702d8]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push ebx
mov eax, dword [0x612d34]
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 0x587145
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x41], 0
mov eax, dword [0x612858]
cmp dword [eax], 0x1010000f
jb 0x5871ca
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
cmp al, byte [edx + 0x42]
ja 0x58726b
and eax, 0x7f
mov eax, dword [eax*4 + 0x610e60]
push 0
push eax
push 0x7b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x612e40]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x42]
mov eax, dword [eax*4 + 0x610e60]
push 0
push eax
push 0x7c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x612e40]
mov eax, dword [eax]
call eax
add esp, 0x10
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
jmp 0x58726b
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + 0x42]
cmp al, dl
ja 0x58726b
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
test al, al
jbe 0x587230
cmp al, 1
jne 0x587208
or ebx, 0x2000000
jmp 0x587230
cmp al, 2
jne 0x58721a
or ebx, 0x2000000
or ebx, 0x4000000
jmp 0x587230
cmp al, 3
jne 0x587230
or ebx, 0x2000000
or ebx, 0x4000000
or ebx, 0x10000000
cmp dl, 5
jae 0x58726b
test dl, dl
jne 0x58724d
or ebx, 0x4000000
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x58726b
cmp dl, 1
jne 0x587260
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x58726b
cmp dl, 2
jne 0x58726b
or ebx, 0x8000000
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x5872cb
push 0x587860
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x41]
mov eax, dword [0x56f5c0]
call fcn.00484c30
push dword [ebp - 0x3c]
push 0x58788c
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x42]
mov eax, dword [0x56f5c0]
call fcn.00484c30
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00406fc0
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.00588b78
mov eax, dword [0x612858]
cmp dword [eax], 0x1010000f
ja 0x5872f7
mov eax, ebx
and eax, 0x20
cmp eax, 0x20
jne 0x5872f7
and ebx, 0xffffffdf
push 0
push ebx
push 0x20
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x612e40]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x88], 0
je 0x587368
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x88]
mov ecx, 0
call fcn.00406c4c
mov eax, dword [ebp - 0x44]
call fcn.004061fc
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x612df4]
mov eax, dword [eax]
call eax
add esp, 8
test eax, eax
jne 0x58737e
push 0x5878bc
mov cl, 1
mov edx, dword [0x5702d8]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
jmp 0x58737e
mov ecx, 0x5878fc
mov dl, 1
mov eax, dword [0x5702d8]
call fcn.0047804c
call fcn.00405214
mov eax, dword [ebp - 0xc]
call fcn.005887e0
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 [0x612e40]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 0x10
jne 0x587422
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x612eb4]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x5873e2
push 0x58792c
mov cl, 1
mov edx, dword [0x5702d8]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push 0x583950
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x61311c]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
cmp eax, 0x5000
je 0x587422
push 0
push eax
push 0x2a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x612e40]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 2
je 0x5874ff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa0]
test eax, eax
jbe 0x58744d
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x6132b8]
mov eax, dword [eax]
call eax
add esp, 8
push 0x583bc0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x613190]
mov eax, dword [eax]
call eax
add esp, 8
push 0x583db0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x613158]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa4]
test eax, eax
je 0x58748f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x5874e2
mov eax, dword [ebp - 0xc]
add eax, 0xa4
call fcn.004074d8
mov edi, eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0xa4]
test esi, esi
je 0x5874b4
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 [0x612a0c]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x5874e2
push 0x587970
mov cl, 1
mov edx, dword [0x5702d8]
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 0x5874ff
mov ecx, 0x5879c8
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 0x5875b6
mov esi, 1
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406a5c
xor edi, edi
test esi, ebx
je 0x58754d
push dword [ebp - 4]
lea ecx, [ebp - 0x48]
mov edx, 8
mov eax, esi
call fcn.00470e8c
push dword [ebp - 0x48]
push 0x587a08
lea eax, [ebp - 4]
mov edx, 3
call fcn.00406fc0
add esi, esi
inc edi
cmp edi, 0x1f
jne 0x587522
push 0x587a1c
lea ecx, [ebp - 0x50]
mov edx, 8
mov eax, ebx
call fcn.00470e8c
push dword [ebp - 0x50]
push 0x587a44
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00406fc0
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.00588e78
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x587a58
call fcn.00406edc
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 0x5875ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x587613
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc8]
add eax, 4
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret