Function at 0x5250a4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x5250ac
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x525b14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x30], 0
jne 0x52511a
mov dl, 8
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x52510e
lea ecx, [ebp - 0x4c]
mov edx, 8
mov eax, dword [ebp - 0x20]
call fcn.0040d114
lea eax, [ebp - 0x4c]
mov edx, 0x525b30
call fcn.00406600
mov ecx, dword [ebp - 0x4c]
mov dl, 8
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x34]
call fcn.0051f7c4
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x30], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add eax, 4
push eax
call sub.kernel32.dll_EnterCriticalSection
xor eax, eax
push ebp
push 0x525aba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x52518a
push 0
mov eax, dword [0x5690e4]
mov eax, dword [eax]
call eax
pop ecx
lea edx, [ebp - 0x50]
call fcn.0040e33c
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
call fcn.00406408
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x28]
mov edx, 0x525b50
call fcn.004066c0
mov ecx, dword [ebp - 0x54]
mov dl, 8
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x34]
cmp byte [0x568818], 0
jne 0x5251af
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc0], 0
je 0x5251af
mov eax, dword [0x568cf8]
mov eax, dword [eax]
call eax
mov byte [0x568818], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x5251e5
mov eax, dword [ebp - 4]
call fcn.00521198
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x5251e5
mov ecx, 0x525ba4
mov dl, 1
mov eax, dword [0x50bfc4]
call fcn.004129c0
call fcn.00404c44
xor eax, eax
push ebp
push 0x525a63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0xba], 0
je 0x525212
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
mov eax, dword [0x568a94]
cmp dword [eax], 0x1010000f
jb 0x525280
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x94]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x568d04]
mov eax, dword [eax]
call eax
add esp, 8
mov dl, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x525280
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + 0x94]
mov eax, dword [0x50b81c]
call fcn.0041ec1c
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, 0x525bec
call fcn.004066c0
mov ecx, dword [ebp - 0x58]
mov dl, 8
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc4], 0
je 0x5252ae
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc4]
test byte [eax + 0x45], 1
je 0x5252ae
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc4]
mov eax, dword [ebp - 4]
call fcn.00524e14
jmp 0x52532d
push 0x5214b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x568ea8]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x56916c]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.00527b60
test al, al
jne 0x52532d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x52531f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x54], 0
jne 0x52531f
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.00524294
jmp 0x52532d
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 4]
call fcn.0052406c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.00527b44
test al, al
jne 0x52534b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.00527b7c
test al, al
je 0x525355
mov eax, dword [ebp - 4]
call fcn.0052397c
jmp 0x525396
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x525388
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x525388
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 4]
call fcn.00523be4
jmp 0x525396
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
call fcn.00523754
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.00527b7c
test al, al
jne 0x5253f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5253e1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x5c], 0
jne 0x5253e1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x64], 0
jne 0x5253e1
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
call fcn.005235f8
jmp 0x5253f5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x64]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 4]
call fcn.00522dc8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 4]
call fcn.00522800
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
call fcn.00522b80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x525444
mov eax, dword [ebp - 4]
cmp dword [eax + 0x70], 0
jne 0x525444
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
call fcn.005249d8
jmp 0x525452
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 4]
call fcn.005246d8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x8c], 1
jne 0x525490
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, 1
call fcn.004faae4
test eax, eax
jne 0x525518
push 0x525c24
mov cl, 1
mov edx, dword [0x50bfc4]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x525518
mov eax, dword [ebp - 4]
cmp byte [eax + 0x8c], 0
jbe 0x525518
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x8c]
mov eax, dword [eax*4 + 0x5687e0]
push eax
mov eax, dword [0x568fc4]
mov eax, dword [eax]
call eax
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5254d6
push 0x525c74
mov cl, 1
mov edx, dword [0x50bfc4]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
push eax
push 0
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x568f0c]
mov eax, dword [eax]
call eax
add esp, 0x10
test eax, eax
jne 0x52550a
push 0x525cc4
mov cl, 1
mov edx, dword [0x50bfc4]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x568e2c]
mov eax, dword [eax]
call eax
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
or eax, 0x4000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 5
jne 0x525539
mov eax, dword [ebp - 4]
mov byte [eax + 0x41], 0
mov eax, dword [0x568a94]
cmp dword [eax], 0x1010000f
jb 0x5255d9
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x42]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x41]
jb 0x5256ad
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x41]
mov eax, dword [eax*4 + 0x5687f4]
mov dword [ebp - 0x2c], eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
push 0x7b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x568f0c]
mov eax, dword [eax]
call eax
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x42]
mov eax, dword [eax*4 + 0x5687f4]
mov dword [ebp - 0x34], eax
push 0
mov eax, dword [ebp - 0x34]
push eax
push 0x7c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x568f0c]
mov eax, dword [eax]
call eax
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
and eax, 0xfdffffff
and eax, 0xfbffffff
and eax, 0xf7ffffff
and eax, 0xefffffff
mov dword [ebp - 0xc], eax
jmp 0x5256ad
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x42]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x41]
jb 0x5256ad
mov eax, dword [ebp - 0xc]
and eax, 0xfdffffff
and eax, 0xfbffffff
and eax, 0xf7ffffff
and eax, 0xefffffff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 0
jbe 0x525659
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 1
jne 0x525620
or dword [ebp - 0xc], 0x2000000
jmp 0x525659
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 2
jne 0x52563b
mov eax, dword [ebp - 0xc]
or eax, 0x2000000
or eax, 0x4000000
mov dword [ebp - 0xc], eax
jmp 0x525659
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 3
jne 0x525659
mov eax, dword [ebp - 0xc]
or eax, 0x2000000
or eax, 0x4000000
or eax, 0x10000000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x42], 5
jae 0x5256ad
mov eax, dword [ebp - 4]
cmp byte [eax + 0x42], 0
jne 0x525682
mov eax, dword [ebp - 0xc]
or eax, 0x4000000
or eax, 0x10000000
or eax, 0x8000000
mov dword [ebp - 0xc], eax
jmp 0x5256ad
mov eax, dword [ebp - 4]
cmp byte [eax + 0x42], 1
jne 0x52569d
mov eax, dword [ebp - 0xc]
or eax, 0x10000000
or eax, 0x8000000
mov dword [ebp - 0xc], eax
jmp 0x5256ad
mov eax, dword [ebp - 4]
cmp byte [eax + 0x42], 2
jne 0x5256ad
or dword [ebp - 0xc], 0x8000000
mov dl, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x52570f
push 0x525d14
lea ecx, [ebp - 0x74]
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + 0x41]
mov eax, dword [0x50b2ac]
call fcn.0041ec1c
push dword [ebp - 0x74]
push 0x525d40
lea ecx, [ebp - 0x78]
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + 0x42]
mov eax, dword [0x50b2ac]
call fcn.0041ec1c
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.004067a4
mov ecx, dword [ebp - 0x70]
mov dl, 8
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0xb0]
mov eax, dword [ebp - 4]
call fcn.005271f8
mov eax, dword [0x568a94]
cmp dword [eax], 0x1010000f
ja 0x52573c
mov eax, dword [ebp - 0xc]
and eax, 0x20
cmp eax, 0x20
jne 0x52573c
and dword [ebp - 0xc], 0xffffffdf
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0x20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x568f0c]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 0x88], 0
je 0x5257b0
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
mov ecx, 0
call fcn.00406430
mov eax, dword [ebp - 0x7c]
call fcn.00405c2c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x568ecc]
mov eax, dword [eax]
call eax
add esp, 8
test eax, eax
jne 0x5257c6
push 0x525d70
mov cl, 1
mov edx, dword [0x50bfc4]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x5257c6
mov ecx, 0x525db0
mov dl, 1
mov eax, dword [0x50bfc4]
call fcn.004129c0
call fcn.00404c44
mov eax, dword [ebp - 4]
call fcn.00526e04
mov byte [ebp - 5], al
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
push eax
push 0x2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x568f0c]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 5], 0x10
jne 0x525872
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x568f68]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x52582a
push 0x525de0
mov cl, 1
mov edx, dword [0x50bfc4]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
push 0x521a48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x569128]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x9c], 0x5000
je 0x525872
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
push eax
push 0x2a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x568f0c]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 5], 2
je 0x525976
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
jbe 0x5258a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x569254]
mov eax, dword [eax]
call eax
add esp, 8
push 0x521d18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x569184]
mov eax, dword [eax]
call eax
add esp, 8
push 0x521f1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x56915c]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x5258f2
mov eax, dword [ebp - 0x3c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jle 0x525959
mov eax, dword [ebp - 4]
add eax, 0xa4
call fcn.00406c64
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x525925
mov eax, dword [ebp - 0x40]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x568bd0]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x525959
push 0x525e24
mov cl, 1
mov edx, dword [0x50bfc4]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov dl, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x525976
mov ecx, 0x525e7c
mov dl, 8
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov dl, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x525a59
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x1c]
xor edx, edx
call fcn.00406240
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
and eax, dword [ebp - 0x14]
je 0x5259ce
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x80]
mov edx, 8
mov eax, dword [ebp - 0x14]
call fcn.0040d114
push dword [ebp - 0x80]
push 0x525ebc
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004067a4
mov eax, dword [ebp - 0x14]
add eax, eax
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1f
jne 0x52599e
push 0x525ed0
lea ecx, [ebp - 0x88]
mov edx, 8
mov eax, dword [ebp - 0xc]
call fcn.0040d114
push dword [ebp - 0x88]
push 0x525ef8
push dword [ebp - 0x1c]
lea eax, [ebp - 0x84]
mov edx, 4
call fcn.004067a4
mov ecx, dword [ebp - 0x84]
mov dl, 8
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x34]
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 4]
call fcn.00527564
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
mov edx, 0x525f0c
call fcn.004066c0
mov ecx, dword [ebp - 0x8c]
mov dl, 8
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x525a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525ac1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add eax, 4
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret