Function at 0x1009880d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100da8c9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100eedbc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
and dword [ebp - 0x10], 0
lea esi, [ebx + 0x38]
and dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
lea ecx, [ebx + 0x30]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], ecx
cmp edx, dword [ebx + 0x14]
ja 0x1009887d
jb 0x10098867
cmp eax, dword [ebx + 0x10]
jae 0x1009887d
cmp edi, dword [ecx]
jae 0x10098880
test esi, esi
je 0x10098876
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
jmp 0x100989bf
mov dword [ebp - 0x24], ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
cmp edx, dword [ebx + 0x1c]
jb 0x1009889c
ja 0x10098894
cmp eax, dword [ebx + 0x18]
jbe 0x1009889c
sub eax, dword [ebx + 0x18]
sbb edx, dword [ebx + 0x1c]
jmp 0x100988a2
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], edx
test edi, edi
je 0x10098933
mov esi, eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x24]
add ecx, 8
cmp edi, dword [eax]
jbe 0x100988d2
mov eax, dword [ebx + 0x34]
dec eax
cmp dword [ebp - 0x10], eax
jb 0x100988de
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x100988de
cmp dword [ecx + 0x24], edx
ja 0x10098930
jb 0x100988de
cmp dword [ecx + 0x20], esi
ja 0x10098930
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 8]
call fcn.10098b74
lea ecx, [ebx + 8]
push dword [eax + 4]
push dword [eax]
call fcn.10098a55
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov edx, dword [edi]
lea ecx, [edi + 8]
dec dword [ebx + 4]
mov eax, dword [edi + 4]
mov dword [eax], edx
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
call fcn.10042adf
push 0x30
pop edx
mov ecx, edi
call fcn.10042d29
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
inc eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x100988b2
lea esi, [ebx + 0x38]
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, eax
mov eax, dword [ebp - 0x28]
add edi, ecx
adc eax, edx
cmp eax, edx
jb 0x10098959
ja 0x10098955
cmp edi, ecx
jb 0x10098959
xor cl, cl
jmp 0x10098961
or edi, 0xffffffff
mov cl, 1
or eax, 0xffffffff
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], eax
test cl, cl
je 0x10098973
and dword [ebx + 0x10], 0
and dword [ebx + 0x14], 0
test esi, esi
je 0x1009897e
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
or dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100989bd
call fcn.10045373
mov ecx, dword [eax]
cmp dword [ecx], 4
jbe 0x100989bd
mov eax, dword [ebp - 0x14]
mov edx, 0x10035cb2
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10029760
push eax
push ecx
push ecx
call fcn.100382a1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret