Function at 0x5c0b5c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x5c0b64
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5c15cc
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 0x5c0bd2
mov dl, 8
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x5c0bc6
lea ecx, [ebp - 0x4c]
mov edx, 8
mov eax, dword [ebp - 0x20]
call fcn.00479e44
lea eax, [ebp - 0x4c]
mov edx, 0x5c15e8
call fcn.004071a4
mov ecx, dword [ebp - 0x4c]
mov dl, 8
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x34]
call fcn.005bb280
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 0x5c1572
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 0x5c0c42
push 0
mov eax, dword [0x721fa4]
mov eax, dword [eax]
call eax
pop ecx
lea edx, [ebp - 0x50]
call fcn.0047b7b8
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
call fcn.00406fac
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x28]
mov edx, 0x5c1608
call fcn.00407264
mov ecx, dword [ebp - 0x54]
mov dl, 8
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x34]
cmp byte [0x70fb80], 0
jne 0x5c0c67
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc0], 0
je 0x5c0c67
mov eax, dword [0x721a00]
mov eax, dword [eax]
call eax
mov byte [0x70fb80], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x5c0c9d
mov eax, dword [ebp - 4]
call fcn.005bcc50
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x5c0c9d
mov ecx, 0x5c165c
mov dl, 1
mov eax, dword [0x5a793c]
call fcn.00481750
call fcn.00405354
xor eax, eax
push ebp
push 0x5c151b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0xba], 0
je 0x5c0cca
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
mov eax, dword [0x721678]
cmp dword [eax], 0x1010000f
jb 0x5c0d38
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 [0x721a0c]
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 0x5c0d38
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + 0x94]
mov eax, dword [0x5a7194]
call fcn.0048e230
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, 0x5c16a4
call fcn.00407264
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 0x5c0d66
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc4]
test byte [eax + 0x45], 1
je 0x5c0d66
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc4]
mov eax, dword [ebp - 4]
call fcn.005c08cc
jmp 0x5c0de5
push 0x5bcf68
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x721c7c]
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 [0x722078]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.005c3618
test al, al
jne 0x5c0de5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5c0dd7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x54], 0
jne 0x5c0dd7
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.005bfd4c
jmp 0x5c0de5
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 4]
call fcn.005bfb24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.005c35fc
test al, al
jne 0x5c0e03
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.005c3634
test al, al
je 0x5c0e0d
mov eax, dword [ebp - 4]
call fcn.005bf434
jmp 0x5c0e4e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5c0e40
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5c0e40
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.005bf69c
jmp 0x5c0e4e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
call fcn.005bf20c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.005c3634
test al, al
jne 0x5c0ead
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5c0e99
mov eax, dword [ebp - 4]
cmp dword [eax + 0x5c], 0
jne 0x5c0e99
mov eax, dword [ebp - 4]
cmp dword [eax + 0x64], 0
jne 0x5c0e99
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.005bf0b0
jmp 0x5c0ead
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.005be880
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 4]
call fcn.005be2b8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
call fcn.005be638
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5c0efc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x70], 0
jne 0x5c0efc
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.005c0490
jmp 0x5c0f0a
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 4]
call fcn.005c0190
mov eax, dword [ebp - 4]
cmp byte [eax + 0x8c], 1
jne 0x5c0f48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, 1
call fcn.00591f1c
test eax, eax
jne 0x5c0fd0
push 0x5c16dc
mov cl, 1
mov edx, dword [0x5a793c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x5c0fd0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x8c], 0
jbe 0x5c0fd0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x8c]
mov eax, dword [eax*4 + 0x70fb48]
push eax
mov eax, dword [0x721dfc]
mov eax, dword [eax]
call eax
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5c0f8e
push 0x5c172c
mov cl, 1
mov edx, dword [0x5a793c]
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 [0x721d0c]
mov eax, dword [eax]
call eax
add esp, 0x10
test eax, eax
jne 0x5c0fc2
push 0x5c177c
mov cl, 1
mov edx, dword [0x5a793c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x721bc4]
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 0x5c0ff1
mov eax, dword [ebp - 4]
mov byte [eax + 0x41], 0
mov eax, dword [0x721678]
cmp dword [eax], 0x1010000f
jb 0x5c1091
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x42]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x41]
jb 0x5c1165
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x41]
mov eax, dword [eax*4 + 0x70fb5c]
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 [0x721d0c]
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 + 0x70fb5c]
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 [0x721d0c]
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 0x5c1165
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x42]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x41]
jb 0x5c1165
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 0x5c1111
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 1
jne 0x5c10d8
or dword [ebp - 0xc], 0x2000000
jmp 0x5c1111
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 2
jne 0x5c10f3
mov eax, dword [ebp - 0xc]
or eax, 0x2000000
or eax, 0x4000000
mov dword [ebp - 0xc], eax
jmp 0x5c1111
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 3
jne 0x5c1111
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 0x5c1165
mov eax, dword [ebp - 4]
cmp byte [eax + 0x42], 0
jne 0x5c113a
mov eax, dword [ebp - 0xc]
or eax, 0x4000000
or eax, 0x10000000
or eax, 0x8000000
mov dword [ebp - 0xc], eax
jmp 0x5c1165
mov eax, dword [ebp - 4]
cmp byte [eax + 0x42], 1
jne 0x5c1155
mov eax, dword [ebp - 0xc]
or eax, 0x10000000
or eax, 0x8000000
mov dword [ebp - 0xc], eax
jmp 0x5c1165
mov eax, dword [ebp - 4]
cmp byte [eax + 0x42], 2
jne 0x5c1165
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 0x5c11c7
push 0x5c17cc
lea ecx, [ebp - 0x74]
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + 0x41]
mov eax, dword [0x5a6c24]
call fcn.0048e230
push dword [ebp - 0x74]
push 0x5c17f8
lea ecx, [ebp - 0x78]
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + 0x42]
mov eax, dword [0x5a6c24]
call fcn.0048e230
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.00407348
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.005c2cb0
mov eax, dword [0x721678]
cmp dword [eax], 0x1010000f
ja 0x5c11f4
mov eax, dword [ebp - 0xc]
and eax, 0x20
cmp eax, 0x20
jne 0x5c11f4
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 [0x721d0c]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 0x88], 0
je 0x5c1268
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0x7c]
call fcn.00406358
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x721cb0]
mov eax, dword [eax]
call eax
add esp, 8
test eax, eax
jne 0x5c127e
push 0x5c1828
mov cl, 1
mov edx, dword [0x5a793c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x5c127e
mov ecx, 0x5c1868
mov dl, 1
mov eax, dword [0x5a793c]
call fcn.00481750
call fcn.00405354
mov eax, dword [ebp - 4]
call fcn.005c28bc
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 [0x721d0c]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 5], 0x10
jne 0x5c132a
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x721d88]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x5c12e2
push 0x5c1898
mov cl, 1
mov edx, dword [0x5a793c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
push 0x5bd500
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x72201c]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x9c], 0x5000
je 0x5c132a
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 [0x721d0c]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 5], 2
je 0x5c142e
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
jbe 0x5c135d
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 [0x7221f4]
mov eax, dword [eax]
call eax
add esp, 8
push 0x5bd7d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x72209c]
mov eax, dword [eax]
call eax
add esp, 8
push 0x5bd9d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x722058]
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 0x5c13aa
mov eax, dword [ebp - 0x3c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jle 0x5c1411
mov eax, dword [ebp - 4]
add eax, 0xa4
call fcn.00407860
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 0x5c13dd
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 [0x721848]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x5c1411
push 0x5c18dc
mov cl, 1
mov edx, dword [0x5a793c]
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 0x5c142e
mov ecx, 0x5c1934
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 0x5c1511
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x1c]
xor edx, edx
call fcn.00406dd4
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
and eax, dword [ebp - 0x14]
je 0x5c1486
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x80]
mov edx, 8
mov eax, dword [ebp - 0x14]
call fcn.00479e44
push dword [ebp - 0x80]
push 0x5c1974
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00407348
mov eax, dword [ebp - 0x14]
add eax, eax
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1f
jne 0x5c1456
push 0x5c1988
lea ecx, [ebp - 0x88]
mov edx, 8
mov eax, dword [ebp - 0xc]
call fcn.00479e44
push dword [ebp - 0x88]
push 0x5c19b0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x84]
mov edx, 4
call fcn.00407348
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.005c301c
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
mov edx, 0x5c19c4
call fcn.00407264
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 0x5c154c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c1579
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