Function at 0x140009140
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [0x140043978]
or eax, dword [0x140043974]
mov rsi, rcx
mov edi, edx
mov ebx, r8d
jne 0x1400091e0
mov rax, qword [0x140043eb8]
mov rdx, qword [0x14006e448]
cmp rdx, rax
jae 0x14000919c
mov rcx, qword [0x140043e10]
or rcx, qword [0x14006e440]
je 0x14000919c
sub rax, rdx
imul rax, rax, 0x2710
cmp qword [0x140043e00], rax
jb 0x1400091a5
call sym.GC_should_collect.lto_priv.0
test eax, eax
je 0x1400091e0
lea rcx, [sym.GC_never_stop_func]
call sym.GC_try_to_collect_inner
mov ebp, eax
cmp eax, 1
je 0x1400091bd
and ebx, 1
jne 0x1400091e5
mov rax, qword [0x140043eb8]
mov qword [0x14006e448], rax
mov rax, qword [0x140043e10]
mov qword [0x14006e440], rax
jmp 0x140009450
mov ebp, 1
mov rcx, qword [0x140035250]
mov rax, qword [0x140043dc0]
xor edx, edx
shl rcx, 0xc
div rcx
lea rbx, [rax + rsi]
cmp rbx, 0x800
jbe 0x140009247
mov ebx, 4
test edi, edi
jne 0x140009227
mov rbx, qword [0x140035268]
shr rbx, 0xc
add rbx, rbx
cmp rbx, rsi
cmova rbx, rsi
movabs rax, 0xfffffffffffff
add rbx, rsi
cmp rbx, rax
cmova rbx, rax
mov eax, 0x800
cmp rbx, rax
cmovb rbx, rax
mov rcx, rbx
call sym.GC_expand_hp_inner
mov edi, eax
test eax, eax
jne 0x140009438
cmp rbx, rsi
je 0x14000926e
mov rcx, rsi
call sym.GC_expand_hp_inner
test eax, eax
jne 0x140009438
test ebp, ebp
je 0x140009490
mov eax, dword [0x140043138]
cmp rax, qword [0x14006e438]
lea edx, [rax + 1]
mov dword [0x140043138], edx
jae 0x140009470
xor edx, edx
lea rcx, str.GC_Warning:_Out_of_Memory___Trying_to_continue..._n
call sym.GC_default_warn_proc.lto_priv.0
mov r12d, dword [0x140043974]
test r12d, r12d
jne 0x140009450
mov ebp, dword [0x140043978]
test ebp, ebp
je 0x1400092f0
mov edi, dword [0x140043e90]
test edi, edi
je 0x1400092f0
mov esi, dword [0x140043d94]
test esi, esi
jne 0x1400098c2
nop word [rax + rax]
mov ecx, 1
call sym.GC_collect_a_little_inner.lto_priv.0
mov r11d, dword [0x140043e90]
test r11d, r11d
jne 0x1400092d8
nop
mov ebx, dword [0x140043d94]
xor esi, esi
test ebx, ebx
jne 0x1400095f0
call sym.GC_promote_black_lists
mov r10d, dword [0x140043970]
test r10d, r10d
jne 0x140009683
mov rax, qword [0x140043e50]
mov rdi, qword [0x140043e28]
mov dword [0x140043e90], 5
sub rax, 0x10
mov qword [0x140043e60], rax
test rdi, rdi
je 0x1400093a3
nop dword [rax]
mov r11d, 0x3ff
jmp 0x140009378
test byte [rax + 0x19], 4
jne 0x14000936f
mov rcx, qword [rdi + 0x2010]
xor edx, edx
shl rcx, 0xa
add rcx, r11
shl rcx, 0xc
call sym.clear_marks_for_block
sub r11, 1
test r11, r11
js 0x140009397
mov rax, qword [rdi + r11*8]
cmp rax, 0xfff
ja 0x140009350
lea rdx, [r11 - 1]
sub r11, rax
test rax, rax
cmove r11, rdx
test r11, r11
jns 0x140009378
mov rdi, qword [rdi + 0x2000]
test rdi, rdi
jne 0x140009340
lea rcx, [sym.GC_never_stop_func]
mov dword [0x140043e98], 0
mov dword [0x140043e90], 5
mov qword [0x140043e80], 0
mov dword [0x1400724fc], 1
call sym.GC_stopped_mark
test eax, eax
jne 0x14000960e
mov r9d, dword [0x140043978]
test r9d, r9d
jne 0x140009450
mov rax, qword [0x140043e50]
mov r8d, dword [0x140043d98]
mov dword [0x140043e90], 5
sub rax, 0x10
mov qword [0x140043e60], rax
test r8d, r8d
je 0x140009888
mov rdx, qword [0x140043db0]
mov rcx, qword [0x140043da0]
mov r8d, 0x8000
call sym.memcpy
jmp 0x140009450
mov edx, dword [0x140043138]
test edx, edx
je 0x140009450
mov eax, dword [0x140043d94]
test eax, eax
jne 0x14000973d
mov edi, 1
mov eax, edi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [0x140043dc0]
lea rcx, str.GC_Warning:_Out_of_Memory__Heap_size:__ld_MiB._Returning_NULL__n
shr rdx, 0x14
call sym.GC_default_warn_proc.lto_priv.0
jmp 0x140009455
mov eax, dword [0x140043974]
test eax, eax
jne 0x140009450
mov eax, dword [0x140043978]
test eax, eax
jne 0x140009647
mov ebx, dword [0x140043d94]
xor esi, esi
test ebx, ebx
je 0x1400094cd
lea rcx, str.Initiating_full_world_stop_collection__n
mov ebx, 1
call sym.GC_log_printf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call sym.GC_promote_black_lists
mov r14d, dword [0x140043970]
test r14d, r14d
jne 0x140009798
mov rax, qword [0x140043e50]
mov rdi, qword [0x140043e28]
mov dword [0x140043e90], 5
sub rax, 0x10
mov qword [0x140043e60], rax
test rdi, rdi
je 0x140009573
nop word [rax + rax]
mov r11d, 0x3ff
jmp 0x140009548
test byte [rax + 0x19], 4
jne 0x14000953f
mov rcx, qword [rdi + 0x2010]
xor edx, edx
shl rcx, 0xa
add rcx, r11
shl rcx, 0xc
call sym.clear_marks_for_block
sub r11, 1
test r11, r11
js 0x140009567
mov rax, qword [rdi + r11*8]
cmp rax, 0xfff
ja 0x140009520
lea rdx, [r11 - 1]
sub r11, rax
test rax, rax
cmove r11, rdx
test r11, r11
jns 0x140009548
mov rdi, qword [rdi + 0x2000]
test rdi, rdi
jne 0x140009510
lea rcx, [sym.GC_never_stop_func]
mov dword [0x140043e98], 0
mov dword [0x140043e90], 5
mov qword [0x140043e80], 0
mov dword [0x1400724fc], 1
call sym.GC_stopped_mark
test eax, eax
je 0x1400093e0
call sym.GC_finish_collection
test ebx, ebx
je 0x140009450
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, dword [0x140043d94]
mov edx, eax
test r13d, r13d
je 0x140009450
sub edx, esi
xor r8d, r8d
lea rcx, str.Complete_collection_took__lu_ms__lu_ns_n
call sym.GC_log_printf
jmp 0x140009450
lea rcx, str.Initiating_full_world_stop_collection__n
mov ebx, 1
call sym.GC_log_printf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
jmp 0x140009300
call sym.GC_finish_collection
test ebx, ebx
je 0x140009450
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x140043d94]
test ecx, ecx
je 0x140009450
sub eax, esi
xor r8d, r8d
lea rcx, str.Complete_collection_took__lu_ms__lu_ns_n
mov edx, eax
call sym.GC_log_printf
jmp 0x140009450
mov eax, dword [0x140043e90]
test eax, eax
je 0x1400094a8
mov eax, dword [0x140043d94]
test eax, eax
jne 0x1400098e1
nop dword [rax + rax]
mov ecx, 1
call sym.GC_collect_a_little_inner.lto_priv.0
mov r15d, dword [0x140043e90]
test r15d, r15d
jne 0x140009668
jmp 0x1400094a8
xor r13d, r13d
cmp dword [0x140043d94], 2
je 0x1400098a6
lea rbp, [0x140035040]
lea r14, [rbp + 0x60]
mov rax, qword [rbp + 8]
lea rdi, [0x140043dc0]
lea r15, [rax + 8]
lea r12, [rax + 0x408]
test rax, rax
je 0x14000975b
nop dword [rax]
mov r8, qword [r15]
test r8, r8
je 0x14000974e
mov rdx, r8
shr rdx, 0x16
mov rax, rdx
and eax, 0x7ff
mov rax, qword [rdi + rax*8 + 0x263d0]
cmp qword [rax + 0x2010], rdx
je 0x140009738
mov rcx, qword [0x140043e78]
jmp 0x140009708
mov rax, qword [rax + 0x2018]
cmp rdx, qword [rax + 0x2010]
je 0x140009738
cmp rax, rcx
jne 0x1400096f8
mov rax, r8
shr rax, 0xc
and eax, 0x3ff
mov rax, qword [rcx + rax*8]
mov rcx, r8
mov rdx, qword [rax]
mov qword [r15], rdx
mov rdx, qword [rax + 0x20]
call sym.GC_reclaim_small_nonempty_block.constprop.0
jmp 0x1400096c0
mov rcx, rax
jmp 0x14000970d
lea rcx, str.Memory_available_again..._n
call sym.GC_log_printf
jmp 0x140009450
add r15, 8
cmp r12, r15
jne 0x1400096c0
add rbp, 0x20
cmp r14, rbp
jne 0x14000969e
cmp dword [0x140043d94], 2
jne 0x140009315
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r8d, r8d
lea rcx, str.Disposing_of_reclaim_lists_took__lu_ms__lu_ns_n
sub eax, r13d
mov edx, eax
call sym.GC_log_printf
jmp 0x140009315
xor r13d, r13d
cmp dword [0x140043d94], 2
je 0x1400098b4
lea rbp, [0x140035040]
lea r14, [rbp + 0x60]
mov rax, qword [rbp + 8]
lea rdi, [0x140043dc0]
lea r15, [rax + 8]
lea r12, [rax + 0x408]
test rax, rax
je 0x14000984b
nop
mov r8, qword [r15]
test r8, r8
je 0x140009842
mov rdx, r8
shr rdx, 0x16
mov rax, rdx
and eax, 0x7ff
mov rax, qword [rdi + rax*8 + 0x263d0]
cmp rdx, qword [rax + 0x2010]
je 0x14000981d
mov rcx, qword [0x140043e78]
jmp 0x140009818
mov rax, qword [rax + 0x2018]
cmp rdx, qword [rax + 0x2010]
je 0x14000981d
cmp rcx, rax
jne 0x140009808
mov rdx, r8
mov rcx, r8
shr rdx, 0xc
and edx, 0x3ff
mov rax, qword [rax + rdx*8]
mov rdx, qword [rax]
mov qword [r15], rdx
mov rdx, qword [rax + 0x20]
call sym.GC_reclaim_small_nonempty_block.constprop.0
jmp 0x1400097d0
add r15, 8
cmp r12, r15
jne 0x1400097d0
add rbp, 0x20
cmp r14, rbp
jne 0x1400097b3
cmp dword [0x140043d94], 2
jne 0x1400094e2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r8d, r8d
lea rcx, str.Disposing_of_reclaim_lists_took__lu_ms__lu_ns_n
sub eax, r13d
mov edx, eax
call sym.GC_log_printf
jmp 0x1400094e2
mov rdx, qword [0x140043db8]
mov rcx, qword [0x140043da8]
mov r8d, 0x8000
call sym.memcpy
jmp 0x140009418
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
jmp 0x140009693
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
jmp 0x1400097a8
lea rcx, str.GC_try_to_collect_inner:_finishing_collection_in_progress_n
call sym.GC_log_printf
mov ebx, dword [0x140043e90]
test ebx, ebx
jne 0x1400092d8
jmp 0x1400092f0
lea rcx, str.GC_try_to_collect_inner:_finishing_collection_in_progress_n
call sym.GC_log_printf
mov eax, dword [0x140043e90]
test eax, eax
jne 0x140009668
jmp 0x1400094a8