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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029216
mov eax, dword fs:[0]
push eax
sub esp, 0x3c4
mov eax, dword [0x1003d01c]
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 [0x1003f558], 0
je 0x10012e98
mov ebx, dword [0x100a899c]
lea eax, [ebp - 0x3a8]
sub ebx, dword [0x100a8998]
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 0x10012b94
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 [0x10043610], ebx
xorps xmm0, xmm0
movq qword [ebp - 0x3a4], xmm0
sbb esi, esi
mov dword [ebp - 0x39c], 0
and esi, dword [0x10043610]
add eax, esi
mov dword [ebp - 0x3d0], esi
cmp eax, ebx
mov dword [0x10043610], 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 0x10012dae
jmp 0x10012c10
mov eax, dword [0x100a89a8]
add eax, esi
cmp eax, dword [ebp - 0x3c8]
cmovb edx, eax
mov dword [ebp - 0x3cc], edx
cmp dword [ebp - 0x3d0], edx
jae 0x10012d04
cmp edi, ebx
jne 0x10012c95
mov eax, ebx
sub eax, edi
sar eax, 3
cmp eax, 1
jae 0x10012c95
sub edi, ecx
mov eax, 0x1fffffff
sar edi, 3
sub eax, edi
cmp eax, 1
jb 0x10012eb4
sub ebx, ecx
mov eax, 0x1fffffff
sar ebx, 3
inc edi
mov ecx, ebx
shr ecx, 1
sub eax, ecx
cmp eax, ebx
jae 0x10012c70
xor ebx, ebx
jmp 0x10012c72
add ebx, ecx
cmp ebx, edi
lea ecx, [ebp - 0x3a4]
cmovb ebx, edi
push ebx
call fcn.10014fa0
mov ebx, dword [ebp - 0x39c]
mov edi, dword [ebp - 0x3a0]
mov edx, dword [ebp - 0x3cc]
mov byte [ebp - 4], 2
test edi, edi
je 0x10012ce8
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], 0x100355dc
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 0x10012c32
cmp ecx, edi
je 0x10012d6f
lea esi, [ecx + 4]
jmp 0x10012d10
cmp dword [esi], 0
je 0x10012d5f
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 0x10012d3a
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 0x10012d59
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 0x10012d10
mov ecx, dword [ebp - 0x3a4]
mov eax, ecx
cmp ecx, edi
je 0x10012d86
cmp dword [eax + 4], 0
jne 0x10012ebf
add eax, 8
cmp eax, edi
jne 0x10012d75
mov esi, dword [ebp - 0x3d0]
mov edi, ecx
add esi, dword [0x100a89a8]
mov edx, dword [ebp - 0x3c8]
mov dword [ebp - 0x3a0], edi
mov dword [ebp - 0x3d0], esi
cmp esi, edx
jb 0x10012c10
jmp 0x10012dc0
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.10019e50
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x10012dff
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 0x10012e2a
push dword [ebp - 0x3c0]
call esi
add esp, 4
mov ecx, dword [0x1003d054]
lea eax, [ebp - 0x398]
push eax
mov edx, 0x1c
call fcn.10007c80
add esp, 4
jmp 0x10012e56
mov eax, dword [ebp - 0x3c8]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3a4]
mov dword [0x10043610], eax
test ecx, ecx
je 0x10012e88
mov eax, ecx
cmp ecx, edi
je 0x10012e82
cmp dword [eax + 4], 0
jne 0x10012ebf
add eax, 8
cmp eax, edi
jne 0x10012e75
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.1002711f
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