Function at 0x422540
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 + 8]
jbe 0x422999
sub esp, 0x70
mov eax, dword [esp + 0x74]
test byte [eax], al
nop
mov dword [esp], eax
call sym.runtime.lock2
mov eax, dword [0x59ec64]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov ecx, dword [esp + 0x74]
cmp dword [ecx + 4], eax
jne 0x422982
mov dword [esp + 4], 0x412e8480
mov dword [esp], 0
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 8], ecx
call sym.runtime.fgt64
movzx eax, byte [esp + 0x10]
test al, al
je 0x4225b4
mov eax, 0x412e8480
xor ecx, ecx
jmp 0x4225bc
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 0xc], 0x3ff00000
mov dword [esp + 8], 0
call sym.runtime.fmul64
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0x74]
mov ebx, dword [edx + 0x1c]
mov ebp, dword [edx + 0x20]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
call sym.runtime.fdiv64
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], ecx
call sym.runtime.f64toint64
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x64]
mov edx, dword [esp + 8]
mov dword [esp + 0x44], edx
test ecx, ecx
je 0x422666
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x4c], ecx
nop
nop
mov dword [esp], eax
call sym.runtime.unlock2
mov eax, dword [esp + 0x74]
mov edx, dword [eax + 0x64]
mov ecx, dword [edx]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp], ebx
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
jmp 0x42275e
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
nop
call sym.runtime.nanotime1
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 4]
mov dword [esp + 0x30], edx
mov ebx, dword [esp]
mov dword [esp + 0x2c], ebx
mov ebp, dword [ecx + 0xc]
mov esi, dword [ecx + 0x10]
mov edi, dword [ecx + 0x14]
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 0x20]
nop
mov dword [esp], ecx
mov ecx, dword [esp + 0x44]
add ecx, ebx
mov ebx, dword [esp + 0x48]
adc ebx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
call sym.runtime.modtimer
mov eax, dword [esp + 0x74]
mov byte [eax + 8], 1
nop
lea ecx, [0x4dadd0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov word [esp + 8], 0x1313
mov dword [esp + 0xc], 2
call sym.runtime.gopark
call sym.runtime.nanotime1
mov eax, dword [esp]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x34], ecx
nop
nop
mov edx, dword [esp + 0x74]
mov dword [esp], edx
call sym.runtime.lock2
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0xc]
mov dword [esp], ecx
call sym.runtime.deltimer
nop
nop
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call sym.runtime.unlock2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
sbb ecx, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov ebx, dword [esp + 0x74]
mov ebp, dword [ebx + 0x58]
mov esi, dword [ebx + 0x5c]
test esi, esi
xchg esi, ebx
sete bl
xchg esi, ebx
xchg edi, ebx
setg bl
xchg edi, ebx
test ebp, ebp
xchg ebp, ebx
seta bl
xchg ebp, ebx
and esi, ebp
or edi, esi
xchg edi, eax
test al, al
xchg edi, eax
je 0x422806
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sym.runtime.f64toint64
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x74]
mov ebx, dword [edx + 0x58]
mov ebp, dword [edx + 0x5c]
mov esi, dword [esp + 0x3c]
add esi, eax
mov eax, dword [esp + 0x40]
adc eax, ecx
mov dword [esp + 0x38], eax
cmp ebp, eax
sete cl
xchg edi, ebx
setl bl
xchg edi, ebx
cmp esi, ebx
seta al
and ecx, eax
or edi, ecx
xchg edi, eax
test al, al
xchg edi, eax
je 0x4227f4
mov dword [edx + 0x58], 0
mov dword [edx + 0x5c], 0
jmp 0x422802
sub ebx, esi
mov dword [edx + 0x58], ebx
mov eax, dword [esp + 0x38]
sbb ebp, eax
mov dword [edx + 0x5c], ebp
add esp, 0x70
ret
mov edx, dword [ebx + 0x70]
mov eax, dword [edx]
call eax
mov eax, dword [esp]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x3c]
mov dword [esp], ebx
call sym.runtime.fint64to64
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 8], ecx
call sym.runtime.fadd64
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], ecx
mov ebx, dword [esp + 0x58]
mov dword [esp], ebx
call sym.runtime.fint32to64
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call sym.runtime.fmul64
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x64]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x60]
mov dword [esp], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call sym.runtime.fdiv64
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp], ebx
call sym.runtime.fint64to64
mov eax, dword [esp + 0x74]
lea ecx, [eax + 0x24]
mov dword [esp + 0x68], ecx
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 8]
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov ebx, dword [esp + 0x64]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 8], ebx
call sym.runtime.fadd64
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x68]
mov dword [esp], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0x47ae147b
mov dword [esp + 0x10], 0x3f847ae1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call sym.runtime._piController_.next
movzx eax, byte [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x74]
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x20], ebx
test al, al
jne 0x42297e
mov dword [ebp + 0x1c], 0xd2f1a9fc
mov dword [ebp + 0x20], 0x3f50624d
mov dword [ebp + 0x58], 0x2a05f200
mov dword [ebp + 0x5c], 1
mov dword [esp], ebp
call sym.runtime._scavengerState_.controllerFailed
add esp, 0x70
ret
lea eax, [0x4d949f]
mov dword [esp], eax
mov dword [esp + 4], 0x2f
call sym.runtime.throw
nop
call sym.runtime.morestack_noctxt
jmp sym.runtime._scavengerState_.sleep