Function at 0x10012c30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100298a6
mov eax, dword fs:[0]
push eax
sub esp, 0x3c4
mov eax, dword [0x1003e01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10040550], 0
je 0x10012fa8
mov ebx, dword [0x100a9984]
lea eax, [ebp - 0x3a8]
sub ebx, dword [0x100a9980]
push 2
push eax
sar ebx, 2
mov dword [ebp - 0x3a8], 0
call dword [sym.imp.MSVCP120.dll__Mtx_init]
add esp, 8
test eax, eax
je 0x10012ca4
push eax
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebx + 2]
cmp dword [0x10044608], ebx
xorps xmm0, xmm0
movq qword [ebp - 0x3a4], xmm0
sbb esi, esi
mov dword [ebp - 0x39c], 0
and esi, dword [0x10044608]
add eax, esi
mov dword [ebp - 0x3d0], esi
cmp eax, ebx
mov dword [0x10044608], esi
cmovb ebx, eax
xor ecx, ecx
mov dword [ebp - 0x3c8], ebx
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x3a4], ecx
mov dword [ebp - 0x3a0], edi
mov dword [ebp - 0x39c], ebx
mov edx, dword [ebp - 0x3c8]
mov byte [ebp - 4], 1
cmp esi, edx
jae 0x10012ebe
jmp 0x10012d20
mov eax, dword [0x100a9990]
add eax, esi
cmp eax, dword [ebp - 0x3c8]
cmovb edx, eax
mov dword [ebp - 0x3cc], edx
cmp dword [ebp - 0x3d0], edx
jae 0x10012e14
cmp edi, ebx
jne 0x10012da5
mov eax, ebx
sub eax, edi
sar eax, 3
cmp eax, 1
jae 0x10012da5
sub edi, ecx
mov eax, 0x1fffffff
sar edi, 3
sub eax, edi
cmp eax, 1
jb 0x10012fc4
sub ebx, ecx
mov eax, 0x1fffffff
sar ebx, 3
inc edi
mov ecx, ebx
shr ecx, 1
sub eax, ecx
cmp eax, ebx
jae 0x10012d80
xor ebx, ebx
jmp 0x10012d82
add ebx, ecx
cmp ebx, edi
lea ecx, [ebp - 0x3a4]
cmovb ebx, edi
push ebx
call fcn.100150a0
mov ebx, dword [ebp - 0x39c]
mov edi, dword [ebp - 0x3a0]
mov edx, dword [ebp - 0x3cc]
mov byte [ebp - 4], 2
test edi, edi
je 0x10012df8
lea ecx, [ebp - 0x3c4]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Pad::constructor_void_]
lea eax, [ebp - 0x3a8]
mov dword [ebp - 0x3c4], 0x1003665c
mov dword [ebp - 0x3b4], esi
mov dword [ebp - 0x3b0], eax
push edi
lea ecx, [ebp - 0x3c4]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Pad::_Launch_struct__Thrd_imp_t__]
lea ecx, [ebp - 0x3c4]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Pad::destructor_void_]
mov edx, dword [ebp - 0x3cc]
add edi, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3a4]
inc esi
mov dword [ebp - 0x3a0], edi
cmp esi, edx
jb 0x10012d42
cmp ecx, edi
je 0x10012e7f
lea esi, [ecx + 4]
jmp 0x10012e20
cmp dword [esi], 0
je 0x10012e6f
call dword [sym.imp.MSVCP120.dll__Thrd_current]
push edx
push eax
push dword [esi]
push dword [esi - 4]
call dword [sym.imp.MSVCP120.dll__Thrd_equal]
add esp, 0x10
test eax, eax
je 0x10012e4a
push 5
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Throw_Cpp_error_int_]
add esp, 4
push 0
push dword [esi]
push dword [esi - 4]
call dword [sym.imp.MSVCP120.dll__Thrd_join]
add esp, 0xc
test eax, eax
je 0x10012e69
push 2
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Throw_Cpp_error_int_]
add esp, 4
mov dword [esi], 0
add esi, 8
lea eax, [esi - 4]
cmp eax, edi
jne 0x10012e20
mov ecx, dword [ebp - 0x3a4]
mov eax, ecx
cmp ecx, edi
je 0x10012e96
cmp dword [eax + 4], 0
jne 0x10012fcf
add eax, 8
cmp eax, edi
jne 0x10012e85
mov esi, dword [ebp - 0x3d0]
mov edi, ecx
add esi, dword [0x100a9990]
mov edx, dword [ebp - 0x3c8]
mov dword [ebp - 0x3a0], edi
mov dword [ebp - 0x3d0], esi
cmp esi, edx
jb 0x10012d20
jmp 0x10012ed0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
sub esp, 0x18
mov ecx, esp
push 8
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.p30r_ik
mov byte [ecx], 0
call fcn.100039d0
lea ecx, [ebp - 0x3c0]
call fcn.10019f40
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x10012f0f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x398]
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 0xc
cmp dword [ebp - 0x3ac], 0x10
jb 0x10012f3a
push dword [ebp - 0x3c0]
call esi
add esp, 4
mov ecx, dword [0x1003e054]
lea eax, [ebp - 0x398]
push eax
mov edx, 0x1c
call fcn.10007d60
add esp, 4
jmp 0x10012f66
mov eax, dword [ebp - 0x3c8]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3a4]
mov dword [0x10044608], eax
test ecx, ecx
je 0x10012f98
mov eax, ecx
cmp ecx, edi
je 0x10012f92
cmp dword [eax + 4], 0
jne 0x10012fcf
add eax, 8
cmp eax, edi
jne 0x10012f85
push ecx
call esi
add esp, 4
lea eax, [ebp - 0x3a8]
push eax
call dword [sym.imp.MSVCP120.dll__Mtx_destroy]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002769f
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
call dword [sym.imp.MSVCR120.dll_void___cdecl_terminate_void_]
int3