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

Disassembly:
mov ecx, dword [0x59ec64]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 0xc]
jbe 0x45080f
sub esp, 0x34
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
sub edx, ebx
lea ebp, [edx - 1]
test edx, ebp
jne 0x4507f8
mov ebp, dword [0x59ef8c]
mov esi, ebx
test ebp, ebp
jne 0x450644
cmp edx, 0x8000
jae 0x4505cd
mov eax, edx
xor ecx, ecx
jmp 0x45070a
mov eax, dword [0x57ec34]
test byte [eax], al
nop
nop
mov dword [esp + 0x28], ebx
mov ecx, esi
shr esi, 0xd
and esi, 0x1ff
shr ecx, 0x16
mov eax, dword [eax + ecx*4]
test byte [eax], al
mov eax, dword [eax + esi*4 + 0x21000]
mov dword [esp + 0x14], eax
test byte [eax], al
lea ecx, [eax + 0x3f]
nop
mov dword [esp], ecx
call sym.runtime_internal_atomic.Load8
cmp byte [esp + 4], 2
jne 0x4506b2
mov eax, dword [0x59eb90]
test eax, eax
je 0x450627
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
xor edx, edx
jmp 0x45065b
lea eax, [0x57eb40]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
mov byte [esp + 8], 1
call sym.runtime._mheap_.freeManual
jmp 0x450654
mov dword [esp], ebx
mov dword [esp + 4], edx
call sym.runtime.sysFault
add esp, 0x34
ret
add esp, 0x34
ret
shr ecx, 1
inc edx
cmp ecx, 1
ja 0x450658
mov dword [esp + 0x18], edx
nop
nop
lea eax, [0x59f100]
mov dword [esp], eax
call sym.runtime.lock2
mov eax, dword [esp + 0x18]
cmp eax, 0x13
jae 0x4506a8
lea ecx, [0x59f104]
lea eax, [ecx + eax*8]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call sym.runtime._mSpanList_.insert
nop
nop
lea eax, [0x59f100]
mov dword [esp], eax
call sym.runtime.unlock2
jmp 0x450654
mov ecx, 0x13
call sym.runtime.panicIndex
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
call sym.runtime.printlock
mov dword [esp + 4], 0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sym.runtime.printhex
call sym.runtime.printsp
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sym.runtime.printpointer
call sym.runtime.printnl
call sym.runtime.printunlock
lea eax, [0x4d1abc]
mov dword [esp], eax
mov dword [esp + 4], 0xe
call sym.runtime.throw
inc ecx
shr edx, 1
cmp edx, 0x1000
ja 0x450707
mov edx, dword [0x59ec64]
mov edx, dword fs:[edx]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
mov ebx, dword [edx + 0x58]
test ebx, ebx
je 0x45072e
mov edx, dword [edx + 0x78]
test edx, edx
je 0x45077e
movzx eax, cl
cmp eax, 3
jae 0x4507ee
mov byte [esp + 0xf], cl
shl eax, 6
lea ecx, [0x59f1a0]
add eax, ecx
mov dword [esp + 0x2c], eax
nop
mov dword [esp], eax
call sym.runtime.lock2
mov eax, dword [esp + 0x38]
mov dword [esp], eax
movzx eax, byte [esp + 0xf]
mov byte [esp + 4], al
call sym.runtime.stackpoolfree
nop
nop
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.runtime.unlock2
jmp 0x450654
movzx edx, cl
mov ebx, dword [ebx + 0x30]
test byte [ebx], al
cmp edx, 3
jae 0x4507e2
lea ebp, [ebx + edx*8 + 0x238]
cmp dword [ebp], 0x8000
jb 0x4507cb
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], ebp
mov dword [esp], ebx
mov byte [esp + 4], cl
call sym.runtime.stackcacherelease
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
lea ecx, [ebx + edx*8 + 0x234]
mov edx, dword [ecx]
mov ebx, esi
mov dword [esi], edx
mov dword [ecx], ebx
add dword [ebp], eax
jmp 0x450654
mov eax, edx
mov ecx, 3
call sym.runtime.panicIndex
mov ecx, 3
call sym.runtime.panicIndex
lea eax, [0x4d3ea2]
mov dword [esp], eax
mov dword [esp + 4], 0x16
call sym.runtime.throw
nop
call sym.runtime.morestackc
jmp sym.runtime.stackfree