Function at 0x100828cf
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cad44
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100dcd6c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
lea esi, [ebx + 0x38]
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, edx
lea edi, [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x14], edx
lea edx, [ebx + 0x30]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x14]
cmp ecx, dword [edi + 4]
ja 0x10082947
jb 0x10082930
cmp eax, dword [edi]
jae 0x10082947
cmp edx, dword [ebx + 0x30]
jae 0x10082950
test esi, esi
je 0x10082940
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
jmp 0x10082a91
lea esi, [ebx + 0x30]
mov dword [ebp - 0x24], esi
lea esi, [ebx + 0x38]
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
cmp ecx, dword [ebx + 0x1c]
jb 0x1008296f
ja 0x10082964
cmp eax, dword [ebx + 0x18]
jbe 0x1008296f
sub eax, dword [ebx + 0x18]
sbb ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x2c], ecx
jmp 0x10082978
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x10082a09
mov esi, eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x24]
add ecx, 8
cmp edx, dword [eax]
jbe 0x100829a5
mov eax, dword [ebx + 0x34]
dec eax
cmp dword [ebp - 0x10], eax
jb 0x100829b4
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x100829b4
mov eax, dword [ebp - 0x2c]
cmp dword [ecx + 0x24], eax
ja 0x10082a03
jb 0x100829b4
cmp dword [ecx + 0x20], esi
ja 0x10082a03
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 8]
call fcn.10082c46
lea ecx, [ebx + 8]
push dword [eax + 4]
push dword [eax]
call fcn.10082b27
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.10053264
push 0x30
pop edx
mov ecx, edi
call fcn.10053386
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, edx
jb 0x10082985
lea esi, [ebx + 0x38]
lea edi, [ebx + 0x10]
mov eax, dword [ebx + 0x18]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, eax
mov eax, dword [ebp - 0x2c]
add eax, ecx
adc ebx, edx
cmp ebx, edx
jb 0x10082a2b
ja 0x10082a40
cmp eax, ecx
jae 0x10082a40
or dword [edi], 0xffffffff
xorps xmm0, xmm0
or dword [edi + 4], 0xffffffff
movlpd qword [ebp - 0x30], xmm0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [edi], eax
mov dword [edi + 4], ebx
test esi, esi
je 0x10082a50
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
or dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x10082a8f
call fcn.10084b3a
mov ecx, dword [eax]
cmp dword [ecx], 4
jbe 0x10082a8f
mov eax, dword [ebp - 0x14]
mov edx, 0x10032678
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100220b8
push eax
push ecx
push ecx
call fcn.100355b5
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret