Function at 0x10078eef
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100be32f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100cfa9c]
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 0x10078f67
jb 0x10078f50
cmp eax, dword [edi]
jae 0x10078f67
cmp edx, dword [ebx + 0x30]
jae 0x10078f70
test esi, esi
je 0x10078f60
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
jmp 0x100790b1
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 0x10078f8f
ja 0x10078f84
cmp eax, dword [ebx + 0x18]
jbe 0x10078f8f
sub eax, dword [ebx + 0x18]
sbb ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x2c], ecx
jmp 0x10078f98
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x10079029
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 0x10078fc5
mov eax, dword [ebx + 0x34]
dec eax
cmp dword [ebp - 0x10], eax
jb 0x10078fd4
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x10078fd4
mov eax, dword [ebp - 0x2c]
cmp dword [ecx + 0x24], eax
ja 0x10079023
jb 0x10078fd4
cmp dword [ecx + 0x20], esi
ja 0x10079023
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 8]
call fcn.10079266
lea ecx, [ebx + 8]
push dword [eax + 4]
push dword [eax]
call fcn.10079147
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.10037030
push 0x30
pop edx
mov ecx, edi
call fcn.10037004
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, edx
jb 0x10078fa5
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 0x1007904b
ja 0x10079060
cmp eax, ecx
jae 0x10079060
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 0x10079070
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
or dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x100790af
call fcn.1007b17a
mov ecx, dword [eax]
cmp dword [ecx], 4
jbe 0x100790af
mov eax, dword [ebp - 0x14]
mov edx, 0x1002df5d
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], 0x100208f8
push eax
push ecx
push ecx
call fcn.10030d6d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret