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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov edi, ecx
mov esi, dword [ecx]
mov ecx, esi
call fcn.004a06c4
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], esi
mov esi, dword [esi + 0x100]
mov dword [esp + 0x2c], edi
mov eax, dword [edi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4a021b
mov ecx, dword [esi + 0x84]
mov edx, dword [ecx + 8]
dec edx
and edx, 0xfffffff8
add eax, edx
add eax, 8
push eax
call dword [ecx + 0x14]
add esp, 4
lea eax, [esi + 0x28]
mov dword [esp], eax
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x530b28]
test eax, 0x7fffffff
jne 0x4a0628
xor eax, eax
mov edi, eax
mov al, byte [esi + 0x2c]
mov dword [esp + 0x54], 0
lea ebp, [esi + 0x90]
lea eax, [esi + 0x30]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ebp
mov ecx, dword [esp + 4]
call fcn.004a15b6
cmp dl, 2
jne 0x4a02ba
lock inc dword [esi + 0x9c]
mov cl, byte [esi + 0x78]
mov ebx, edi
mov edi, dword [esp]
test cl, cl
jne 0x4a0317
test bl, bl
setne bl
mov ecx, ebp
mov edx, edi
push dword [esi + 0x18]
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.0049f680
add esp, 0xc
mov cl, byte [esi + 0x2c]
test cl, cl
jne 0x4a063e
mov ecx, dword [esi + 0x60]
test ecx, ecx
jne 0x4a02fc
mov cl, byte [esi + 0x78]
test cl, cl
setne dl
or al, dl
jne 0x4a0275
jmp 0x4a0345
mov ebx, eax
lock dec dword [esi + 0xa0]
xor edx, edx
mov eax, edi
test al, al
setne dl
mov edi, dword [esp]
mov ecx, edi
call fcn.00426b01
mov ecx, ebx
call fcn.004a45f7
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x530b28]
test eax, 0x7fffffff
jne 0x4a030e
xor eax, eax
mov edi, eax
mov al, byte [esi + 0x2c]
jmp 0x4a0258
mov edi, ebx
dec ecx
mov dword [esi + 0x60], ecx
cmp byte [esi + 0x78], 0
je 0x4a0258
jmp 0x4a0319
call fcn.004ce8a0
xor al, 1
jmp 0x4a02f2
mov edi, ebx
mov ecx, dword [esp + 4]
call fcn.004a15b6
cmp dl, 2
jne 0x4a043f
lock inc dword [esi + 0x9c]
mov eax, edi
test al, al
setne bl
mov ebp, dword [esp + 0xc]
mov edi, dword [esp]
jmp 0x4a0556
mov dword [esp + 0x20], ebx
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
push dword [esp + 0x10]
push dword [esi + 0x5c]
push dword [esi + 0x58]
call fcn.004a2c72
add esp, 0xc
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
mov dword [esp + 4], edx
and edx, eax
shr eax, 0x19
movd xmm0, eax
pxor xmm1, xmm1
pshufb xmm0, xmm1
lea eax, [ecx - 0x10]
mov dword [esp + 0x30], eax
xor eax, eax
pcmpeqd xmm1, xmm1
mov dword [esp + 8], ecx
mov dword [esp + 0x24], eax
movdqu xmm2, xmmword [ecx + edx]
movdqa xmm3, xmm2
pcmpeqb xmm3, xmm0
pmovmskb edi, xmm3
test di, di
je 0x4a03ce
bsf eax, edi
lea ecx, [edi - 1]
and ecx, edi
add eax, edx
and eax, dword [esp + 4]
mov ebx, eax
shl ebx, 4
mov ebp, dword [esp + 0x30]
sub ebp, ebx
mov edi, ecx
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebp]
jne 0x4a03a3
jmp 0x4a03f8
pcmpeqb xmm2, xmm1
pmovmskb eax, xmm2
test eax, eax
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
jne 0x4a0634
add edx, eax
add edx, 0x10
add eax, 0x10
and edx, dword [esp + 4]
mov ecx, dword [esp + 8]
jmp 0x4a038e
neg eax
shl eax, 4
sar ebx, 4
lea edx, [ebx - 0x10]
and edx, dword [esp + 4]
mov ecx, dword [esp + 8]
movdqu xmm0, xmmword [ecx + edx]
pcmpeqd xmm1, xmm1
pcmpeqb xmm0, xmm1
psllw xmm0, 7
pmovmskb edi, xmm0
movdqu xmm0, xmmword [ecx + ebx]
pcmpeqb xmm0, xmm1
pmovmskb ecx, xmm0
test edi, edi
je 0x4a04ba
bsr bp, di
xor ebp, 0xf
jmp 0x4a04be
mov ebp, eax
mov ebx, edx
lock dec dword [esi + 0xa0]
xor edx, edx
mov eax, edi
test al, al
setne dl
mov edi, dword [esp]
mov ecx, edi
call fcn.00426b01
test bl, 1
jne 0x4a046b
mov ecx, ebp
call fcn.004a45f7
jmp 0x4a0480
lock sub dword [ebp], 0x40
jb 0x4a0686
mov eax, dword [ebp + 8]
push ebp
call dword [eax + 0x18]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x530b28]
test eax, 0x7fffffff
jne 0x4a04af
xor edi, edi
mov al, byte [esi + 0x2c]
mov ecx, dword [esp + 4]
call fcn.004a15b6
mov ebp, eax
mov ebx, edx
cmp dl, 2
jne 0x4a0443
jmp 0x4a032b
call fcn.004ce8a0
xor al, 1
mov edi, eax
jmp 0x4a0495
mov bp, 0x10
mov edi, dword [esp]
add eax, dword [esp + 8]
or ecx, 0x10000
bsf ecx, ecx
add ebp, ecx
mov cl, 0x80
cmp bp, 0xf
ja 0x4a04dd
inc dword [esi + 0x48]
mov cl, 0xff
mov ebp, dword [esp + 8]
mov byte [ebp + ebx], cl
mov byte [ebp + edx + 0x10], cl
dec dword [esi + 0x4c]
mov ecx, dword [eax - 0xc]
movq xmm0, qword [eax - 8]
movq qword [esp + 0x3c], xmm0
test ecx, ecx
mov ebp, dword [esp + 0xc]
je 0x4a0514
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
jmp 0x4a0516
xor ecx, ecx
mov eax, dword [esi + 0x70]
mov dword [esp + 0x44], eax
movsd xmm0, qword [esi + 0x68]
movsd qword [esp + 0x3c], xmm0
mov dword [esi + 0x68], ecx
movsd xmm0, qword [esp + 0x18]
movsd qword [esi + 0x6c], xmm0
lea ebx, [esp + 0x54]
mov ecx, ebx
call fcn.004a56b8
mov eax, dword [esp + 0x44]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x3c]
movsd qword [ebx], xmm0
mov ebx, dword [esp + 0x20]
lock dec dword [esi + 0x98]
xor eax, eax
dec eax
lock xadd dword [esi + 0x9c], eax
mov ecx, dword [esi + 0x9c]
cmp eax, ecx
jb 0x4a069a
cmp byte [esi + 0x78], 0
je 0x4a058d
mov eax, dword [esi + 0x98]
test eax, eax
jne 0x4a058d
push ebp
call dword [sym.imp.KERNEL32.dll_WakeConditionVariable]
movzx edx, bl
mov ecx, edi
call fcn.00426b01
mov eax, dword [esi + 0x88]
test eax, eax
je 0x4a05ba
mov ecx, dword [esi + 0x8c]
mov edx, dword [ecx + 8]
dec edx
and edx, 0xfffffff8
add eax, edx
add eax, 8
push eax
call dword [ecx + 0x14]
add esp, 4
cmp dword [esp + 0x54], 0
je 0x4a05f6
lea ecx, [esp + 0x54]
call fcn.004a0944
test eax, eax
je 0x4a05f6
mov esi, eax
mov edi, edx
push eax
call dword [edx]
add esp, 4
cmp dword [edi + 4], 0
je 0x4a05f6
cmp dword [edi + 8], 9
jb 0x4a05e7
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x530ac8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + 4]
lock dec dword [ecx]
jne 0x4a0607
call fcn.0049ff31
lea ecx, [esp + 0x34]
call fcn.00449959
mov eax, dword [esp + 0x28]
lock dec dword [eax]
jne 0x4a0620
mov ecx, dword [esi]
call fcn.0049fe14
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004ce8a0
xor al, 1
jmp 0x4a023a
xor ecx, ecx
mov edi, dword [esp]
jmp 0x4a0516
xor al, 1
lea esi, [esp + 0x3c]
mov dword [esi], edi
mov byte [esi + 4], bl
movzx ecx, word [esp + 0x18]
mov word [esi + 5], cx
mov cl, byte [esp + 0x1a]
mov byte [esi + 7], cl
mov byte [esi + 8], al
movzx eax, word [esp + 0x15]
mov word [esi + 9], ax
mov al, byte [esp + 0x17]
mov byte [esi + 0xb], al
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x4fe0a0
push 0x4fdb80
push esi
call fcn.004cbc80
mov ecx, str.assertion_failed:_prev.ref_count_____1
mov edx, 0x27
push 0x4fdf7c
call fcn.004cb970
lea ecx, [esp + 0x3c]
mov dword [ecx], str.num_idle_threads_underflowed_on_thread_exit
mov dword [ecx + 4], 1
xor eax, eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 8], str._rustc_a4472498d7e88041f6206faf4503eb1f246fd427librarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_store
mov dword [ecx + 0xc], eax
mov edx, 0x4fe0e4
call fcn.004cb8c0