Function at 0x4a7a78
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4a7a80
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a83e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0xc]
cmp byte [ebx + 0x30], 0
jne 0x4a7ae2
mov dl, 8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4a7ad9
lea ecx, [ebp - 0x14]
mov edx, 8
mov eax, ebx
call fcn.0040c65c
lea eax, [ebp - 0x14]
mov edx, 0x4a8404
call fcn.00405fc0
mov ecx, dword [ebp - 0x14]
mov dl, 8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x34]
call fcn.004a287c
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 0x4a8394
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 0x4a7b4c
push 0
mov eax, dword [0x5029dc]
mov eax, dword [eax]
call eax
pop ecx
lea edx, [ebp - 0x18]
call fcn.0040da5c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00405dc8
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, 0x4a8424
call fcn.00406080
mov ecx, dword [ebp - 0x1c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
cmp byte [0x4fa7d8], 0
jne 0x4a7b71
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xc0], 0
je 0x4a7b71
mov eax, dword [0x5025e8]
mov eax, dword [eax]
call eax
mov byte [0x4fa7d8], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
jne 0x4a7ba4
mov eax, dword [ebp - 0xc]
call fcn.004a3f00
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3c], ebx
test ebx, ebx
jne 0x4a7ba4
mov ecx, 0x4a8478
mov dl, 1
mov eax, dword [0x491060]
call fcn.004139e0
call fcn.0040474c
xor ecx, ecx
push ebp
push 0x4a8348
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0xc]
cmp word [eax + 0xba], 0
je 0x4a7bd1
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
mov eax, dword [0x502378]
cmp dword [eax], 0x1010000f
jb 0x4a7c3e
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 [0x5025f4]
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 0x4a7c3e
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x94]
mov eax, dword [0x4908b8]
call fcn.0041eed4
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x4a84c0
call fcn.00406080
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 0x4a7c5d
test byte [eax + 0x45], 1
je 0x4a7c5d
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004a7818
jmp 0x4a7cdc
push 0x4a41e4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5027b8]
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 [0x502a64]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004aa128
test al, al
jne 0x4a7cdc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a7cce
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x54], 0
jne 0x4a7cce
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.004a6d50
jmp 0x4a7cdc
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 0xc]
call fcn.004a6b38
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004aa120
test al, al
jne 0x4a7cfa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004aa130
test al, al
je 0x4a7d04
mov eax, dword [ebp - 0xc]
call fcn.004a648c
jmp 0x4a7d45
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a7d37
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x44], 0
jne 0x4a7d37
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.004a66d4
jmp 0x4a7d45
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0xc]
call fcn.004a6278
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004aa130
test al, al
jne 0x4a7da4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a7d90
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x5c], 0
jne 0x4a7d90
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x64], 0
jne 0x4a7d90
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.004a6134
jmp 0x4a7da4
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.004a5968
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0xc]
call fcn.004a53c8
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.004a5730
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a7df3
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x70], 0
jne 0x4a7df3
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.004a7440
jmp 0x4a7e01
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 0xc]
call fcn.004a715c
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x8c]
cmp al, 1
jne 0x4a7e3e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, 1
call fcn.00484f98
test eax, eax
jne 0x4a7eae
push 0x4a84f8
mov cl, 1
mov edx, dword [0x491060]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x4a7eae
test al, al
jbe 0x4a7eae
and eax, 0x7f
mov eax, dword [eax*4 + 0x4fa7a0]
push eax
mov eax, dword [0x5028c8]
mov eax, dword [eax]
call eax
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x4a7e72
push 0x4a8548
mov cl, 1
mov edx, dword [0x491060]
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 [0x50281c]
mov eax, dword [eax]
call eax
add esp, 0x10
test eax, eax
jne 0x4a7ea3
push 0x4a8598
mov cl, 1
mov edx, dword [0x491060]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push ebx
mov eax, dword [0x502738]
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 0x4a7ecd
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x41], 0
mov eax, dword [0x502378]
cmp dword [eax], 0x1010000f
jb 0x4a7f52
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
cmp al, byte [edx + 0x42]
ja 0x4a7ff3
and eax, 0x7f
mov eax, dword [eax*4 + 0x4fa7b4]
push 0
push eax
push 0x7b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x50281c]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x42]
mov eax, dword [eax*4 + 0x4fa7b4]
push 0
push eax
push 0x7c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x50281c]
mov eax, dword [eax]
call eax
add esp, 0x10
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
jmp 0x4a7ff3
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + 0x42]
cmp al, dl
ja 0x4a7ff3
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
test al, al
jbe 0x4a7fb8
cmp al, 1
jne 0x4a7f90
or ebx, 0x2000000
jmp 0x4a7fb8
cmp al, 2
jne 0x4a7fa2
or ebx, 0x2000000
or ebx, 0x4000000
jmp 0x4a7fb8
cmp al, 3
jne 0x4a7fb8
or ebx, 0x2000000
or ebx, 0x4000000
or ebx, 0x10000000
cmp dl, 5
jae 0x4a7ff3
test dl, dl
jne 0x4a7fd5
or ebx, 0x4000000
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x4a7ff3
cmp dl, 1
jne 0x4a7fe8
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x4a7ff3
cmp dl, 2
jne 0x4a7ff3
or ebx, 0x8000000
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4a8053
push 0x4a85e8
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x41]
mov eax, dword [0x490348]
call fcn.0041eed4
push dword [ebp - 0x3c]
push 0x4a8614
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x42]
mov eax, dword [0x490348]
call fcn.0041eed4
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00406164
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.004a9900
mov eax, dword [0x502378]
cmp dword [eax], 0x1010000f
ja 0x4a807f
mov eax, ebx
and eax, 0x20
cmp eax, 0x20
jne 0x4a807f
and ebx, 0xffffffdf
push 0
push ebx
push 0x20
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x50281c]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x88], 0
je 0x4a80f0
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x88]
mov ecx, 0
call fcn.00405df0
mov eax, dword [ebp - 0x44]
call fcn.00405734
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5027d8]
mov eax, dword [eax]
call eax
add esp, 8
test eax, eax
jne 0x4a8106
push 0x4a8644
mov cl, 1
mov edx, dword [0x491060]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
jmp 0x4a8106
mov ecx, 0x4a8684
mov dl, 1
mov eax, dword [0x491060]
call fcn.004139e0
call fcn.0040474c
mov eax, dword [ebp - 0xc]
call fcn.004a9568
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 [0x50281c]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 0x10
jne 0x4a81aa
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x502878]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x4a816a
push 0x4a86b4
mov cl, 1
mov edx, dword [0x491060]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push 0x4a46d8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x502a28]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
cmp eax, 0x5000
je 0x4a81aa
push 0
push eax
push 0x2a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x50281c]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 2
je 0x4a8287
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa0]
test eax, eax
jbe 0x4a81d5
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x502b60]
mov eax, dword [eax]
call eax
add esp, 8
push 0x4a4948
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x502a80]
mov eax, dword [eax]
call eax
add esp, 8
push 0x4a4b38
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x502a54]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa4]
test eax, eax
je 0x4a8217
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4a826a
mov eax, dword [ebp - 0xc]
add eax, 0xa4
call fcn.00406624
mov edi, eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0xa4]
test esi, esi
je 0x4a823c
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 [0x5024bc]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x4a826a
push 0x4a86f8
mov cl, 1
mov edx, dword [0x491060]
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 0x4a8287
mov ecx, 0x4a8750
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 0x4a833e
mov esi, 1
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405c18
xor edi, edi
test esi, ebx
je 0x4a82d5
push dword [ebp - 4]
lea ecx, [ebp - 0x48]
mov edx, 8
mov eax, esi
call fcn.0040c65c
push dword [ebp - 0x48]
push 0x4a8790
lea eax, [ebp - 4]
mov edx, 3
call fcn.00406164
add esi, esi
inc edi
cmp edi, 0x1f
jne 0x4a82aa
push 0x4a87a4
lea ecx, [ebp - 0x50]
mov edx, 8
mov eax, ebx
call fcn.0040c65c
push dword [ebp - 0x50]
push 0x4a87cc
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00406164
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.004a9c00
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x4a87e0
call fcn.00406080
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 0x4a8374
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a839b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc8]
add eax, 4
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret