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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41ae05
sub esp, 0x6c
xor eax, eax
lea edi, [esp + 0x54]
call fcn.00449e6a
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x70]
test edx, edx
jne 0x41a560
mov edx, dword [ecx + 0x60]
test edx, edx
jne 0x41a560
mov ecx, dword [ecx]
cmp eax, ecx
jne 0x41aded
mov ecx, dword [0x7d5cb4]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x70]
movzx ebx, byte [edx + 0x3c]
mov byte [esp + 0x19], bl
cmp bl, 1
jne 0x41ad2c
mov ebp, dword [edx + 0x30]
lea esi, [ecx - 1]
mov dword [esp + 0x3c], esi
cmp ebp, esi
jne 0x41ad2c
movzx ebx, byte [0x7db5c8]
test bl, bl
jne 0x41ad12
mov ebx, dword [edx + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
lea ebx, [0x7d5d10]
mov dword [esp], ebx
call dbg.runtime/internal/atomic.Xadd64
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x70]
lea edx, [ecx + 0x58]
test byte [edx], al
movzx ebx, byte [ecx + 0x3a]
mov byte [esp + 0x18], bl
mov ebp, dword [ecx + 0x40]
mov dword [esp + 0x24], ebp
mov eax, dword [eax + 0xb0]
mov dword [esp + 0x48], eax
mov esi, dword [ecx + 0x58]
mov dword [esp + 0x40], edx
test esi, esi
je 0x41a650
movzx edi, word [esi + 4]
test ebp, ebp
je 0x41ad0b
mov eax, edi
xor edx, edx
div ebp
mov edx, dword [ecx + 0x2c]
mov edi, eax
shr eax, 3
add edx, eax
mov dword [esp + 0x50], edx
mov eax, ebp
imul ebp, edi
and edi, 7
mov ecx, edi
mov ebx, 1
shl ebx, cl
movzx edi, byte [edx]
xchg edi, eax
test al, bl
xchg edi, eax
je 0x41ac3d
mov edx, dword [esi]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x70]
movzx ebx, byte [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov edi, esi
mov esi, edx
mov edx, edi
mov dword [esp + 0x40], edx
test esi, esi
jne 0x41a5f1
mov edx, dword [0x7e39c0]
test edx, edx
je 0x41a707
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x54], edx
mov byte [esp + 0x58], 1
mov dword [esp + 0x5c], 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x60], edx
mov byte [esp + 0x64], 1
mov dword [esp + 0x68], 0
xor edx, edx
mov dword [esp + 0x2c], edx
mov esi, dword [ecx + 0x1c]
cmp edx, esi
jae 0x41a707
mov esi, dword [esp + 0x54]
movzx esi, byte [esi]
movzx edi, byte [esp + 0x58]
xchg esi, eax
xchg edi, ebx
test bl, al
xchg edi, ebx
xchg esi, eax
je 0x41abd6
movzx esi, byte [esp + 0x58]
xchg esi, eax
cmp al, 0x80
xchg esi, eax
jne 0x41abc9
mov esi, dword [esp + 0x54]
inc esi
mov dword [esp + 0x54], esi
mov byte [esp + 0x58], 1
mov esi, dword [esp + 0x5c]
inc esi
mov dword [esp + 0x5c], esi
movzx esi, byte [esp + 0x64]
xchg esi, eax
cmp al, 0x80
xchg esi, eax
jne 0x41abbc
mov esi, dword [esp + 0x60]
inc esi
mov dword [esp + 0x60], esi
mov byte [esp + 0x64], 1
mov esi, dword [esp + 0x68]
inc esi
mov dword [esp + 0x68], esi
inc edx
mov dword [esp + 0x2c], edx
mov esi, dword [ecx + 0x1c]
cmp edx, esi
jb 0x41a693
mov dword [esp], ecx
call dbg.runtime.(*mspan).countFree
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
movzx ecx, byte [esp + 0x18]
test cl, cl
jne 0x41abb1
test eax, eax
je 0x41aba6
mov edx, dword [esp + 0x70]
mov byte [edx + 0x3d], 1
mov ebx, 1
mov byte [esp + 0x17], bl
mov ebp, dword [edx + 0x1c]
mov dword [esp + 0x38], ebp
sub ebp, eax
mov word [esp + 0x1c], bp
movzx edi, word [edx + 0x38]
mov word [esp + 0x1e], di
sub edi, ebp
mov word [esp + 0x1a], di
movzx eax, word [esp + 0x1e]
cmp bp, ax
ja 0x41aa91
mov word [edx + 0x38], bp
mov dword [esp], edx
call dbg.runtime.(*mspan).nextFreeIndex
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x34], edx
mov dword [ecx + 0x18], 0
mov ebx, dword [ecx + 0x2c]
mov ebp, dword [0x7e38e0]
lea esi, [ecx + 0x28]
test ebp, ebp
jne 0x41aa74
mov dword [ecx + 0x28], ebx
mov ebx, dword [ecx + 0x1c]
mov dword [esp], ebx
call dbg.runtime.newMarkBits
mov eax, dword [esp + 4]
mov ecx, dword [0x7e38e0]
mov edx, dword [esp + 0x70]
lea ebx, [edx + 0x2c]
test ecx, ecx
jne 0x41aa5f
mov dword [edx + 0x2c], eax
mov dword [esp], edx
mov dword [esp + 4], 0
call dbg.runtime.(*mspan).refillAllocCache
movzx eax, byte [esp + 0x17]
test al, al
je 0x41aa4c
mov ecx, dword [esp + 0x70]
movzx edx, byte [ecx + 0x3c]
mov byte [esp + 0x19], dl
cmp dl, 1
jne 0x41a98b
mov ebx, dword [ecx + 0x30]
mov ebp, dword [esp + 0x3c]
cmp ebx, ebp
jne 0x41a98b
lea edx, [ecx + 0x30]
mov dword [esp], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 4], edx
call dbg.runtime/internal/atomic.Store
movzx eax, word [esp + 0x1a]
test ax, ax
jbe 0x41a97f
movzx ecx, byte [esp + 0x18]
test cl, cl
je 0x41a8fa
mov edx, dword [esp + 0x48]
test byte [edx], al
movzx ecx, cl
cmp ecx, 0x43
jae 0x41a8f3
mov ebx, dword [edx + ecx*4 + 0x144]
movzx eax, ax
add eax, ebx
mov dword [edx + ecx*4 + 0x144], eax
imul ecx, ecx, 0x58
lea eax, [0x7d54a0]
lea eax, [eax + ecx + 0xac0]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
movzx ecx, byte [esp + 0x74]
mov byte [esp + 8], cl
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
cmp ecx, edx
sete cl
mov byte [esp + 9], cl
call dbg.runtime.(*mcentral).freeSpan
movzx eax, byte [esp + 0xc]
mov byte [esp + 0x15], al
test al, al
je 0x41a8c7
movzx ecx, byte [0x7db5c8]
test cl, cl
jne 0x41a8bb
mov byte [esp + 0x78], al
add esp, 0x6c
ret
call dbg.runtime.traceGCSweepDone
movzx eax, byte [esp + 0x15]
jmp 0x41a8b3
mov ecx, dword [esp + 0x20]
shr ecx, 1
and ecx, 1
lea ecx, [ecx + ecx*4]
lea edx, [0x7d5cd4]
lea ecx, [edx + ecx*4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
call dbg.runtime.(*gcSweepBuf).push
movzx eax, byte [esp + 0x15]
jmp 0x41a8a8
call dbg.runtime.panicindex
ud2
movzx eax, byte [esp + 0x17]
test al, al
je 0x41a978
mov eax, dword [0x7e39c8]
test eax, eax
jle 0x41a958
mov eax, dword [esp + 0x70]
mov dword [eax + 0x50], 0
mov ecx, dword [eax + 0xc]
mov dword [esp], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
call dbg.runtime.sysFault
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x140]
inc ecx
mov dword [eax + 0x140], ecx
mov ecx, dword [eax + 0x13c]
mov edx, dword [esp + 0x24]
add ecx, edx
mov dword [eax + 0x13c], ecx
mov eax, 1
jmp 0x41a8a0
lea eax, [0x7d54a0]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
call dbg.runtime.(*mheap).freeSpan
jmp 0x41a92b
xor eax, eax
jmp 0x41a8a0
movzx eax, byte [esp + 0x17]
test al, al
jmp 0x41a901
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x3c], eax
call dbg.runtime.printlock
lea eax, [0x63c34a]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call dbg.runtime.printstring
movzx eax, byte [esp + 0x19]
movzx eax, al
mov dword [esp], eax
mov dword [esp + 4], 0
call dbg.runtime.printint
lea eax, [0x639445]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call dbg.runtime.printstring
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], 0
call dbg.runtime.printint
lea eax, [0x63b12a]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call dbg.runtime.printstring
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
call dbg.runtime.printint
lea eax, [0x637c25]
mov dword [esp], eax
mov dword [esp + 4], 1
call dbg.runtime.printstring
call dbg.runtime.printunlock
lea eax, [0x6431ed]
mov dword [esp], eax
mov dword [esp + 4], 0x27
call dbg.runtime.throw
ud2
movzx ecx, word [esp + 0x1a]
test cx, cx
jne 0x41a821
jmp 0x41a7ea
mov dword [esp], ebx
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov edx, dword [esp + 0x70]
jmp 0x41a7cd
mov dword [esp], esi
mov dword [esp + 4], ebx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x34]
jmp 0x41a7a6
call dbg.runtime.printlock
lea eax, [0x63b68a]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call dbg.runtime.printstring
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], 0
call dbg.runtime.printint
lea eax, [0x638814]
mov dword [esp], eax
mov dword [esp + 4], 7
call dbg.runtime.printstring
mov eax, dword [esp + 0x28]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call dbg.runtime.printint
lea eax, [0x638b5c]
mov dword [esp], eax
mov dword [esp + 4], 8
call dbg.runtime.printstring
movzx eax, word [esp + 0x1c]
movzx eax, ax
mov dword [esp], eax
mov dword [esp + 4], 0
call dbg.runtime.printint
lea eax, [0x63cee4]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call dbg.runtime.printstring
movzx eax, word [esp + 0x1e]
movzx eax, ax
mov dword [esp], eax
mov dword [esp + 4], 0
call dbg.runtime.printint
lea eax, [0x638b6c]
mov dword [esp], eax
mov dword [esp + 4], 8
call dbg.runtime.printstring
movzx eax, word [esp + 0x1a]
movzx eax, ax
mov dword [esp], eax
mov dword [esp + 4], 0
call dbg.runtime.printint
lea eax, [0x637c25]
mov dword [esp], eax
mov dword [esp + 4], 1
call dbg.runtime.printstring
call dbg.runtime.printunlock
lea eax, [0x64163a]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call dbg.runtime.throw
ud2
mov edx, dword [esp + 0x70]
xor ebx, ebx
jmp 0x41a739
mov edx, dword [esp + 0x70]
xor ebx, ebx
jmp 0x41a739
shl esi, 1
xchg esi, eax
mov byte [esp + 0x64], al
xchg esi, eax
jmp 0x41a6f2
shl esi, 1
xchg esi, eax
mov byte [esp + 0x58], al
xchg esi, eax
jmp 0x41a6cb
mov esi, dword [ecx + 0x18]
mov edi, dword [esp + 0x68]
cmp edi, esi
jae 0x41ac21
mov esi, dword [ecx + 0xc]
mov edi, dword [ecx + 0x40]
imul edi, edx
add esi, edi
mov edi, dword [0x7e39c0]
test edi, edi
jne 0x41abfb
jmp 0x41a6ad
mov dword [esp], esi
mov dword [esp + 4], ebp
call dbg.runtime.tracefree
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x2c]
movzx ebx, byte [esp + 0x18]
mov ebp, dword [esp + 0x24]
jmp 0x41a6ad
mov esi, dword [esp + 0x60]
movzx esi, byte [esi]
movzx edi, byte [esp + 0x64]
xchg esi, eax
xchg edi, ebx
test bl, al
xchg edi, ebx
xchg esi, eax
je 0x41a6ad
jmp 0x41abe1
add ebp, eax
mov dword [esp + 0x30], ebp
mov ecx, esi
test esi, esi
je 0x41ac6c
movzx edx, word [esi + 4]
cmp edx, ebp
jae 0x41ad04
movzx edx, byte [esi + 6]
cmp dl, 1
je 0x41acf0
mov esi, dword [esi]
mov edx, dword [esp + 0x50]
test esi, esi
jne 0x41ac49
xor edx, edx
mov byte [esp + 0x16], dl
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x40], ebx
test ecx, ecx
je 0x41acae
movzx esi, word [ecx + 4]
cmp esi, ebp
jae 0x41acae
mov edi, dword [esp + 0x70]
mov ebx, dword [edi + 0xc]
add ebx, esi
movzx esi, byte [ecx + 6]
xchg esi, eax
cmp al, 1
xchg esi, eax
je 0x41acb7
test dl, dl
je 0x41acb7
mov ebx, dword [ecx]
mov esi, ecx
mov ecx, ebx
mov ebx, esi
mov dword [esp + 0x40], ebx
test ecx, ecx
jne 0x41ac7e
mov edx, ecx
mov esi, ebx
jmp 0x41a631
mov esi, dword [ecx]
mov dword [esp + 0x44], esi
mov edx, dword [esp + 0x40]
mov dword [edx], esi
mov dword [esp], ecx
mov ecx, ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call dbg.runtime.freespecial
mov eax, dword [esp + 0x24]
movzx edx, byte [esp + 0x16]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
jmp 0x41aca0
or edi, ebx
mov edx, dword [esp + 0x50]
xchg edi, eax
mov byte [edx], al
xchg edi, eax
mov edx, 1
jmp 0x41ac6e
xor edx, edx
jmp 0x41ac6e
call dbg.runtime.panicdivide
ud2
call dbg.runtime.traceGCSweepStart
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x3c]
jmp 0x41a5a0
mov eax, dword [edx + 0x30]
mov dword [esp + 0x3c], eax
call dbg.runtime.printlock
lea eax, [0x63c34a]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call dbg.runtime.printstring
movzx eax, byte [esp + 0x19]
movzx eax, al
mov dword [esp], eax
mov dword [esp + 4], 0
call dbg.runtime.printint
lea eax, [0x639445]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call dbg.runtime.printstring
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], 0
call dbg.runtime.printint
lea eax, [0x63b12a]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call dbg.runtime.printstring
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
call dbg.runtime.printint
lea eax, [0x637c25]
mov dword [esp], eax
mov dword [esp + 4], 1
call dbg.runtime.printstring
call dbg.runtime.printunlock
lea eax, [0x63f626]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
call dbg.runtime.throw
ud2
lea eax, [0x63fbc9]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
call dbg.runtime.throw
ud2
call dbg.runtime.morestack_noctxt
jmp dbg.runtime.(*mspan).sweep