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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x539bb0
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov dword [ebp - 0x98], eax
mov byte [ebp - 0x94], 1
mov dl, 1
xor eax, eax
lea ecx, [edi + 0x28]
lock cmpxchg byte [edi + 0x28], dl
mov dword [ebp - 0x70], ecx
je 0x521f9d
mov byte [ebp - 0x21], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x40], edi
call fcn.0053e0c0
mov edi, dword [ebp - 0x40]
cmp byte [edi + 0x78], 0
je 0x521ff8
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x64], eax
lock sub dword [eax], 0x40
jb 0x522678
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x10], 1
push eax
call ecx
add esp, 4
mov eax, dword [ebp - 0x48]
mov byte [eax], 4
mov ecx, dword [ebp - 0x70]
xor edx, edx
mov al, 1
lock cmpxchg byte [ecx], dl
je 0x5225f9
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x10], 0
call fcn.0053dda0
jmp 0x5225f9
mov ebx, dword [ebp - 0x98]
movzx eax, byte [ebp - 0x94]
mov dword [ebp - 0x64], ebx
mov byte [ebp - 0x60], al
mov byte [ebp - 0x3c], al
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x3c]
cmp eax, ecx
jne 0x522039
lea ecx, [edi + 0x30]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], 0x11
mov dword [ebp - 0x40], edi
call fcn.00522cb0
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + 0x38]
xor esi, esi
add edx, eax
cmp edx, ecx
cmovae esi, ecx
inc eax
sub edx, esi
mov esi, dword [edi + 0x34]
mov dword [esi + edx*8], ebx
mov bh, byte [ebp - 0x3c]
mov byte [esi + edx*8 + 4], bh
mov dword [edi + 0x3c], eax
lock inc dword [edi + 0xa0]
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x52209a
lock dec dword [edi + 0x9c]
inc dword [edi + 0x60]
mov edx, dword [edi + 0x90]
test edx, edx
je 0x5225d6
add edi, 0x90
mov dword [ebp - 0x10], 1
mov ecx, edi
call fcn.0053d4f0
jmp 0x5225d6
mov eax, dword [edi + 0x98]
cmp eax, dword [edi + 0x94]
je 0x5225d6
mov edx, dword [edi + 0x64]
test edx, edx
je 0x52269b
lock inc dword [edx]
jle 0x5227b0
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x9c], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov edx, dword [edi + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x24]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov esi, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x36], 0
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x64]
dec esi
and esi, 0xfffffff8
lea edx, [esi + edx + 8]
push edx
push ecx
mov dword [ebp - 0x40], edi
call dword [eax + 0x14]
add esp, 8
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 8]
test eax, eax
je 0x52211b
mov esi, ecx
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x6c], ecx
jmp 0x52211b
mov ecx, dword [ebp - 0x5c]
mov edx, 1
mov ebx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x2c]
lock xadd dword [ecx], edx
mov ecx, 1
cmp dword [ebp - 0x28], 0
jne 0x522140
xor ecx, ecx
test edx, edx
js 0x5227b0
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x3c]
test eax, eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x84], ecx
jne 0x5221a1
mov byte [ebp - 0x1d], 1
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x10], 5
call fcn.0051b3a0
mov dword [ebp - 0x6c], eax
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x68]
cmp ebx, 0x80000000
jne 0x5221ad
xor ecx, ecx
jmp 0x522211
mov eax, dword [ebp - 0x44]
cmp eax, 8
jae 0x5221cc
xor edx, edx
test eax, eax
je 0x5221c8
cmp byte [edi + edx], 0
je 0x5221db
inc edx
cmp eax, edx
jne 0x5221bb
mov edx, eax
xor eax, eax
jmp 0x5221e0
mov edx, edi
xor ecx, ecx
push eax
call fcn.00458680
add esp, 4
jmp 0x5221e0
mov eax, 1
test eax, eax
jne 0x52277a
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], edi
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x10], 5
mov dword [ebp - 0x5c], eax
call fcn.0044e4b0
mov ecx, eax
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x10], 5
call fcn.0050e8e0
lock inc dword [eax]
mov esi, eax
jle 0x5227b0
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
xor ecx, ecx
mov edx, 0x18
movzx eax, byte [0x5b9430]
call fcn.0051b940
test eax, eax
mov dword [ebp - 0x28], esi
je 0x5226be
movsd xmm0, qword [ebp - 0x54]
movsd qword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x64]
movq xmm1, qword [ebp - 0x5c]
movq qword [eax + 8], xmm1
movq qword [eax], xmm0
lock inc dword [eax]
jle 0x5227b0
movzx ecx, byte [0x5b936c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
test cl, cl
je 0x5222e0
mov byte [0x5b936c], 1
mov byte [ebp - 0x22], 1
mov dword [ebp - 0x10], 9
call fcn.00519d30
test eax, eax
je 0x5226f4
mov ecx, dword [eax]
mov dword [eax], 0
test ecx, ecx
je 0x5222e0
lock inc dword [ecx]
mov dword [ebp - 0x2c], ecx
jle 0x5227b0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0x32], 0
mov byte [ebp - 0x33], 1
mov dword [ebp - 0x10], 0xa
call fcn.00519c50
mov esi, dword [ebp - 0x6c]
test eax, eax
je 0x52230a
lock dec dword [eax]
jne 0x52230a
mov ecx, eax
call fcn.004148e0
movq xmm0, qword [ebp - 0x8c]
movq xmm1, qword [ebp - 0x84]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
movq qword [ebp - 0x50], xmm1
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], ecx
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x522347
lock inc dword [ecx + 0xc]
jle 0x52271d
movzx eax, byte [0x5b9430]
xor ecx, ecx
mov edx, 0x1c
call fcn.0051b940
test eax, eax
je 0x5226d9
mov ecx, dword [ebp - 0x4c]
mov edx, esi
mov dword [eax + 0x18], ecx
lea ecx, [ebp - 0xb8]
movsd xmm0, qword [ebp - 0x54]
movsd qword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x64]
movq xmm1, qword [ebp - 0x5c]
movq qword [eax + 8], xmm1
movq qword [eax], xmm0
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x10], 0xb
push 0x5a6070
push eax
call fcn.0051b4c0
add esp, 8
movzx edx, byte [ebp - 0xb8]
mov edi, dword [ebp - 0x40]
cmp edx, 4
jne 0x5224fc
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x78], eax
lock inc dword [edi + 0x98]
inc dword [edi + 0x74]
mov ebx, dword [edi + 0x50]
mov edx, dword [edi + 0x54]
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov ecx, ebx
mov dword [ebp - 0x2c], edx
push dword [ebp - 0x3c]
push esi
mov dword [ebp - 0x28], eax
push eax
call fcn.00522ec0
add esp, 0xc
cmp dword [edi + 0x48], 0
mov ecx, eax
mov eax, edi
jne 0x522427
mov dword [ebp - 0x30], ecx
lea ecx, [eax + 0x40]
mov dword [ebp - 0x10], 2
mov edx, ebx
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00546430
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
add esp, 0xc
mov edi, dword [eax + 0x40]
mov ebx, dword [eax + 0x44]
mov eax, ecx
pcmpeqd xmm1, xmm1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x28], 0
shr eax, 0x19
movd xmm0, eax
mov dword [ebp - 0x6c], eax
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
lea eax, [edi - 0x10]
mov dword [ebp - 0x30], edi
pshufd xmm0, xmm0, 0
mov dword [ebp - 0x2c], eax
and ecx, ebx
mov edx, ebx
movdqu xmm2, xmmword [edi + ecx]
mov eax, ecx
movdqa xmm3, xmm2
pcmpeqb xmm3, xmm0
pmovmskb ebx, xmm3
nop dword [eax]
test bx, bx
je 0x5224aa
tzcnt esi, ebx
mov edi, dword [ebp - 0x2c]
lea ecx, [ebx - 1]
add esi, eax
and ecx, ebx
and esi, edx
mov ebx, esi
shl ebx, 4
sub edi, ebx
mov ebx, dword [ebp - 0x3c]
cmp dword [edi], ebx
mov ebx, ecx
jne 0x522480
jmp 0x522595
cmp dword [ebp - 0x28], 1
mov ebx, edx
mov dword [ebp - 0x28], 1
je 0x5224d2
pmovmskb ecx, xmm2
xor edx, edx
test ecx, ecx
setne dl
tzcnt ecx, ecx
add ecx, eax
mov dword [ebp - 0x28], edx
and ecx, ebx
mov dword [ebp - 0x68], ecx
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x30]
pcmpeqb xmm2, xmm1
pmovmskb ecx, xmm2
test ecx, ecx
jne 0x52261d
mov ecx, eax
mov eax, dword [ebp - 0x44]
lea ecx, [ecx + eax + 0x10]
add eax, 0x10
mov dword [ebp - 0x44], eax
jmp 0x522462
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x30]
movzx ebx, byte [ebp - 0xb5]
movzx esi, word [ebp - 0xb7]
mov dword [ebp - 0x3c], eax
lock dec dword [ecx]
jne 0x52253c
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x44], esi
call fcn.005205d0
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
shl esi, 8
shl ebx, 0x18
or ebx, esi
or ebx, edx
lock dec dword [ecx]
jne 0x522553
call fcn.0050eef0
mov eax, dword [ebp - 0x3c]
lea esi, [ebp - 0x78]
mov dword [ebp - 0x78], ebx
mov ecx, esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], 0
call fcn.0046ee10
cmp al, 0xd
jne 0x52260d
mov eax, dword [edi + 0x98]
test eax, eax
je 0x52260d
mov dword [ebp - 0x10], 1
push esi
call fcn.00510ba0
add esp, 4
jmp 0x5225d6
mov ecx, dword [ebp - 0x30]
neg esi
shl esi, 4
mov eax, dword [ecx + esi - 4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x74]
movsd xmm0, qword [ecx + esi - 0xc]
movsd qword [ebp - 0x64], xmm0
mov dword [ecx + esi - 4], eax
movsd xmm0, qword [ebp - 0x7c]
movsd qword [ecx + esi - 0xc], xmm0
cmp dword [ebp - 0x64], 0
je 0x5225d6
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x10], 1
call fcn.00520500
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x70]
xor edx, edx
mov byte [eax], 5
mov al, 1
lock cmpxchg byte [ecx], dl
je 0x5225f9
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x10], 0
call fcn.0053dda0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ebx
mov dword [eax + 4], ecx
jmp 0x521fd2
mov edx, dword [ebp - 0x68]
movzx ecx, byte [edi + edx]
test cl, cl
js 0x522638
movdqa xmm0, xmmword [edi]
pmovmskb eax, xmm0
tzcnt edx, eax
movzx ecx, byte [edi + edx]
and cl, 1
movzx eax, cl
mov ecx, dword [ebp - 0x6c]
sub dword [esi + 0x48], eax
lea eax, [edx - 0x10]
and eax, ebx
mov byte [edi + edx], cl
mov byte [eax + edi + 0x10], cl
mov ecx, dword [ebp - 0x3c]
shl edx, 4
mov eax, edi
inc dword [esi + 0x4c]
sub eax, edx
neg edx
mov dword [eax - 0x10], ecx
movsd xmm0, qword [ebp - 0x7c]
movsd qword [edi + edx - 0xc], xmm0
mov ecx, dword [ebp - 0x74]
mov dword [eax - 4], ecx
jmp 0x5225d6
mov dword [ebp - 0x10], 0x10
mov ecx, str.assertion_failed:_prev.ref_count_____1
mov edx, 0x27
push 0x5a81f8
call fcn.0053bbd0
add esp, 4
jmp 0x5227b0
mov dword [ebp - 0x10], 1
mov ecx, str.assertion_failed:_shared.shutdown_tx.is_some__C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.37.0_src_runtime_blockingpool.rs
mov edx, 0x2e
push 0x5a8394
call fcn.0053bbd0
add esp, 4
jmp 0x5227b0
mov ecx, 4
mov edx, 0x18
mov dword [ebp - 0x10], 0xd
call fcn.0053b730
jmp 0x5227b0
mov ecx, 4
mov edx, 0x1c
mov dword [ebp - 0x10], 0xc
call fcn.0053b730
jmp 0x5227b0
mov byte [ebp - 0x22], 1
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
mov edx, 0x46
push 0x5a4244
push 0x5a37ac
lea eax, [ebp - 0x64]
push eax
call fcn.0053be90
add esp, 0xc
jmp 0x5227b0
add ecx, 8
xor edx, edx
mov byte [ebp - 0x20], 1
mov dword [ebp - 0x10], 0xb
call fcn.00511590
lea ecx, [ebp - 0xb8]
mov edx, 0x5a3b84
mov dword [ebp - 0xb8], 0x5a3b5c
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xb0], str.Index_out_of_bounds
mov dword [ebp - 0xac], 0
mov byte [ebp - 0x20], 1
call fcn.0053ba80
jmp 0x5227b0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x10], 0xe
mov ecx, str.thread_name_may_not_contain_interior_null_bytes
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
mov edx, 0x2f
push 0x5a6060
push 0x5a6254
lea eax, [ebp - 0x64]
push eax
call fcn.0053be90
add esp, 0xc
ud2