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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x7c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10159fc0
mov eax, dword [ebp + 0xc]
lea esi, [ebp - 0x18]
movzx ecx, byte [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov edi, dword fs:[0]
mov dword [ebp - 0x18], edi
mov dword fs:[0], esi
mov dword [ebp - 0x50], edx
mov byte [ebp - 0x4c], cl
mov cl, 1
mov esi, dword [eax]
lea eax, [esi + 0x28]
mov dword [ebp - 0x34], eax
xor eax, eax
lock cmpxchg byte [esi + 0x28], cl
mov dword [ebp - 0x24], esi
je 0x10158c0d
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 0
push dword [ebp - 0x34]
call fcn.101cba30
mov esi, dword [ebp - 0x24]
add esp, 4
mov eax, dword [0x10284a30]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x10158cc4
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 0
call fcn.101cb9a0
mov esi, dword [ebp - 0x24]
xor al, 1
mov dword [ebp - 0x3c], eax
movzx eax, byte [esi + 0x29]
cmp byte [esi + 0x78], 0
je 0x10158cd9
mov ecx, dword [ebp - 0x50]
lock sub dword [ecx], 0x40
jb 0x10158ff5
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], 1
push ecx
call eax
add esp, 4
mov eax, dword [ebp + 8]
mov byte [eax], 4
cmp byte [ebp - 0x3c], 0
jne 0x10158c9a
mov eax, dword [0x10284a30]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x10158c9a
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 0
call fcn.101cb9a0
mov ecx, dword [ebp - 0x24]
test al, al
jne 0x10158c9a
mov byte [ecx + 0x29], 1
mov ecx, dword [ebp - 0x34]
xor eax, eax
xchg byte [ecx], al
cmp al, 2
jne 0x10158fc6
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 0
push dword [ebp - 0x34]
call fcn.101cbad0
add esp, 4
jmp 0x10158fc6
mov dword [ebp - 0x3c], 0
movzx eax, byte [esi + 0x29]
cmp byte [esi + 0x78], 0
jne 0x10158c45
mov edi, dword [ebp - 0x50]
movzx ebx, byte [ebp - 0x4c]
mov dword [ebp - 0x64], edi
mov byte [ebp - 0x60], bl
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x3c]
cmp eax, ecx
jne 0x10158d15
lea ecx, [esi + 0x30]
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], 4
call fcn.101616e0
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x30]
movzx ebx, byte [ebp - 0x2c]
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x3c]
add eax, dword [esi + 0x38]
xor edx, edx
cmp eax, ecx
cmovae edx, ecx
sub eax, edx
mov edx, dword [esi + 0x34]
mov dword [edx + eax*8], edi
mov byte [edx + eax*8 + 4], bl
inc dword [esi + 0x3c]
lock inc dword [esi + 0xa0]
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x10158d64
lock dec dword [esi + 0x9c]
lea eax, [esi + 0x90]
inc dword [esi + 0x60]
mov dword [ebp - 0x10], 1
push eax
call fcn.1019cc10
add esp, 4
jmp 0x10158f70
mov eax, dword [esi + 0x98]
cmp eax, dword [esi + 0x94]
je 0x10158f70
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x64]
test eax, eax
je 0x10159015
lock inc dword [eax]
jle 0x10159030
mov eax, dword [edx + 0x64]
mov ecx, dword [edx + 0x74]
mov dword [ebp - 0x5c], 0x80000000
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [edx + 0x24]
mov ecx, dword [edx + 0x20]
mov edx, dword [eax + 8]
mov byte [ebp - 0x25], 1
mov dword [ebp - 0x10], 8
dec edx
and edx, 0xfffffff8
lea ecx, [ecx + edx + 8]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
mov dword [ebp - 0x38], edx
lea edx, [ebp - 0x88]
push ecx
push edx
call dword [eax + 0x14]
add esp, 8
lea edx, [ebp - 0x88]
mov byte [ebp - 0x25], 0
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x78]
push edx
push ecx
push eax
call fcn.10195a20
add esp, 0xc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x88]
cmp dword [eax + 8], 1
jne 0x10158e13
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x74], eax
mov esi, dword [ebp - 0x38]
lock inc dword [esi]
mov ecx, dword [ebp - 0x2c]
jle 0x10159030
mov eax, dword [ebp - 0x68]
movsd xmm0, qword [ebp - 0x78]
movsd xmm1, qword [ebp - 0x70]
mov dword [ebp - 0x88], esi
mov byte [ebp - 0x1e], 0
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x30]
movsd qword [ebp - 0x5c], xmm1
movsd qword [ebp - 0x64], xmm0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], ecx
lea eax, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.101508e0
add esp, 0xc
cmp dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x24]
je 0x10158efa
mov eax, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
movsd qword [ebp - 0x64], xmm0
lea eax, [ecx + 0x40]
lock inc dword [ecx + 0x98]
inc dword [ecx + 0x74]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x10], 5
push ecx
push dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.10151b90
add esp, 0x10
mov esi, dword [ebp - 0x78]
test esi, esi
je 0x10158ef2
push dword [ebp - 0x70]
call dword [sym.imp.kernel32.dll_CloseHandle]
lock dec dword [esi]
jne 0x10158ed7
lea eax, [ebp - 0x78]
mov dword [ebp - 0x10], 6
push eax
call fcn.10006c40
add esp, 4
mov eax, dword [ebp - 0x74]
lock dec dword [eax]
jne 0x10158ef2
lea eax, [ebp - 0x74]
mov dword [ebp - 0x10], 5
push eax
call fcn.1015e7c0
add esp, 4
cmp dword [ebp - 0x48], 0
jne 0x10158f70
jmp 0x10158f1b
lea ecx, [ebp - 0x44]
call fcn.100998e0
cmp al, 0xd
jne 0x10158fda
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x98]
test eax, eax
je 0x10158fda
cmp byte [ebp - 0x44], 3
jne 0x10158f70
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [eax]
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x10158f47
mov dword [ebp - 0x10], 2
push dword [ebp - 0x30]
call eax
add esp, 4
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 4]
test eax, eax
je 0x10158f61
push dword [edx + 8]
push eax
push ecx
call fcn.10013780
add esp, 0xc
push 4
push 0xc
push dword [ebp - 0x38]
call fcn.10013780
add esp, 0xc
mov eax, dword [ebp + 8]
cmp byte [ebp - 0x3c], 0
mov byte [eax], 5
jne 0x10158fa5
mov eax, dword [0x10284a30]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x10158fa5
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 0
call fcn.101cb9a0
test al, al
jne 0x10158fa5
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x29], 1
mov ecx, dword [ebp - 0x34]
xor eax, eax
xchg byte [ecx], al
cmp al, 2
jne 0x10158fc6
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 0
push dword [ebp - 0x34]
call fcn.101cbad0
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm0, qword [ebp - 0x44]
mov eax, dword [ebp + 8]
movsd qword [eax], xmm0
cmp byte [ebp - 0x3c], 0
je 0x10158c71
jmp 0x10158c9a
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], 3
push 0x1020abe8
push 0x27
push str.assertion_failed:_prev.ref_count_____1
call fcn.101cc940
add esp, 0xc
jmp 0x10159030
mov dword [ebp - 0x10], 1
push 0x1020bafc
push 0x2e
push str.assertion_failed:_shared.shutdown_tx.is_some__C:UsersPC_HUK.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.39.2_src_runtime_blockingpool.rs
call fcn.101cc940
add esp, 0xc
ud2