Function at 0x4b45ac
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4b45b4
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b4f1c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0xc]
cmp byte [ebx + 0x30], 0
jne 0x4b4616
mov dl, 8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4b460d
lea ecx, [ebp - 0x14]
mov edx, 8
mov eax, ebx
call fcn.0040ca54
lea eax, [ebp - 0x14]
mov edx, 0x4b4f38
call fcn.004061dc
mov ecx, dword [ebp - 0x14]
mov dl, 8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x34]
call fcn.004af3b8
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 0x4b4ec8
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 0x4b4680
push 0
mov eax, dword [0x540da8]
mov eax, dword [eax]
call eax
pop ecx
lea edx, [ebp - 0x18]
call fcn.0040dc58
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00405fe4
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, 0x4b4f58
call fcn.0040629c
mov ecx, dword [ebp - 0x1c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
cmp byte [0x53b5e0], 0
jne 0x4b46a5
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xc0], 0
je 0x4b46a5
mov eax, dword [0x5408e0]
mov eax, dword [eax]
call eax
mov byte [0x53b5e0], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
jne 0x4b46d8
mov eax, dword [ebp - 0xc]
call fcn.004b0a34
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3c], ebx
test ebx, ebx
jne 0x4b46d8
mov ecx, 0x4b4fac
mov dl, 1
mov eax, dword [0x49dd00]
call fcn.00413b60
call fcn.004047b8
xor ecx, ecx
push ebp
push 0x4b4e7c
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0xc]
cmp word [eax + 0xba], 0
je 0x4b4705
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
mov eax, dword [0x5405a0]
cmp dword [eax], 0x1010000f
jb 0x4b4772
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 [0x5408ec]
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 0x4b4772
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x94]
mov eax, dword [0x49d558]
call fcn.0042083c
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x4b4ff4
call fcn.0040629c
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 0x4b4791
test byte [eax + 0x45], 1
je 0x4b4791
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004b434c
jmp 0x4b4810
push 0x4b0d18
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x540b08]
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 [0x540e50]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004b6c5c
test al, al
jne 0x4b4810
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4b4802
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x54], 0
jne 0x4b4802
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.004b3884
jmp 0x4b4810
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 0xc]
call fcn.004b366c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004b6c54
test al, al
jne 0x4b482e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004b6c64
test al, al
je 0x4b4838
mov eax, dword [ebp - 0xc]
call fcn.004b2fc0
jmp 0x4b4879
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4b486b
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x44], 0
jne 0x4b486b
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.004b3208
jmp 0x4b4879
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0xc]
call fcn.004b2dac
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004b6c64
test al, al
jne 0x4b48d8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4b48c4
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x5c], 0
jne 0x4b48c4
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x64], 0
jne 0x4b48c4
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.004b2c68
jmp 0x4b48d8
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.004b249c
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0xc]
call fcn.004b1efc
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.004b2264
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4b4927
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x70], 0
jne 0x4b4927
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.004b3f74
jmp 0x4b4935
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 0xc]
call fcn.004b3c90
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x8c]
cmp al, 1
jne 0x4b4972
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, 1
call fcn.0048bc58
test eax, eax
jne 0x4b49e2
push 0x4b502c
mov cl, 1
mov edx, dword [0x49dd00]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x4b49e2
test al, al
jbe 0x4b49e2
and eax, 0x7f
mov eax, dword [eax*4 + 0x53b5a8]
push eax
mov eax, dword [0x540c48]
mov eax, dword [eax]
call eax
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x4b49a6
push 0x4b507c
mov cl, 1
mov edx, dword [0x49dd00]
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 [0x540b80]
mov eax, dword [eax]
call eax
add esp, 0x10
test eax, eax
jne 0x4b49d7
push 0x4b50cc
mov cl, 1
mov edx, dword [0x49dd00]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push ebx
mov eax, dword [0x540a78]
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 0x4b4a01
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x41], 0
mov eax, dword [0x5405a0]
cmp dword [eax], 0x1010000f
jb 0x4b4a86
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
cmp al, byte [edx + 0x42]
ja 0x4b4b27
and eax, 0x7f
mov eax, dword [eax*4 + 0x53b5bc]
push 0
push eax
push 0x7b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x540b80]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x42]
mov eax, dword [eax*4 + 0x53b5bc]
push 0
push eax
push 0x7c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x540b80]
mov eax, dword [eax]
call eax
add esp, 0x10
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
jmp 0x4b4b27
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + 0x42]
cmp al, dl
ja 0x4b4b27
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
test al, al
jbe 0x4b4aec
cmp al, 1
jne 0x4b4ac4
or ebx, 0x2000000
jmp 0x4b4aec
cmp al, 2
jne 0x4b4ad6
or ebx, 0x2000000
or ebx, 0x4000000
jmp 0x4b4aec
cmp al, 3
jne 0x4b4aec
or ebx, 0x2000000
or ebx, 0x4000000
or ebx, 0x10000000
cmp dl, 5
jae 0x4b4b27
test dl, dl
jne 0x4b4b09
or ebx, 0x4000000
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x4b4b27
cmp dl, 1
jne 0x4b4b1c
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x4b4b27
cmp dl, 2
jne 0x4b4b27
or ebx, 0x8000000
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4b4b87
push 0x4b511c
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x41]
mov eax, dword [0x49cfe8]
call fcn.0042083c
push dword [ebp - 0x3c]
push 0x4b5148
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x42]
mov eax, dword [0x49cfe8]
call fcn.0042083c
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00406380
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.004b6434
mov eax, dword [0x5405a0]
cmp dword [eax], 0x1010000f
ja 0x4b4bb3
mov eax, ebx
and eax, 0x20
cmp eax, 0x20
jne 0x4b4bb3
and ebx, 0xffffffdf
push 0
push ebx
push 0x20
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x540b80]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x88], 0
je 0x4b4c24
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x88]
mov ecx, 0
call fcn.0040600c
mov eax, dword [ebp - 0x44]
call fcn.00405820
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x540b30]
mov eax, dword [eax]
call eax
add esp, 8
test eax, eax
jne 0x4b4c3a
push 0x4b5178
mov cl, 1
mov edx, dword [0x49dd00]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
jmp 0x4b4c3a
mov ecx, 0x4b51b8
mov dl, 1
mov eax, dword [0x49dd00]
call fcn.00413b60
call fcn.004047b8
mov eax, dword [ebp - 0xc]
call fcn.004b609c
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 [0x540b80]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 0x10
jne 0x4b4cde
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x540bec]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x4b4c9e
push 0x4b51e8
mov cl, 1
mov edx, dword [0x49dd00]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push 0x4b120c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x540e10]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
cmp eax, 0x5000
je 0x4b4cde
push 0
push eax
push 0x2a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x540b80]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 2
je 0x4b4dbb
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa0]
test eax, eax
jbe 0x4b4d09
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x540f8c]
mov eax, dword [eax]
call eax
add esp, 8
push 0x4b147c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x540e70]
mov eax, dword [eax]
call eax
add esp, 8
push 0x4b166c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x540e40]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa4]
test eax, eax
je 0x4b4d4b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4b4d9e
mov eax, dword [ebp - 0xc]
add eax, 0xa4
call fcn.00406840
mov edi, eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0xa4]
test esi, esi
je 0x4b4d70
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 [0x540748]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x4b4d9e
push 0x4b522c
mov cl, 1
mov edx, dword [0x49dd00]
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 0x4b4dbb
mov ecx, 0x4b5284
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 0x4b4e72
mov esi, 1
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405e34
xor edi, edi
test esi, ebx
je 0x4b4e09
push dword [ebp - 4]
lea ecx, [ebp - 0x48]
mov edx, 8
mov eax, esi
call fcn.0040ca54
push dword [ebp - 0x48]
push 0x4b52c4
lea eax, [ebp - 4]
mov edx, 3
call fcn.00406380
add esi, esi
inc edi
cmp edi, 0x1f
jne 0x4b4dde
push 0x4b52d8
lea ecx, [ebp - 0x50]
mov edx, 8
mov eax, ebx
call fcn.0040ca54
push dword [ebp - 0x50]
push 0x4b5300
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00406380
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.004b6734
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x4b5314
call fcn.0040629c
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 0x4b4ea8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4ecf
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc8]
add eax, 4
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret