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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1e0
mov esi, edx
mov edx, dword [edx]
movzx eax, byte [ebp + 0xc]
mov dword [esp + 0xc4], ecx
mov cl, 1
mov byte [esp + 0xf], al
xor eax, eax
mov dword [esp + 0x30], edx
lea edi, [edx + 8]
lock cmpxchg byte [edx + 8], cl
jne 0x4c2c1d
mov eax, dword [0x5e1180]
mov ebx, dword [ebp + 8]
test eax, 0x7fffffff
je 0x4c2c37
call sym.std::panicking::panic_count::is_zero_slow_path::h8d6729d981530f26
xor al, 1
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x30]
movzx eax, byte [ecx + 9]
test al, al
jne 0x4c2c4f
movsd xmm0, qword [esi + 4]
mov edx, dword [esi + 0xc]
lea eax, [ecx + 0x160]
mov cl, 1
movsd qword [esp + 0x60], xmm0
mov dword [esp + 0x5c], eax
lea eax, [edx + 8]
mov dword [esp + 0x2c], eax
xor eax, eax
lock cmpxchg byte [edx + 8], cl
jne 0x4c2c8a
mov eax, dword [0x5e1180]
mov dword [esp + 0x28], edi
test eax, 0x7fffffff
je 0x4c2cab
mov esi, edx
mov bl, 1
call sym.std::panicking::panic_count::is_zero_slow_path::h8d6729d981530f26
mov ebx, dword [ebp + 8]
xor al, 1
mov edx, esi
mov dword [esp + 0x20], eax
movzx eax, byte [edx + 9]
mov esi, dword [esp + 0x30]
test al, al
jne 0x4c2cc3
movsd xmm0, qword [ebx + 0x10]
movsd xmm2, qword [ebx]
movsd xmm1, qword [ebx + 8]
mov dword [esp + 0xb4], edx
lea eax, [edx + 0xc]
lea edx, [esp + 0xf]
lea ecx, [esi + 0xf0]
mov edi, dword [esp + 0x5c]
movsd qword [esp + 0xd8], xmm0
movsd qword [esp + 0xd0], xmm1
movsd qword [esp + 0xc8], xmm2
mov dword [esp + 0xe0], edx
lea edx, [esi + 0xe8]
mov dword [esp + 0xe4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xe8], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0xec], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x90], edx
cmp dword [edi + 0x38], ecx
jbe 0x4c2e56
mov eax, dword [edi + 0x34]
imul esi, dword [esp + 8], 0xf8
mov ecx, dword [eax + esi]
xor ecx, 3
or ecx, dword [eax + esi + 4]
je 0x4c2e56
add eax, esi
cmp dword [eax + 0xd4], edx
jne 0x4c2e56
movsd xmm1, qword [esp + 0xd8]
mov ecx, dword [eax + 0x18]
movsd xmm2, qword [esp + 0xe0]
movsd xmm0, qword [esp + 0xe8]
test edx, edx
mov dword [esp + 0x58], esi
movsd qword [esp + 0x100], xmm1
movsd xmm1, qword [esp + 0xd0]
movsd qword [esp + 0x108], xmm2
movsd xmm2, qword [esp + 0xc8]
movsd qword [esp + 0x110], xmm0
movsd qword [esp + 0xf8], xmm1
movsd xmm1, qword [ebx + 0x10]
movsd qword [esp + 0xf0], xmm2
movsd xmm2, qword [ebx]
movsd qword [esp + 0x128], xmm1
movsd xmm1, qword [ebx + 8]
movsd qword [esp + 0x118], xmm2
movsd qword [esp + 0x120], xmm1
je 0x4c2f7a
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x30]
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
movsd xmm2, qword [ebx + 0x10]
mov dword [esp + 0xbc], edi
mov edi, dword [esp + 0x10c]
mov ebx, dword [esp + 0x114]
mov dword [esp + 4], edx
lea esi, [ecx + 0x10]
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x110]
movzx ecx, byte [ecx]
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x48], xmm2
movsd qword [esp + 0x40], xmm1
mov dword [esp + 0x50], edx
mov byte [esp + 0x54], 0
mov dword [esp + 0xb8], edi
mov byte [esp + 0x56], cl
mov byte [esp + 0xe], cl
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4c2863
xor edi, edi
cmp ecx, 1
jne 0x4c286b
cmp dword [esp + 0x4c], 0
jne 0x4c286b
mov edi, dword [esp + 0x44]
mov edx, esi
mov esi, 0
sub edi, dword [esp + 0x48]
cmovb edi, esi
mov esi, edx
mov edx, dword [esp + 4]
test edi, edi
jns 0x4c286b
mov bl, 2
mov edi, dword [esp + 0x28]
cmp ecx, 1
jne 0x4c2aef
cmp dword [esp + 0x44], 0
je 0x4c2da0
push dword [esp + 0x40]
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
jmp 0x4c2da0
mov edi, dword [esp + 0x44]
test edi, edi
js 0x4c2833
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 8]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edx
mov esi, edx
mov edx, dword [eax]
xor edx, 3
or edx, dword [eax + 4]
je 0x4c2f17
cmp dword [eax + 0xd4], esi
jne 0x4c2f17
movzx ebx, byte [eax + 0x20]
mov edx, ebx
add dl, 0xfa
movzx esi, dl
cmp dl, 6
mov edx, 6
cmovb edx, esi
cmp dl, 5
je 0x4c2ace
movzx edx, dl
cmp edx, 3
jne 0x4c2ad8
cmp byte [eax + 0x21], 0
je 0x4c2ad8
add edi, dword [eax + 0xe0]
jb 0x4c2fac
mov dword [eax + 0xe0], edi
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x70], 2
mov dword [esp + 0x80], 0
mov edi, dword [esp + 0x58]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x38]
cmp eax, ecx
jbe 0x4c2ebf
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx + edi]
xor edx, 3
or edx, dword [ecx + edi + 4]
je 0x4c2ebf
mov edx, dword [esp + 4]
add ecx, edi
cmp dword [ecx + 0xd4], edx
jne 0x4c2ebf
mov edx, dword [ecx + 0xe0]
add dword [esp + 0x18], 8
cmp dword [ecx + 0xdc], edx
jae 0x4c29b5
mov dword [ecx + 0xdc], edx
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x38]
cmp eax, ecx
jbe 0x4c2ebf
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx + edi]
xor edx, 3
or edx, dword [ecx + edi + 4]
je 0x4c2ebf
mov edx, dword [esp + 4]
add ecx, edi
cmp dword [ecx + 0xd4], edx
jne 0x4c2ebf
cmp byte [ecx + 0xec], 0
jne 0x4c29b5
mov bl, 1
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x5c]
call sym.h2::proto::streams::prioritize::Prioritize::try_assign_capacity::hd198160b486a71b7
mov eax, dword [esi + 0x38]
cmp byte [esp + 0xe], 0
je 0x4c2a19
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
cmp eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jbe 0x4c2f93
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx + edi]
xor eax, 3
or eax, dword [ecx + edi + 4]
je 0x4c2f93
add ecx, edi
cmp dword [ecx + 0xd4], edx
jne 0x4c2f93
mov bl, 1
add ecx, 0x20
call sym.h2::proto::streams::state::State::send_close::hee07520511137b06
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x5c]
xor edx, edx
push dword [esp + 0x1c]
push eax
call sym.h2::proto::streams::prioritize::Prioritize::reserve_capacity::he26439a4c73130e9
add esp, 8
mov eax, dword [esi + 0x38]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0x10], edx
cmp eax, edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x14], ecx
jbe 0x4c2ebf
mov edi, dword [esi + 0x34]
mov eax, dword [edi + edx]
xor eax, 3
or eax, dword [edi + edx + 4]
je 0x4c2ebf
add edi, edx
cmp dword [edi + 0xd4], ecx
jne 0x4c2ebf
cmp dword [edi + 0x3c], 0
jle 0x4c2b15
movsd xmm1, qword [esp + 0x48]
movsd xmm0, qword [esp + 0x50]
movsd xmm2, qword [esp + 0x38]
xor ebx, ebx
movsd qword [esp + 0x130], xmm1
movsd xmm1, qword [esp + 0x40]
movsd qword [esp + 0x138], xmm0
movsd qword [esp + 0x120], xmm2
movsd qword [esp + 0x128], xmm1
mov byte [esp + 0x118], 0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x5c]
lea edx, [esp + 0x118]
push dword [esp + 0xb8]
push eax
push dword [esp + 0x3c]
call sym.h2::proto::streams::prioritize::Prioritize::queue_frame::h3dff4789982fe7e7
add esp, 0xc
jmp 0x4c2d11
cmp byte [eax + 0x21], 1
je 0x4c28d1
mov esi, dword [esp + 0x1c]
cmp bl, 6
setae bl
mov edi, dword [esp + 0x28]
cmp ecx, 1
je 0x4c2842
test ecx, ecx
jne 0x4c2da0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x48]
mov eax, dword [eax + 0x10]
push dword [esp + 0x44]
push dword [esp + 0x44]
push ecx
call eax
add esp, 0xc
jmp 0x4c2da0
cmp dword [edi + 0xe0], 0
je 0x4c2a60
movsd xmm1, qword [esp + 0x48]
movsd xmm0, qword [esp + 0x50]
movsd xmm2, qword [esp + 0x40]
mov byte [esp + 0x120], 0
mov ecx, dword [esp + 0x34]
xor ebx, ebx
movsd qword [esp + 0xa3], xmm1
movsd xmm1, qword [esp + 0x38]
movsd qword [esp + 0xab], xmm0
movsd qword [esp + 0x9b], xmm2
movsd qword [esp + 0x93], xmm1
movsd xmm2, qword [esp + 0x94]
movsd xmm1, qword [esp + 0x8c]
movsd xmm3, qword [esp + 0x9c]
movsd qword [esp + 0x129], xmm2
movsd xmm2, qword [esp + 0xa4]
movsd qword [esp + 0x121], xmm1
movsd qword [esp + 0x131], xmm3
movsd qword [esp + 0x139], xmm2
movsd qword [esp + 0x140], xmm0
mov dword [esp + 0x118], 0
mov esi, dword [ecx + 0x10]
lea eax, [esp + 0x118]
mov edx, esi
push eax
call sym.slab::Slab_LT_T_GT_::insert_at::h67dbb002f899c446
add esp, 4
test byte [edi + 0x6c], 1
je 0x4c2d02
mov ecx, dword [edi + 0x74]
mov eax, dword [esp + 0x34]
cmp dword [eax + 8], ecx
jbe 0x4c2fb8
mov eax, dword [eax + 4]
lea ecx, [ecx + ecx*2]
shl ecx, 6
cmp dword [eax + ecx], 2
je 0x4c2fb8
add edi, 0x74
add eax, ecx
mov dword [eax], 1
mov dword [eax + 4], esi
jmp 0x4c2d0f
mov ecx, edi
call sym.std::sys::sync::mutex::futex::Mutex::lock_contended::h7bd09c01afe60157
mov eax, dword [0x5e1180]
mov ebx, dword [ebp + 8]
test eax, 0x7fffffff
jne 0x4c25cb
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
movzx eax, byte [ecx + 9]
test al, al
je 0x4c25e6
mov eax, dword [esp + 0x24]
mov dword [esp + 0x118], edi
mov byte [esp + 0x11c], al
lea edi, [esp + 0x118]
mov edx, 0x2b
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x5a79e4
push 0x5a816c
push edi
call sym.core::result::unwrap_failed::h534a40e08cfe968a
add esp, 0xc
jmp 0x4c2fd1
mov ecx, dword [esp + 0x2c]
mov esi, edx
call sym.std::sys::sync::mutex::futex::Mutex::lock_contended::h7bd09c01afe60157
mov edx, esi
mov eax, dword [0x5e1180]
mov dword [esp + 0x28], edi
test eax, 0x7fffffff
jne 0x4c2628
mov dword [esp + 0x20], 0
movzx eax, byte [edx + 9]
mov esi, dword [esp + 0x30]
test al, al
je 0x4c264c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x11c], al
lea edi, [esp + 0x118]
mov edx, 0x2b
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x5a79f4
push 0x5a814c
push edi
call sym.core::result::unwrap_failed::h534a40e08cfe968a
add esp, 0xc
jmp 0x4c2fd1
mov dword [edi + 0x6c], 1
mov dword [edi + 0x70], esi
add edi, 0x74
mov dword [edi], esi
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
cmp edx, 2
je 0x4c2d9e
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
test dl, 1
je 0x4c2d3a
mov edx, dword [ecx + 8]
dec edx
and edx, 0xfffffff8
lea eax, [eax + edx + 8]
mov ecx, dword [ecx + 0x34]
lea edx, [esp + 0x68]
push edx
push eax
call ecx
add esp, 8
mov ebx, dword [esp + 0x70]
cmp ebx, 2
je 0x4c2d9e
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
test bl, 1
je 0x4c2d75
mov edi, dword [esi + 8]
dec edi
and edi, 0xfffffff8
lea edx, [edx + edi + 8]
mov edi, dword [esp + 0x28]
mov esi, dword [esi + 0x40]
push ecx
push eax
push edx
call esi
add esp, 0xc
mov esi, dword [esp + 0x1c]
test ebx, ebx
je 0x4c2d9e
mov eax, dword [esp + 0x74]
lock dec dword [eax]
jne 0x4c2d9e
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::h19026b6b64bf7a00
mov bl, 0xc
xor eax, eax
cmp dword [esp + 0xc0], 0x3b9aca00
setne al
lea edx, [esp + 0x5c]
mov ecx, esi
push eax
call sym.h2::proto::streams::counts::Counts::transition_after::h5d94c023710edf8b
add esp, 4
cmp byte [esp + 0x20], 0
jne 0x4c2df1
mov eax, dword [0x5e1180]
test eax, 0x7fffffff
je 0x4c2df1
mov byte [esp + 8], bl
xor ebx, ebx
call sym.std::panicking::panic_count::is_zero_slow_path::h8d6729d981530f26
movzx ebx, byte [esp + 8]
test al, al
jne 0x4c2df1
mov eax, dword [esp + 0xb4]
mov byte [eax + 9], 1
mov ecx, dword [esp + 0x2c]
xor eax, eax
xchg byte [ecx], al
cmp al, 2
jne 0x4c2e04
push ecx
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
cmp byte [esp + 0x24], 0
jne 0x4c2e17
mov eax, dword [0x5e1180]
test eax, 0x7fffffff
jne 0x4c2e43
xor eax, eax
xchg byte [edi], al
cmp al, 2
jne 0x4c2e26
push edi
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
mov ecx, dword [esp + 0xc4]
mov al, 5
cmp bl, 0xc
je 0x4c2e39
mov al, 3
mov byte [ecx + 1], bl
mov byte [ecx], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.std::panicking::panic_count::is_zero_slow_path::h8d6729d981530f26
test al, al
jne 0x4c2e17
mov eax, dword [esp + 0x30]
mov byte [eax + 9], 1
jmp 0x4c2e17
lea eax, [esp + 0x90]
lea esi, [esp + 0xf0]
mov dword [esp + 0x118], 0x585184
mov dword [esp + 0x11c], 1
mov dword [esp + 0x128], 0
mov dword [esp + 0xf0], eax
mov dword [esp + 0x120], esi
mov dword [esp + 0xf4], sym.__LT_h2..frame..stream_id..StreamId_u20_as_u20_core..fmt..Debug_GT_::fmt::hfb12b609121d3b2f
mov dword [esp + 0x124], 1
lea ecx, [esp + 0x118]
mov edx, 0x58518c
call sym.core::panicking::panic_fmt::hced28cb7137b21e1
jmp 0x4c2fd1
lea eax, [esp + 0x14]
mov edx, 0x58518c
mov dword [esp + 0x118], 0x585184
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], sym.__LT_h2..frame..stream_id..StreamId_u20_as_u20_core..fmt..Debug_GT_::fmt::hfb12b609121d3b2f
lea ecx, [esp + 0x118]
lea eax, [esp + 0x8c]
mov bl, 1
mov dword [ecx + 4], 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 1
call sym.core::panicking::panic_fmt::hced28cb7137b21e1
jmp 0x4c2fd1
lea eax, [esp + 0x6c]
lea esi, [esp + 0x8c]
mov dword [esp + 0x118], 0x585184
mov dword [esp + 0x11c], 1
mov dword [esp + 0x128], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x120], esi
mov dword [esp + 0x90], sym.__LT_h2..frame..stream_id..StreamId_u20_as_u20_core..fmt..Debug_GT_::fmt::hfb12b609121d3b2f
mov dword [esp + 0x124], 1
lea ecx, [esp + 0x118]
mov edx, 0x58518c
call sym.core::panicking::panic_fmt::hced28cb7137b21e1
jmp 0x4c2fd1
mov edx, 0x26
mov ecx, str.assertion_failed:__stream_id.is_zero__
push 0x5a730c
call sym.core::panicking::panic::hf6244c8fb5815825
add esp, 4
jmp 0x4c2fd1
lea eax, [esp + 0x14]
mov dword [esp + 0x118], 0x585184
mov edx, 0x58519c
jmp 0x4c2ed3
mov ecx, 0x5a75a8
call sym.core::panicking::panic_const::panic_const_add_overflow::hf3b41c4c75c49a6d
jmp 0x4c2fd1
xor ebx, ebx
mov edx, 0xb
mov ecx, str.invalid_key
push 0x5a78e0
call sym.std::panicking::begin_panic::h12a0aa1065247899
add esp, 4
ud2