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

Disassembly:
mov ecx, dword [0x6dded4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x510a69
sub esp, 0x64
mov ebx, dword [esp + 0x70]
test ebx, ebx
je 0x510844
mov ebp, dword [esp + 0x68]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x40], eax
cmp ebx, eax
jbe 0x51074a
mov ecx, dword [ebp + 0x50]
sub ebx, eax
cmp ecx, ebx
jb 0x510674
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 0x5105a6
cmp ecx, esi
jb 0x510a61
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 0x510410
mov ebp, dword [esp + 0x60]
jmp 0x510454
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, [0x550e00]
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 [0x6ddfe0]
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 0x5104ac
mov esi, dword [esp + 0x60]
jmp 0x5104bd
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 0x510750
test ebp, ebp
jbe 0x510750
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, [0x555b00]
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, [0x581a9c]
mov dword [eax], ecx
lea ecx, [0x5b76e0]
cmp dword [0x688198], ecx
jne 0x51053f
mov edx, dword [0x68819c]
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 0x51053f
lea ecx, [0x5b76e0]
mov eax, dword [esp + 0x58]
jmp 0x51059a
lea eax, [0x55bb60]
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, [0x5b76e0]
mov dword [eax + 8], ecx
mov ecx, dword [0x6ddfe0]
test ecx, ecx
jne 0x510586
mov ecx, dword [esp + 0x58]
jmp 0x510591
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x58]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
lea ecx, [0x5b7a28]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x64
ret
cmp esi, edi
ja 0x510a58
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 0x5105cc
mov ebp, dword [esp + 0x60]
jmp 0x51060c
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, [0x550e00]
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 [0x6ddfe0]
test eax, eax
jne 0x51064c
mov eax, dword [esp + 0x60]
jmp 0x51065d
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, [0x555b00]
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, [0x58537d]
mov dword [eax], ecx
lea ecx, [0x5b76e0]
cmp dword [0x688198], ecx
jne 0x5106e3
mov edx, dword [0x68819c]
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 0x5106e3
lea ecx, [0x5b76e0]
mov eax, dword [esp + 0x54]
jmp 0x51073e
lea eax, [0x55bb60]
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, [0x5b76e0]
mov dword [eax + 8], ecx
mov ecx, dword [0x6ddfe0]
test ecx, ecx
jne 0x51072a
mov ecx, dword [esp + 0x54]
jmp 0x510735
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x54]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
lea ecx, [0x5b7a28]
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 0x510763
mov dword [esp + 0x24], ebx
jmp 0x510935
mov edx, dword [ecx + 0x24]
lea ebx, [eax + ebp]
cmp edx, ebx
jb 0x510921
cmp eax, ebx
ja 0x51091a
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 0x5107db
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, [0x550e00]
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 [0x6ddfe0]
test eax, eax
jne 0x51081c
mov eax, dword [esp + 0x60]
jmp 0x51082d
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, [0x555b00]
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, [0x585b92]
mov dword [eax], ecx
lea ecx, [0x5b76e0]
cmp dword [0x688198], ecx
jne 0x5108b3
mov edx, dword [0x68819c]
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 0x5108b3
lea ecx, [0x5b76e0]
mov eax, dword [esp + 0x50]
jmp 0x51090e
lea eax, [0x55bb60]
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, [0x5b76e0]
mov dword [eax + 8], ecx
mov ecx, dword [0x6ddfe0]
test ecx, ecx
jne 0x5108fa
mov ecx, dword [esp + 0x50]
jmp 0x510905
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x50]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
lea ecx, [0x5b7a28]
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 0x510a34
cmp ebp, ebx
ja 0x510945
mov edx, ebp
jmp 0x510949
mov edx, ebp
mov ebp, ebx
mov esi, dword [ecx + 0x24]
lea edi, [ebp + eax]
cmp esi, edi
jb 0x510a4f
cmp eax, edi
ja 0x510a48
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 0x5109d0
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, [0x550e00]
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 [0x6ddfe0]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
sub edx, ebx
test eax, eax
jne 0x510a1e
mov ebx, dword [esp + 0x60]
jmp 0x510928
call sym.runtime.gcWriteBarrier2
mov ebx, dword [esp + 0x60]
mov dword [edi], ebx
mov ebp, dword [ecx + 0x1c]
mov dword [edi + 4], ebp
jmp 0x510928
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