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

Disassembly:
mov ecx, dword [0x5fc28c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41b17c
add esp, 0xffffff80
mov eax, dword [esp + 0x84]
test byte [eax], al
lea ecx, [eax + 0x40]
mov dword [esp + 0x7c], ecx
mov dword [esp], ecx
call sym.runtime_internal_atomic.Loadint64
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x8c]
cmp edx, ecx
sete bl
xchg ebp, ebx
setl bl
xchg ebp, ebx
mov esi, dword [esp + 0x88]
cmp esi, eax
xchg edi, ebx
setb bl
xchg edi, ebx
and ebx, edi
or ebp, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x41af81
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0x64], ecx
sar ecx, 0x1f
mov dword [esp + 0x60], ecx
lea ebx, [eax + 0x28]
mov dword [esp + 0x78], ebx
nop
mov ebp, dword [esp + 0x7c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x8c]
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
call sym.runtime_internal_atomic.Storeint64
nop
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sym.runtime_internal_atomic.Loadint64
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 8]
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x20]
sub ebx, ebp
mov ebp, dword [esp + 0x8c]
mov edi, dword [esp + 0x24]
sbb ebp, edi
mov edi, eax
mov eax, ebx
mov esi, dword [esp + 0x64]
mul esi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x60]
imul eax, ebx
imul ebp, esi
add edx, ebp
add eax, edx
mov dword [esp + 0x5c], eax
test edi, edi
setne dl
test ecx, ecx
setne bl
or ebx, edx
test bl, bl
je 0x41aeb2
mov eax, dword [esp + 0x78]
mov dword [esp], eax
xor eax, eax
sub eax, ecx
mov edx, 0
sbb edx, edi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym.runtime_internal_atomic.Xaddint64
mov eax, dword [esp + 0x84]
lea ecx, [eax + 0x38]
mov dword [esp + 0x7c], ecx
nop
mov dword [esp], ecx
call sym.runtime_internal_atomic.Loadint64
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
setne bl
test ecx, ecx
xchg ebp, ebx
setne bl
xchg ebp, ebx
or ebp, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x41af1a
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x7c]
mov dword [esp], edx
xor edx, edx
sub edx, ecx
mov ebx, 0
sbb ebx, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
call sym.runtime_internal_atomic.Xaddint64
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x84]
movzx ebx, byte [eax + 0x50]
test bl, bl
jne 0x41af77
mov ebx, dword [0x5fc28c]
mov ebx, dword fs:[ebx]
mov ebx, dword [ebx]
mov ebp, dword [ebx + 0x18]
nop
inc dword [ebp + 0x7c]
mov ebp, dword [0x5d7390]
mov dword [esp + 0x74], ebp
mov esi, dword [0x5d7394]
mov dword [esp + 0x58], esi
mov ebx, dword [ebx + 0x18]
mov dword [esp + 0x70], ebx
xor edi, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
xor edi, edi
mov eax, dword [esp + 0x68]
jmp 0x41b05c
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
jmp 0x41af85
sub esp, 0xffffff80
ret
movzx esi, byte [eax + 0x20]
xchg esi, eax
test al, al
xchg esi, eax
je 0x41b00e
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call sym.runtime.fint64to64
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 0xc], 0x3fd00000
mov dword [esp + 8], 0
call sym.runtime.fmul64
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], ecx
call sym.runtime.f64toint64
mov ebp, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x34]
add ebp, eax
mov eax, dword [esp + 0x38]
adc ebx, eax
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x5c]
sbb ecx, edx
sub eax, ebp
sbb ecx, ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebp
call sym.runtime._gcCPULimiterState_.accumulate
sub esp, 0xffffff80
ret
mov ebp, dword [esp + 0x54]
lea edi, [ebp + 1]
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x84]
mov ebx, dword [esp + 0x70]
cmp edi, esi
jge 0x41b12f
mov dword [esp + 0x54], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov eax, dword [ebp + edi*4]
test byte [eax], al
add eax, 0x948
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 4], ecx
call sym.runtime._limiterEvent_.consume
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], edx
cmp al, 1
ja 0x41b0c8
test al, al
jne 0x41b0f0
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
jmp 0x41b03a
cmp al, 2
je 0x41b0d2
cmp al, 3
jne 0x41b0eb
mov eax, dword [esp + 0x4c]
add eax, ecx
mov ebx, dword [esp + 0x50]
adc ebx, edx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
jmp 0x41b03a
cmp al, 4
jne 0x41b165
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x14]
lea edx, [0x5d8280]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call sym.runtime_internal_atomic.Xaddint64
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
add ecx, eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
adc edx, eax
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
jmp 0x41b03a
mov ebp, dword [ebx + 0x7c]
lea esi, [ebp - 1]
nop
mov edi, dword [0x5fc28c]
mov edi, dword fs:[edi]
mov edi, dword [edi]
mov dword [ebx + 0x7c], esi
cmp ebp, 1
jne 0x41b158
movzx ebx, byte [edi + 0x65]
test bl, bl
je 0x41b158
mov dword [edi + 8], 0xfffffade
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
jmp 0x41af85
lea eax, [0x511f28]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call sym.runtime.throw
nop
call sym.runtime.morestack_noctxt
jmp sym.runtime._gcCPULimiterState_.updateLocked