Function at 0x420510
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x42094c
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
cmp byte [0x007ef9d4], 0
je 0x420932
mov rdx, qword gs:[0x28]
mov rdx, qword [rdx]
mov rdx, qword [rdx + 0x30]
mov rdx, qword [rdx + 0x90]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rbx + 0x18]
mov rdi, qword [rsp + 0x60]
test rdi, 0xc
je 0x420914
bt edi, 2
jae 0x4208f8
lea rax, sym.a.out.exe_runtime.pollWork
lea r8, [rsi + 0x186a0]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rax
mov r9d, dword [0x007d1e8c]
bt edi, 0
bt edi, 1
cmp dword [0x007d1e88], r9d
jae 0x4208ef
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
bt edi, 0
jmp 0x4205ef
mov rdi, qword [rsp + 0x60]
bt edi, 0
mov r9, qword [rsp + 0x58]
mov r10, qword [rsp + 0x38]
mov rax, rdx
mov rdx, r10
mov rbx, r9
mov rsi, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
jae 0x4205fe
cmp byte [rdx + 0xb1], 0
jne 0x4208e6
mov r9d, 1
lea r10, [0x007d1e88]
lock xadd dword [r10], r9d
mov r11d, dword [0x007d1e8c]
cmp r9d, r11d
jae 0x4206a1
mov qword [rsp], rbx
mov dword [rsp + 8], r9d
call sym.a.out.exe_runtime.markroot
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x420691
xor eax, eax
test al, al
je 0x4205c9
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx + 0x18]
test rdx, rdx
jle 0x420670
lea rbx, [sym.a.out.exe_runtime.gcController]
lock xadd qword [rbx], rdx
mov rdx, qword [rsp + 0x60]
bt edx, 1
jb 0x42067a
mov qword [rcx + 0x18], 0
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov rdx, qword [rcx + 0x18]
sub rdx, rax
mov qword [rsp], rdx
call sym.a.out.exe_runtime.gcFlushBgCredit
mov rcx, qword [rsp + 0x58]
jmp 0x420668
mov rax, qword [rdx]
call rax
movzx eax, byte [rsp]
mov rdx, qword [rsp + 0x40]
jmp 0x42063a
bt edi, 0
jmp 0x4206c2
mov r9, qword [rsp + 0x38]
mov rax, rdx
mov rdx, r9
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r8, rsi
mov rsi, rcx
jae 0x4206d1
cmp byte [rdx + 0xb1], 0
jne 0x4208d8
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x18], r8
cmp qword [sym.a.out.exe_runtime.work], 0
je 0x4208ac
mov r9, qword [rbx]
test r9, r9
je 0x4208a5
mov r10, qword [r9 + 0x10]
test r10, r10
jne 0x420886
xor ecx, ecx
test rcx, rcx
je 0x42082c
test rcx, rcx
je 0x42081e
mov qword [rsp], rcx
mov qword [rsp + 8], rbx
call sym.a.out.exe_runtime.scanobject
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x18]
cmp rcx, 0x7d0
jl 0x420801
lea rbx, [sym.a.out.exe_runtime.gcController]
lock xadd qword [rbx], rcx
mov rbx, qword [rsp + 0x60]
bt ebx, 1
jb 0x4207db
mov rcx, qword [rsp + 0x30]
mov rsi, qword [rax + 0x18]
mov qword [rax + 0x18], 0
mov rdi, qword [rsp + 0x18]
sub rdi, rsi
test rdi, rdi
jg 0x4207ca
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x42079c
xor esi, esi
test sil, sil
jne 0x420794
lea rsi, [rdi + 0x186a0]
bt ebx, 0
jmp 0x4206a7
mov rax, rcx
jmp 0x420643
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rcx
mov rax, qword [rdx]
call rax
movzx esi, byte [rsp]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x28]
jmp 0x42077f
bt ebx, 0
mov rdx, qword [rsp + 0x40]
mov rsi, rdi
jmp 0x4206a7
mov rcx, qword [rax + 0x18]
mov rdx, qword [rsp + 0x30]
sub rcx, rdx
mov qword [rsp], rcx
call sym.a.out.exe_runtime.gcFlushBgCredit
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
xor ecx, ecx
jmp 0x42075a
mov rbx, qword [rsp + 0x60]
bt ebx, 0
mov rdx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x18]
mov rcx, qword [rsp + 0x30]
jmp 0x4206a7
mov rax, rbx
mov rbx, rdi
mov rcx, rsi
jmp 0x420794
mov qword [rsp], rbx
call sym.a.out.exe_runtime._gcWork_.tryGet
mov rax, qword [rsp + 8]
test rax, rax
je 0x420865
mov rdx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x18]
mov rcx, rax
mov rax, qword [rsp + 0x40]
jmp 0x42070d
xorps xmm0, xmm0
movups xmmword [rsp], xmm0
call sym.a.out.exe_runtime.wbBufFlush
mov rax, qword [rsp + 0x58]
mov qword [rsp], rax
call sym.a.out.exe_runtime._gcWork_.tryGet
mov rax, qword [rsp + 8]
jmp 0x42083f
lea r11, [r10 - 1]
mov qword [r9 + 0x10], r11
cmp r11, 0xfd
jae 0x420925
mov rcx, qword [r9 + r10*8 + 0x10]
jmp 0x420704
xor ecx, ecx
jmp 0x420704
mov qword [rsp], rbx
call sym.a.out.exe_runtime._gcWork_.balance
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x18]
jmp 0x4206e9
mov rax, rbx
mov rbx, rdi
mov rcx, rsi
jmp 0x420794
bt edi, 0
jmp 0x4206c2
bt edi, 0
jmp 0x4206c2
test rdi, 8
mov eax, 0
lea r8, sym.a.out.exe_runtime.pollFractionalWorkerExit
cmovne rax, r8
jmp 0x42058c
movabs r8, 0x7fffffffffffffff
xor eax, eax
jmp 0x420593
mov rax, r11
mov ecx, 0xfd
call sym.a.out.exe_runtime.panicIndex
lea rax, [0x00664742]
mov qword [rsp], rax
mov qword [rsp + 8], 0x17
call sym.a.out.exe_runtime.throw
nop
call sym.a.out.exe_runtime.morestack_noctxt
jmp sym.a.out.exe_runtime.gcDrain