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

Disassembly:
mov ecx, dword [0x7b1178]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x418fb1
sub esp, 0x7c
mov eax, dword [esp + 0x80]
test byte [eax], al
lea ecx, [eax + 0x38]
mov dword [esp + 0x78], ecx
mov dword [esp], ecx
call sym.internal_runtime_atomic.Loadint64
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x88]
cmp edx, ecx
sete bl
xchg ebp, ebx
setl bl
xchg ebp, ebx
mov esi, dword [esp + 0x84]
cmp esi, eax
xchg edi, ebx
setb bl
xchg edi, ebx
and ebx, edi
or ebx, ebp
test bl, bl
jne 0x418dd2
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x44]
mov dword [esp + 0x68], ecx
sar ecx, 0x1f
mov dword [esp + 0x64], ecx
lea ebp, [eax + 0x20]
mov dword [esp + 0x74], ebp
nop
mov edi, dword [esp + 0x78]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
call sym.internal_runtime_atomic.Storeint64
nop
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call sym.internal_runtime_atomic.Loadint64
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x20]
sub edx, ebx
mov dword [esp + 0x60], edx
mov ebx, dword [esp + 0x88]
mov esi, dword [esp + 0x2c]
sbb ebx, esi
mov esi, eax
mov eax, edx
mov edi, dword [esp + 0x68]
mul edi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
imul eax, ebp
imul ebx, edi
add edx, ebx
add eax, edx
mov dword [esp + 0x60], eax
test esi, esi
setne dl
test ecx, ecx
setne bl
or edx, ebx
test dl, dl
je 0x418d0d
mov eax, dword [esp + 0x74]
mov dword [esp], eax
xor eax, eax
sub eax, esi
mov dword [esp + 4], eax
mov eax, 0
sbb eax, ecx
mov dword [esp + 8], eax
call sym.internal_runtime_atomic.Xaddint64
mov eax, dword [esp + 0x80]
lea ecx, [eax + 0x30]
mov dword [esp + 0x78], ecx
nop
mov dword [esp], ecx
call sym.internal_runtime_atomic.Loadint64
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test ecx, ecx
setne dl
test eax, eax
setne bl
or ebx, edx
test bl, bl
je 0x418d6b
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x78]
mov dword [esp], edx
xor edx, edx
sub edx, eax
mov dword [esp + 4], edx
mov edx, 0
sbb edx, ecx
mov dword [esp + 8], edx
call sym.internal_runtime_atomic.Xaddint64
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x80]
movzx ebx, byte [edx + 7]
test bl, bl
jne 0x418dc8
mov ebx, dword [0x7b1178]
mov ebx, dword fs:[ebx]
mov ebx, dword [ebx]
mov ebp, dword [ebx + 0x18]
nop
inc dword [ebp + 0x7c]
mov ebp, dword [0x791af8]
mov dword [esp + 0x70], ebp
mov esi, dword [0x791afc]
mov dword [esp + 0x5c], esi
mov ebx, dword [ebx + 0x18]
mov dword [esp + 0x6c], ebx
xor edi, edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x68], edi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x4c]
xor edi, edi
jmp 0x418e91
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
jmp 0x418dd6
add esp, 0x7c
ret
movzx esi, byte [edx + 5]
xchg esi, eax
test al, al
xchg esi, eax
je 0x418e3f
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
call sym.runtime.int64tofloat64
movsd xmm0, qword [0x66d9c8]
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call sym.runtime.float64toint64
mov ebp, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
add ebp, eax
mov eax, dword [esp + 0x48]
adc ebx, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov edx, dword [esp + 0x30]
sub edx, eax
mov eax, dword [esp + 0x60]
sbb eax, ecx
sub edx, ebp
mov dword [esp + 4], edx
sbb eax, ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call sym.runtime._gcCPULimiterState_.accumulate
add esp, 0x7c
ret
mov ebp, dword [esp + 0x54]
lea edi, [ebp + 1]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x68], edx
mov dword [esp + 0x58], ecx
mov ecx, eax
mov eax, ebx
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x6c]
cmp edi, esi
jge 0x418f64
mov dword [esp + 0x38], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + edi*4]
test byte [eax], al
add eax, 0x958
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 8], ecx
call sym.runtime._limiterEvent_.consume
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp al, 1
ja 0x418ef9
test al, al
jne 0x418f21
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
jmp 0x418e6b
cmp al, 2
je 0x418f03
cmp al, 3
jne 0x418f1c
mov ebx, dword [esp + 0x58]
add ecx, ebx
mov ebx, dword [esp + 0x68]
adc edx, ebx
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
jmp 0x418e6b
cmp al, 4
jne 0x418f9a
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ecx
lea eax, [0x793d60]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.internal_runtime_atomic.Xaddint64
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
adc ecx, edx
mov edx, dword [esp + 0x68]
mov ebx, eax
mov eax, ecx
mov ecx, dword [esp + 0x58]
jmp 0x418e6b
mov ebp, dword [ebx + 0x7c]
lea esi, [ebp - 1]
nop
mov edi, dword [0x7b1178]
mov edi, dword fs:[edi]
mov edi, dword [edi]
mov dword [ebx + 0x7c], esi
cmp ebp, 1
jne 0x418f8d
movzx ebx, byte [edi + 0x69]
test bl, bl
je 0x418f8d
mov dword [edi + 8], 0xfffffade
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x58]
jmp 0x418dd6
lea eax, [0x62a07d]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call sym.runtime.throw
nop
call sym.runtime.morestack_noctxt
jmp sym.runtime._gcCPULimiterState_.updateLocked