Function at 0x100c2a70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f958
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2e0]
add esi, 0x368
lea ebx, [esi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x30]
push ebx
jb 0x100c2ac7
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
jmp 0x100c2b40
mov eax, dword [esi + 0x2c]
shr eax, 7
and al, 1
mov byte [ebp - 0x11], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp byte [ebp - 0x11], bl
je 0x100c2b40
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.100cc330
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
lea eax, [ebp - 0x68]
mov dword [ebp - 4], ebx
call fcn.100b7500
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x2e0]
push eax
add ecx, 0x368
call fcn.1000dc40
lea edx, [ebp - 0x68]
push edx
mov byte [ebp - 4], bl
call fcn.1000c300
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x100c2b40
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x100c2b40
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
or byte [edi + 0x4d8], 0x80
mov esi, edi
call fcn.100d0e90
mov eax, dword [ebp + 0xc]
push 1
push eax
push edi
call fcn.100c42a0
mov eax, dword [edi + 0x304]
cmp eax, ebx
mov esi, dword [eax + 0x5c]
je 0x100c2b6c
mov edx, dword [eax + 0x64]
jmp 0x100c2b78
mov edi, dword [edi + 0xa0]
mov edx, dword [edi + 0x90]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xa0]
mov ecx, dword [ecx + 0x90]
add edx, esi
cmp edx, ecx
sete byte [ebp - 0x11]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov edx, dword [ebp + 0xc]
push edx
lea esi, [ebp - 0x48]
mov dword [ebp - 4], 2
call fcn.1007e700
call fcn.100d4c80
mov dword [ebp - 0x34], eax
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 0x34]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [eax], eax
mov eax, dword [ebp - 0x34]
mov dword [eax + 8], eax
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
lea ecx, [ebp - 0x38]
mov edi, ecx
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
xor esi, esi
cmp ecx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], eax
jbe 0x100c2bfd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
cmp ecx, eax
mov dword [ebp - 0x28], ecx
jbe 0x100c2c0a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov byte [ebp - 0x18], bl
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.100d8290
mov eax, dword [ebp - 0x34]
mov edi, dword [eax]
lea esi, [ebp - 0x38]
add esp, 0x1c
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
mov ebx, eax
lea ecx, [ecx]
test esi, esi
je 0x100c2c5b
lea eax, [ebp - 0x38]
cmp esi, eax
je 0x100c2c61
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x100c2ccd
test esi, esi
jne 0x100c2c6f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x100c2c7a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x100c2cbd
mov edx, dword [ecx + 0x20]
and byte [ecx + 0x24], 0xfb
mov eax, edx
shl eax, 0x18
sar eax, 0x1c
add eax, 1
cmp eax, 8
jle 0x100c2c9d
mov eax, 8
shl eax, 4
xor eax, edx
and eax, 0xf0
xor eax, edx
mov dword [ecx + 0x20], eax
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x100c2cbd
mov edx, dword [ebp + 0xc]
push edx
push ecx
call fcn.10068e10
lea esi, [ebp - 0x2c]
call fcn.10073f20
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
jmp 0x100c2c50
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
cmp esi, eax
mov edi, eax
jbe 0x100c2cf2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
cmp esi, eax
jbe 0x100c2cf2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x40]
cmp esi, edi
je 0x100c2d19
sub eax, edi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea ebx, [esi + ecx]
jle 0x100c2d16
push ecx
push edi
push ecx
push esi
call dword [sym.imp.MSVCR80.dll_memmove_s]
add esp, 0x10
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp - 0x34]
mov edi, dword [eax + 4]
cmp byte [edi + 0x11], 0
mov esi, edi
jne 0x100c2d49
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.100d4fb0
mov esi, dword [esi]
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [esi + 0x11], 0
mov edi, esi
je 0x100c2d27
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov dword [eax], eax
mov eax, dword [ebp - 0x34]
push ecx
mov dword [eax + 8], eax
call fcn.100c2660
mov eax, dword [edi + 0xb0]
mov ebx, dword [eax]
lea esi, [edi + 0xac]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], esi
jmp 0x100c2d89
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
test esi, esi
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 4]
je 0x100c2d97
cmp esi, eax
je 0x100c2d9d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, edi
je 0x100c2e11
test esi, esi
jne 0x100c2dab
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x100c2db6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
mov dword [ebp - 0x28], ebx
je 0x100c2dcc
lea eax, [ebx + 4]
mov edx, 1
lock xadd dword [eax], edx
lea esi, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.10073f20
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.10068b40
test ebx, ebx
mov byte [ebp - 4], 3
je 0x100c2d83
lea eax, [ebx + 4]
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100c2d83
test eax, eax
je 0x100c2d83
lea ecx, [eax - 4]
test ecx, ecx
je 0x100c2d83
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
jmp 0x100c2d83
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x2e0]
mov ecx, dword [eax + 0x1b4]
test ecx, ecx
jle 0x100c2e60
mov eax, dword [edi + 0x304]
cmp dword [eax + 0x70], ecx
jle 0x100c2e60
mov ecx, dword [eax + 0x68]
cmp dword [ebp + 0xc], ecx
mov esi, dword [eax + 0x6c]
jle 0x100c2e49
mov ecx, dword [ebp + 0xc]
push esi
add ecx, 0xffffffff
push ecx
mov ebx, edi
call fcn.100c2580
lea edx, [esi - 1]
cmp dword [ebp + 0xc], edx
jge 0x100c2e60
mov eax, dword [ebp + 0xc]
push esi
add eax, 1
push eax
mov ebx, edi
call fcn.100c2580
mov ecx, dword [edi + 0xcc]
mov ebx, dword [ecx]
lea eax, [edi + 0xc8]
mov esi, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
test esi, esi
mov dword [ebp - 0x28], ebx
je 0x100c2e85
cmp esi, dword [ebp - 0x24]
je 0x100c2e8b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [ebp - 0x20]
je 0x100c2ee5
test esi, esi
mov byte [ebp - 4], 5
jne 0x100c2e9e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x100c2ea9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 8]
push eax
call edx
mov dword [ebp - 4], 3
jmp 0x100c2ed3
cmp ebx, dword [esi + 4]
jne 0x100c2ede
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx]
mov edi, dword [ebp + 8]
jmp 0x100c2e79
mov eax, dword [edi + 0xb0]
lea esi, [edi + 0xac]
mov edi, dword [eax]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
jmp 0x100c2f06
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
test esi, esi
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 4]
je 0x100c2f14
cmp esi, eax
je 0x100c2f1a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x100c2f5e
test esi, esi
jne 0x100c2f28
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x100c2f33
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x2c]
call fcn.10073f20
test byte [ebx + 0x34d], 0x20
je 0x100c2f00
mov eax, dword [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.10068ca0
test al, al
je 0x100c2f00
push ebx
call fcn.10067a70
jmp 0x100c2f00
cmp byte [ebp - 0x11], 0
mov esi, dword [ebp + 8]
jne 0x100c2fcd
mov edx, dword [esi + 0xa0]
cmp dword [edx + 0x94], 0
jle 0x100c2fcd
mov eax, dword [esi + 0x304]
test eax, eax
je 0x100c2fc7
mov cl, byte [esi + 0x4c7]
and cl, 7
cmp cl, 5
je 0x100c2fc7
mov ecx, dword [eax + 0x28]
test ecx, ecx
mov edi, dword [eax + 0x64]
jne 0x100c2f9c
xor eax, eax
jmp 0x100c2fa4
mov eax, dword [eax + 0x2c]
sub eax, ecx
sar eax, 3
cmp edi, eax
je 0x100c2fc7
cmp dword [edx + 0x94], 0
jle 0x100c2fcd
mov eax, dword [edx + 0x90]
mov ecx, dword [esi + 0x304]
sub eax, dword [ecx + 0x5c]
mov edx, dword [ecx + 0x64]
sub eax, edx
jne 0x100c2fcd
push esi
call fcn.100cb4d0
test byte [esi + 0x50c], 0x80
mov word [esi + 0x512], 0
je 0x100c2fe5
push esi
call fcn.100cec00
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.100d3370
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x100c3001
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8