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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x415e77
sub esp, 0x50
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov ecx, dword [eax + 0x18]
test byte [eax], al
mov eax, dword fs:[0x14]
mov eax, dword [eax]
cmp dword [ecx], eax
je 0x4158cf
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x4158cf
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x4158cf
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4158f7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4158f7
mov dword [eax + 8], 0xfffffade
jmp 0x4158f7
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4158ed
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4158ed
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0x55f85c]
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xc], ebx
call dbg.runtime.gcTrigger.test
movzx eax, byte [esp + 0x10]
test al, al
jne 0x415928
xor eax, eax
jmp 0x415934
call dbg.runtime.sweepone
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x4158f1
nop
lea eax, [0x585c8c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call dbg.runtime.semacquire1
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
call dbg.runtime.gcTrigger.test
movzx eax, byte [esp + 0x10]
test al, al
je 0x415a97
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x585ca0], al
mov eax, dword [0x5854f8]
cmp eax, 1
jne 0x4159af
mov eax, 1
jmp 0x4159bd
cmp eax, 2
jne 0x4159bb
mov eax, 2
jmp 0x4159bd
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x4a8064]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call dbg.runtime.semacquire1
nop
lea eax, [0x4a8084]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call dbg.runtime.semacquire1
movzx eax, byte [0x569868]
test al, al
je 0x415a7f
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x569898]
mov ecx, dword [0x56989c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call dbg.runtime.traceEvent
mov eax, dword [0x569898]
add eax, 1
mov ecx, dword [0x56989c]
mov dword [0x569898], eax
adc ecx, 0
mov dword [0x56989c], ecx
mov eax, dword [0x55f740]
mov dword [esp + 0x44], eax
mov ecx, dword [0x55f744]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x415ac6
nop
lea eax, [0x585c8c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call dbg.runtime.semrelease1
add esp, 0x50
ret
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x415afb
mov dword [esp + 0x24], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x3c], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call dbg.runtime/internal/atomic.Load
mov eax, dword [esp + 4]
mov ecx, dword [0x5652cc]
cmp ecx, eax
je 0x415ab7
jmp 0x415dc0
call dbg.runtime.gcBgMarkStartWorkers
lea eax, [0x4ded80]
mov dword [esp], eax
call dbg.runtime.systemstack
mov eax, dword [0x58524c]
mov dword [0x585ccc], eax
mov dword [0x585cd0], eax
mov ecx, dword [0x585268]
cmp ecx, eax
jge 0x415b30
mov dword [0x585ccc], ecx
lea eax, [0x585a10]
mov dword [esp], eax
call dbg.runtime/internal/atomic.Load64
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x585d08], eax
mov dword [0x585d04], ecx
mov dword [0x585cf4], 0
mov dword [0x585cf8], 0
mov eax, dword [esp + 0x14]
mov dword [0x585c9c], eax
call dbg.runtime.nanotime1
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x585cd8], eax
mov dword [0x585cd4], ecx
mov dword [0x585d00], eax
mov dword [0x585cfc], ecx
movzx eax, byte [0x569868]
test al, al
je 0x415bf1
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call dbg.runtime.traceEvent
lea eax, [0x4dee38]
mov dword [esp], eax
call dbg.runtime.systemstack
lea eax, [0x4ded84]
mov dword [esp], eax
call dbg.runtime.systemstack
call dbg.runtime.clearpools
inc dword [0x585cc8]
lea eax, [0x5859e0]
mov dword [esp], eax
call dbg.runtime.(*gcControllerState).startCycle
mov eax, dword [0x585a00]
mov ecx, dword [0x585a04]
mov dword [0x585d1c], eax
mov dword [0x585d20], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415c4f
mov byte [esp], 0
call dbg.runtime.schedEnableUser
nop
lea eax, [0x585248]
mov dword [esp], eax
mov dword [esp + 4], 1
call dbg.runtime/internal/atomic.Store
mov eax, dword [0x585248]
cmp eax, 1
jne 0x415c78
mov eax, 1
jmp 0x415c7e
cmp eax, 2
sete al
mov byte [0x5853c4], al
test al, al
je 0x415c8f
mov eax, 1
jmp 0x415c96
movzx eax, byte [0x5853c5]
mov byte [0x5853c0], al
nop
mov dword [0x585c58], 0xffffffff
mov dword [0x585c64], 0xffffffff
call dbg.runtime.gcMarkRootPrepare
call dbg.runtime.gcMarkTinyAllocs
lea eax, [0x585240]
mov dword [esp], eax
mov dword [esp + 4], 1
call dbg.runtime/internal/atomic.Store
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [0x585a58], eax
mov dword [0x585a5c], ecx
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x415e90]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call dbg.runtime.systemstack
nop
lea eax, [0x4a8084]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call dbg.runtime.semrelease1
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x415d89
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x415d81
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x415d8f
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x415d8f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415da0
nop
lea eax, [0x4ded90]
mov dword [esp], eax
call dbg.runtime.mcall
nop
lea eax, [0x585c8c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call dbg.runtime.semrelease1
add esp, 0x50
ret
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
call dbg.runtime.printlock
lea eax, [0x4d59de]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call dbg.runtime.printstring
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call dbg.runtime.printint
lea eax, [0x4d53bf]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call dbg.runtime.printstring
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call dbg.runtime.printuint
lea eax, [0x4d5dd2]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call dbg.runtime.printstring
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dbg.runtime.printuint
call dbg.runtime.printnl
call fcn.004343a0
lea eax, [0x4d7d3e]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call dbg.runtime.throw
nop
call dbg.runtime.morestack_noctxt
jmp dbg.runtime.gcStart