Function at 0x64ec70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov edi, dword [edx]
mov ebx, ecx
mov dword [esp + 0x70], edx
lea esi, [edi + 8]
push esi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x94bfbc]
test eax, 0x7fffffff
jne 0x64f039
mov dword [esp + 0x28], 0
movzx eax, byte [edi + 0xc]
test al, al
jne 0x64f050
lea eax, [edi + 0x160]
lea edx, [edi + 0x7c]
lea ecx, [esp + 8]
push eax
call fcn.00491400
add esp, 4
cmp dword [esp + 8], 0
je 0x64ede0
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], esi
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov eax, dword [0x94bccc]
test eax, eax
je 0x64ee0c
inc dword [edi + 0x1a8]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], esi
cmp dword [edi + 0x198], ebx
jbe 0x64f090
mov ecx, dword [edi + 0x194]
test ecx, ecx
je 0x64f090
imul edx, ebx, 0xf0
mov eax, dword [ecx + edx]
xor eax, 3
or eax, dword [ecx + edx + 4]
je 0x64f090
add ecx, edx
cmp dword [ecx + 0xcc], esi
jne 0x64f090
movzx edx, byte [ecx + 0x20]
cmp dl, 6
jae 0x64ed73
mov eax, edx
add al, 0xfd
cmp al, 3
setae dh
cmp al, 1
sete al
test dl, dl
jne 0x64ed73
or dh, al
je 0x64ed73
cmp byte [ecx + 0x21], 2
jne 0x64ed73
mov edx, dword [edi + 0x34]
test edx, edx
je 0x64f14c
dec edx
mov dword [edi + 0x34], edx
lock inc dword [edi]
jle 0x64f0dc
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], esi
mov eax, dword [ecx]
xor eax, 3
or eax, dword [ecx + 4]
je 0x64f096
cmp dword [ecx + 0xcc], esi
jne 0x64f096
mov eax, dword [ecx + 0xd0]
cmp eax, 0xffffffff
je 0x64f0de
inc eax
mov dword [ecx + 0xd0], eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 4]
lock inc dword [eax]
jle 0x64f0dc
mov ecx, dword [esp + 0x68]
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], esi
mov esi, dword [esp + 0x6c]
mov dword [ecx + 0xc], eax
cmp byte [esp + 0x28], 0
jne 0x64edfd
jmp 0x64eded
mov dword [ebx], 0
cmp byte [esp + 0x28], 0
jne 0x64edfd
mov eax, dword [0x94bfbc]
test eax, 0x7fffffff
jne 0x64f07a
push esi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x94acfc]
test al, al
je 0x64ecf3
movzx eax, al
cmp eax, 1
je 0x64ee42
cmp eax, 2
je 0x64ee92
mov ecx, 0x94acf4
call fcn.007d3740
test al, al
je 0x64ecf3
movzx eax, al
cmp eax, 2
je 0x64ee92
mov eax, dword [0x94acf4]
mov ecx, dword [0x94bfb8]
cmp ecx, 2
jne 0x64ecf3
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x64ee82
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 8]
dec ecx
and ecx, 0xfffffff8
lea edx, [ecx + edx + 8]
mov ecx, dword [esp + 4]
push eax
push edx
call dword [ecx + 0x14]
add esp, 8
test al, al
je 0x64ecf3
mov eax, dword [0x94acf4]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x64f138
mov edx, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], esi
mov dword [esp + 4], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
movlps qword [esp + 0x5c], xmm0
mov dword [esp + 0x64], 0
cmp dword [edi + 0x198], ebx
jbe 0x64f0f2
mov edx, dword [edi + 0x194]
test edx, edx
je 0x64f0f2
imul ecx, ebx, 0xf0
mov eax, dword [edx + ecx]
xor eax, 3
or eax, dword [edx + ecx + 4]
je 0x64f0f2
add edx, ecx
cmp dword [edx + 0xcc], esi
jne 0x64f0f2
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], esi
mov eax, dword [edx]
xor eax, 3
or eax, dword [edx + 4]
je 0x64f0f2
lea ecx, [edx + 0xcc]
cmp dword [ecx], esi
jne 0x64f0f2
mov eax, dword [esp + 4]
mov dword [esp + 0x2c], 0x8aafe0
mov dword [esp + 0x30], 2
mov dword [esp + 0x3c], 0
add edx, 0x20
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 0x646ce0
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], 0x647950
add eax, 0x1c
mov dword [esp + 0x24], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x38], 2
mov dword [esp + 0x74], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x7c], 0x8a682c
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov eax, dword [0x94bfb8]
cmp eax, 2
jne 0x64ecf3
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x64f005
mov eax, dword [ecx + 8]
dec eax
and eax, 0xfffffff8
lea edx, [eax + edx + 8]
lea eax, [esp + 8]
mov dword [esp + 0x24], edx
push eax
push edx
mov dword [esp + 0xc], ecx
call dword [ecx + 0x28]
add esp, 8
test al, al
je 0x64ecf3
lea eax, [esp + 8]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0xc]
call dword [eax + 0x2c]
add esp, 8
jmp 0x64ecf3
call fcn.007d1b30
xor al, 1
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xc]
test al, al
je 0x64ecb5
mov eax, dword [esp + 0x28]
mov dword [esp + 8], esi
mov ecx, 0x93b384
mov edx, 0x2b
mov byte [esp + 0xc], al
lea eax, [esp + 8]
push 0x8aafa4
push 0x8abf8c
push eax
call fcn.007c1f60
call fcn.007d1b30
test al, al
jne 0x64edfd
mov byte [edi + 0xc], 1
jmp 0x64edfd
lea eax, [esp + 0x58]
jmp 0x64f0f6
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x58]
mov dword [esp + 8], 0x828150
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov edx, 0x828168
mov dword [esp + 0x10], ecx
lea ecx, [esp + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x47c5e0
mov dword [esp + 0x14], 1
call fcn.007c1b50
ud2
mov ecx, str.assertion_failed:_self.ref_count___usize::MAX
mov edx, 0x2d
push 0x828298
call fcn.007c1ca0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x2c]
mov dword [esp + 8], 0x828150
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov edx, 0x828158
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x47c5e0
mov dword [esp + 0x10], ecx
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.007c1b50
mov ecx, 0x8a6758
mov edx, 0x22
push 0x8aafb4
call fcn.007c2000
mov ecx, str.assertion_failed:_self.num_remote_reset_streams___0
mov edx, 0x33
push 0x8269fc
call fcn.007c1ca0