Function at 0x52cc0c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x52cc14
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x52d57c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0xc]
cmp byte [ebx + 0x30], 0
jne 0x52cc76
mov dl, 8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x52cc6d
lea ecx, [ebp - 0x14]
mov edx, 8
mov eax, ebx
call fcn.0040d0c0
lea eax, [ebp - 0x14]
mov edx, 0x52d598
call fcn.0040668c
mov ecx, dword [ebp - 0x14]
mov dl, 8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x34]
call fcn.00527a1c
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 0x52d528
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 0x52cce0
push 0
mov eax, dword [0x566c78]
mov eax, dword [eax]
call eax
pop ecx
lea edx, [ebp - 0x18]
call fcn.0040e4c0
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00406494
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, 0x52d5b8
call fcn.0040674c
mov ecx, dword [ebp - 0x1c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
cmp byte [0x5664f8], 0
jne 0x52cd05
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xc0], 0
je 0x52cd05
mov eax, dword [0x566880]
mov eax, dword [eax]
call eax
mov byte [0x5664f8], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
jne 0x52cd38
mov eax, dword [ebp - 0xc]
call fcn.00529094
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3c], ebx
test ebx, ebx
jne 0x52cd38
mov ecx, 0x52d60c
mov dl, 1
mov eax, dword [0x51636c]
call fcn.00414478
call fcn.00404c44
xor ecx, ecx
push ebp
push 0x52d4dc
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0xc]
cmp word [eax + 0xba], 0
je 0x52cd65
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
mov eax, dword [0x566614]
cmp dword [eax], 0x1010000f
jb 0x52cdd2
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 [0x56688c]
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 0x52cdd2
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x94]
mov eax, dword [0x515bc4]
call fcn.00420bd4
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x52d654
call fcn.0040674c
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 0x52cdf1
test byte [eax + 0x45], 1
je 0x52cdf1
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0052c9ac
jmp 0x52ce70
push 0x529378
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x566a30]
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 [0x566d00]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.0052f2bc
test al, al
jne 0x52ce70
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x52ce62
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x54], 0
jne 0x52ce62
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.0052bee4
jmp 0x52ce70
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 0xc]
call fcn.0052bccc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.0052f2b4
test al, al
jne 0x52ce8e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.0052f2c4
test al, al
je 0x52ce98
mov eax, dword [ebp - 0xc]
call fcn.0052b620
jmp 0x52ced9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x52cecb
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x44], 0
jne 0x52cecb
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.0052b868
jmp 0x52ced9
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0xc]
call fcn.0052b40c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.0052f2c4
test al, al
jne 0x52cf38
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x52cf24
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x5c], 0
jne 0x52cf24
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x64], 0
jne 0x52cf24
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.0052b2c8
jmp 0x52cf38
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.0052aafc
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0xc]
call fcn.0052a55c
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.0052a8c4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x52cf87
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x70], 0
jne 0x52cf87
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.0052c5d4
jmp 0x52cf95
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 0xc]
call fcn.0052c2f0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x8c]
cmp al, 1
jne 0x52cfd2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, 1
call fcn.00504300
test eax, eax
jne 0x52d042
push 0x52d68c
mov cl, 1
mov edx, dword [0x51636c]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x52d042
test al, al
jbe 0x52d042
and eax, 0x7f
mov eax, dword [eax*4 + 0x5664c0]
push eax
mov eax, dword [0x566b54]
mov eax, dword [eax]
call eax
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x52d006
push 0x52d6dc
mov cl, 1
mov edx, dword [0x51636c]
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 [0x566a98]
mov eax, dword [eax]
call eax
add esp, 0x10
test eax, eax
jne 0x52d037
push 0x52d72c
mov cl, 1
mov edx, dword [0x51636c]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push ebx
mov eax, dword [0x5669b4]
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 0x52d061
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x41], 0
mov eax, dword [0x566614]
cmp dword [eax], 0x1010000f
jb 0x52d0e6
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
cmp al, byte [edx + 0x42]
ja 0x52d187
and eax, 0x7f
mov eax, dword [eax*4 + 0x5664d4]
push 0
push eax
push 0x7b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x566a98]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x42]
mov eax, dword [eax*4 + 0x5664d4]
push 0
push eax
push 0x7c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x566a98]
mov eax, dword [eax]
call eax
add esp, 0x10
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
jmp 0x52d187
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + 0x42]
cmp al, dl
ja 0x52d187
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
test al, al
jbe 0x52d14c
cmp al, 1
jne 0x52d124
or ebx, 0x2000000
jmp 0x52d14c
cmp al, 2
jne 0x52d136
or ebx, 0x2000000
or ebx, 0x4000000
jmp 0x52d14c
cmp al, 3
jne 0x52d14c
or ebx, 0x2000000
or ebx, 0x4000000
or ebx, 0x10000000
cmp dl, 5
jae 0x52d187
test dl, dl
jne 0x52d169
or ebx, 0x4000000
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x52d187
cmp dl, 1
jne 0x52d17c
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x52d187
cmp dl, 2
jne 0x52d187
or ebx, 0x8000000
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x52d1e7
push 0x52d77c
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x41]
mov eax, dword [0x515654]
call fcn.00420bd4
push dword [ebp - 0x3c]
push 0x52d7a8
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x42]
mov eax, dword [0x515654]
call fcn.00420bd4
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00406830
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.0052ea94
mov eax, dword [0x566614]
cmp dword [eax], 0x1010000f
ja 0x52d213
mov eax, ebx
and eax, 0x20
cmp eax, 0x20
jne 0x52d213
and ebx, 0xffffffdf
push 0
push ebx
push 0x20
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x566a98]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x88], 0
je 0x52d284
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x88]
mov ecx, 0
call fcn.004064bc
mov eax, dword [ebp - 0x44]
call fcn.00405c2c
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x566a54]
mov eax, dword [eax]
call eax
add esp, 8
test eax, eax
jne 0x52d29a
push 0x52d7d8
mov cl, 1
mov edx, dword [0x51636c]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
jmp 0x52d29a
mov ecx, 0x52d818
mov dl, 1
mov eax, dword [0x51636c]
call fcn.00414478
call fcn.00404c44
mov eax, dword [ebp - 0xc]
call fcn.0052e6fc
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 [0x566a98]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 0x10
jne 0x52d33e
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x566af4]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x52d2fe
push 0x52d848
mov cl, 1
mov edx, dword [0x51636c]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push 0x52986c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x566cbc]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
cmp eax, 0x5000
je 0x52d33e
push 0
push eax
push 0x2a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x566a98]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 2
je 0x52d41b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa0]
test eax, eax
jbe 0x52d369
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x566df0]
mov eax, dword [eax]
call eax
add esp, 8
push 0x529adc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x566d18]
mov eax, dword [eax]
call eax
add esp, 8
push 0x529ccc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x566cf0]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa4]
test eax, eax
je 0x52d3ab
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x52d3fe
mov eax, dword [ebp - 0xc]
add eax, 0xa4
call fcn.00406cf0
mov edi, eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0xa4]
test esi, esi
je 0x52d3d0
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 [0x566758]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x52d3fe
push 0x52d88c
mov cl, 1
mov edx, dword [0x51636c]
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 0x52d41b
mov ecx, 0x52d8e4
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 0x52d4d2
mov esi, 1
lea eax, [ebp - 4]
xor edx, edx
call fcn.004062cc
xor edi, edi
test esi, ebx
je 0x52d469
push dword [ebp - 4]
lea ecx, [ebp - 0x48]
mov edx, 8
mov eax, esi
call fcn.0040d0c0
push dword [ebp - 0x48]
push 0x52d924
lea eax, [ebp - 4]
mov edx, 3
call fcn.00406830
add esi, esi
inc edi
cmp edi, 0x1f
jne 0x52d43e
push 0x52d938
lea ecx, [ebp - 0x50]
mov edx, 8
mov eax, ebx
call fcn.0040d0c0
push dword [ebp - 0x50]
push 0x52d960
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00406830
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.0052ed94
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x52d974
call fcn.0040674c
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 0x52d508
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52d52f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc8]
add eax, 4
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret