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

Disassembly:
mov ecx, dword [0x5ef9b4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b1e69
sub esp, 0x64
mov ebx, dword [esp + 0x70]
test ebx, ebx
je 0x4b1c44
mov ebp, dword [esp + 0x68]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x40], eax
cmp ebx, eax
jbe 0x4b1b4a
mov ecx, dword [ebp + 0x50]
sub ebx, eax
cmp ecx, ebx
jb 0x4b1a74
mov esi, ecx
sub esi, ebx
mov ebx, dword [esp + 0x74]
lea edi, [ebx + esi]
mov edx, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x60], ebx
mov ebx, dword [ebp + 0x54]
mov ebp, dword [ebp + 0x4c]
cmp ecx, edi
jae 0x4b19a6
cmp ecx, esi
jb 0x4b1e61
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], esi
sub ecx, esi
lea edi, [ecx + eax]
sub ebx, esi
neg ebx
sar ebx, 0x1f
and ebx, esi
add ebx, ebp
cmp edx, edi
jb 0x4b1810
mov ebp, dword [esp + 0x60]
jmp 0x4b1854
mov dword [esp + 0x38], ecx
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea eax, [0x4ea0c0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov ebp, ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x60], ebp
lea esi, [ebp + eax]
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call sym.runtime.memmove
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x68]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x24], eax
mov eax, dword [0x5efab0]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
sub edx, ebx
mov ebx, dword [esp + 0x70]
sub ebx, edx
mov ebp, dword [esp + 0x74]
sub ebp, edx
test eax, eax
jne 0x4b18ac
mov esi, dword [esp + 0x60]
jmp 0x4b18bd
call sym.runtime.gcWriteBarrier2
mov esi, dword [esp + 0x60]
mov dword [edi], esi
mov eax, dword [ecx + 0x1c]
mov dword [edi + 4], eax
mov dword [ecx + 0x1c], esi
test ebx, ebx
jne 0x4b1b50
test ebp, ebp
jbe 0x4b1b50
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x30], eax
lea edx, [0x4edd20]
mov dword [esp], edx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x58], eax
mov dword [eax + 4], 0xe
lea ecx, [0x506b78]
mov dword [eax], ecx
lea ecx, [0x530fa4]
cmp dword [0x5c4a80], ecx
jne 0x4b193f
mov edx, dword [0x5c4a84]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
test al, al
je 0x4b193f
lea ecx, [0x530fa4]
mov eax, dword [esp + 0x58]
jmp 0x4b199a
lea eax, [0x4f1c20]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [esp + 0x30]
mov ebp, ebx
sar ebx, 0x1f
add ebp, edx
mov dword [eax], ebp
adc ebx, ecx
mov dword [eax + 4], ebx
lea ecx, [0x530fa4]
mov dword [eax + 8], ecx
mov ecx, dword [0x5efab0]
test ecx, ecx
jne 0x4b1986
mov ecx, dword [esp + 0x58]
jmp 0x4b1991
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x58]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
lea ecx, [0x531260]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x64
ret
cmp esi, edi
ja 0x4b1e58
mov ecx, dword [esp + 0x74]
lea edi, [ecx + eax]
sub ebx, esi
neg ebx
sar ebx, 0x1f
and esi, ebx
lea ebx, [ebp + esi]
cmp edx, edi
jb 0x4b19cc
mov ebp, dword [esp + 0x60]
jmp 0x4b1a0c
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea eax, [0x4ea0c0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x74]
mov ebp, ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x40], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x3c], edx
add eax, ebp
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call sym.runtime.memmove
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x68]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x24], eax
mov eax, dword [0x5efab0]
test eax, eax
jne 0x4b1a4c
mov eax, dword [esp + 0x60]
jmp 0x4b1a5d
call sym.runtime.gcWriteBarrier2
mov eax, dword [esp + 0x60]
mov dword [edi], eax
mov edx, dword [ecx + 0x1c]
mov dword [edi + 4], edx
mov dword [ecx + 0x1c], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x64
ret
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov dword [esp + 0x44], ecx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x30], eax
lea edx, [0x4edd20]
mov dword [esp], edx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
mov dword [eax + 4], 0x12
lea ecx, [0x5082f3]
mov dword [eax], ecx
lea ecx, [0x530fa4]
cmp dword [0x5c4a80], ecx
jne 0x4b1ae3
mov edx, dword [0x5c4a84]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
test al, al
je 0x4b1ae3
lea ecx, [0x530fa4]
mov eax, dword [esp + 0x54]
jmp 0x4b1b3e
lea eax, [0x4f1c20]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [esp + 0x30]
mov ebp, ebx
sar ebx, 0x1f
add edx, ebp
mov dword [eax], edx
adc ecx, ebx
mov dword [eax + 4], ecx
lea ecx, [0x530fa4]
mov dword [eax + 8], ecx
mov ecx, dword [0x5efab0]
test ecx, ecx
jne 0x4b1b2a
mov ecx, dword [esp + 0x54]
jmp 0x4b1b35
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x54]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
lea ecx, [0x531260]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x64
ret
mov ecx, ebp
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x40]
sub eax, ebx
cmp ebp, ebx
jbe 0x4b1b63
mov dword [esp + 0x24], ebx
jmp 0x4b1d35
mov edx, dword [ecx + 0x24]
lea ebx, [eax + ebp]
cmp edx, ebx
jb 0x4b1d21
cmp eax, ebx
ja 0x4b1d1a
mov dword [esp + 0x40], edx
mov ebx, dword [ecx + 0x1c]
mov esi, dword [ecx + 0x20]
lea edi, [esi + ebp]
sub edx, eax
neg edx
sar edx, 0x1f
and eax, edx
add eax, ebx
mov edx, dword [esp + 0x40]
cmp edx, edi
jae 0x4b1bdb
mov dword [esp + 0x30], ebp
mov dword [esp + 0x60], eax
mov dword [esp + 0x40], esi
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
lea eax, [0x4ea0c0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x60], ebx
lea ecx, [ebx + esi]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call sym.runtime.memmove
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x68]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 0x24], eax
mov eax, dword [0x5efab0]
test eax, eax
jne 0x4b1c1c
mov eax, dword [esp + 0x60]
jmp 0x4b1c2d
call sym.runtime.gcWriteBarrier2
mov eax, dword [esp + 0x60]
mov dword [edi], eax
mov edx, dword [ecx + 0x1c]
mov dword [edi + 4], edx
mov dword [ecx + 0x1c], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x64
ret
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x30], eax
lea edx, [0x4edd20]
mov dword [esp], edx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov dword [eax + 4], 0x13
lea ecx, [0x508abc]
mov dword [eax], ecx
lea ecx, [0x530fa4]
cmp dword [0x5c4a80], ecx
jne 0x4b1cb3
mov edx, dword [0x5c4a84]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
test al, al
je 0x4b1cb3
lea ecx, [0x530fa4]
mov eax, dword [esp + 0x50]
jmp 0x4b1d0e
lea eax, [0x4f1c20]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [esp + 0x30]
mov ebp, ebx
sar ebx, 0x1f
add edx, ebp
mov dword [eax], edx
adc ecx, ebx
mov dword [eax + 4], ecx
lea ecx, [0x530fa4]
mov dword [eax + 8], ecx
mov ecx, dword [0x5efab0]
test ecx, ecx
jne 0x4b1cfa
mov ecx, dword [esp + 0x50]
jmp 0x4b1d05
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x50]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
lea ecx, [0x531260]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x64
ret
mov ecx, ebx
call sym.runtime.panicSliceBU
mov ecx, ebx
call sym.runtime.panicSliceAcapU
mov dword [ecx + 0x1c], ebx
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ebp, edx
test ebp, ebp
jbe 0x4b1e34
cmp ebp, ebx
ja 0x4b1d45
mov edx, ebp
jmp 0x4b1d49
mov edx, ebp
mov ebp, ebx
mov esi, dword [ecx + 0x24]
lea edi, [ebp + eax]
cmp esi, edi
jb 0x4b1e4f
cmp eax, edi
ja 0x4b1e48
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], esi
mov ebx, dword [ecx + 0x1c]
mov edi, dword [ecx + 0x20]
lea edx, [ebp + edi]
sub esi, eax
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, eax
lea eax, [esi + ebx]
mov esi, dword [esp + 0x40]
cmp esi, edx
jae 0x4b1dd0
mov dword [esp + 0x40], edi
mov dword [esp + 0x60], eax
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebp
lea eax, [0x4ea0c0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x60], ebx
lea ecx, [ebx + edi]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call sym.runtime.memmove
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x68]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 0x24], eax
mov eax, dword [0x5efab0]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
sub edx, ebx
test eax, eax
jne 0x4b1e1e
mov ebx, dword [esp + 0x60]
jmp 0x4b1d28
call sym.runtime.gcWriteBarrier2
mov ebx, dword [esp + 0x60]
mov dword [edi], ebx
mov ebp, dword [ecx + 0x1c]
mov dword [edi + 4], ebp
jmp 0x4b1d28
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x64
ret
mov ecx, edi
call sym.runtime.panicSliceBU
mov ecx, edi
mov edx, esi
call sym.runtime.panicSliceAcapU
mov eax, esi
mov ecx, edi
call sym.runtime.panicSliceBU
mov eax, esi
call sym.runtime.panicSliceBU
nop
call sym.runtime.morestack_noctxt
jmp sym.internal_zstd._Reader_.copyFromWindow