Function at 0x10020790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10027d2d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x10037018]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
push 0x100382a4
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
mov edi, dword [ebp + 8]
mov ebx, dword [edi]
mov edx, dword [ebx + 0xc]
mov ecx, dword [esi + 4]
add esp, 4
call fcn.10022270
mov esi, eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
mov eax, edi
call fcn.1001af00
mov edi, dword [esi + 4]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], eax
mov dword [esi], ecx
xor esi, esi
cmp edi, esi
je 0x10020833
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x10020833
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10020833
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov ebx, dword [ebx + 0x1c]
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
xor edx, edx
sar eax, 3
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], edx
cmp eax, esi
ja 0x10020877
push 0x100382a4
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x14]
xor esi, esi
cmp eax, edx
jbe 0x10020a7e
mov ecx, dword [ecx + edx*8]
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
sar ecx, 3
test ecx, ecx
je 0x10020a7e
mov edx, dword [eax]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x18], edx
test esi, esi
je 0x100208d8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100208d8
lea edi, [ecx + 1]
lea ebx, [esi + 4]
mov eax, ecx
lock cmpxchg dword [ebx], edi
cmp eax, ecx
je 0x100208cc
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x100208b3
jmp 0x100208d8
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x50], 0
mov edx, dword [esp + 0x28]
push sym.libBasic.dll_private:_static_void___cdecl_DhTaskPool::DoInitOncePool_void_
push 0x1003834c
mov dword [edx + 8], 2
call dword [sym.imp.pthreadVC2.dll_pthread_once]
mov eax, dword [0x1003835c]
mov esi, eax
add eax, 0x28
mov dword [esp + 0x24], eax
mov eax, dword [eax]
add eax, 4
push eax
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
mov ebx, dword [esi + 0x20]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
add ecx, eax
add esp, 0xc
test cl, 1
jne 0x10020937
add eax, 2
shr eax, 1
cmp dword [ebx + 8], eax
ja 0x10020937
call fcn.1001efa0
mov edi, dword [ebx + 0x10]
add edi, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov esi, edi
shr esi, 1
cmp eax, esi
ja 0x1002094a
sub esi, eax
mov edx, dword [ebx + 4]
cmp dword [edx + esi*4], 0
jne 0x1002096c
push 0x10
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x10020a89
mov ecx, dword [ebx + 4]
mov dword [ecx + esi*4], eax
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
and edi, 1
lea edi, [eax + edi*8]
mov dword [esp + 0x18], edi
mov byte [esp + 0x50], 1
mov esi, dword [esp + 0x2c]
test edi, edi
je 0x10020a00
mov dword [edi], 0
mov dword [edi + 4], 0
test esi, esi
je 0x10020a00
mov ecx, dword [esi + 4]
lea edx, [esi + 4]
test ecx, ecx
je 0x100209fc
lea esi, [ecx + 1]
mov edi, edx
mov eax, ecx
lock cmpxchg dword [edi], esi
cmp eax, ecx
je 0x100209bb
mov ecx, dword [edx]
test ecx, ecx
jne 0x100209a4
jmp 0x100209fc
mov edi, dword [esp + 0x18]
mov esi, dword [edi + 4]
test esi, esi
je 0x100209ef
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100209ef
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100209ef
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [edi + 4], ecx
mov dword [edi], edx
mov esi, dword [esp + 0x2c]
inc dword [ebx + 0x10]
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
add eax, 8
push eax
call dword [sym.imp.pthreadVC2.dll_pthread_cond_signal]
mov ecx, dword [edi]
add ecx, 4
add esp, 4
push ecx
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
add esp, 4
mov dword [esp + 0x50], 0xffffffff
test esi, esi
je 0x10020a5a
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x10020a5a
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10020a5a
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x14]
sub eax, ecx
inc edx
sar eax, 3
mov dword [esp + 0x14], edx
cmp edx, eax
jb 0x10020871
jmp 0x1002084e
push str.invalid_vector_T__subscript
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xout_of_range_char_const__]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], 0
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x1002d080
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3