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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
cmp dword [0x42a7dc], 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], 0
je 0x40f800
mov dword [esp + 0x20], 0x421700
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
lea ecx, [eax + 0x404]
lea ebp, [eax + 4]
mov dword [esp + 0x28], ecx
test eax, eax
je 0x40f5d0
mov ecx, dword [esp + 0x24]
mov ebx, dword [ebp]
test ecx, ecx
je 0x40f620
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f6c0
test ebx, ebx
je 0x40f5b9
lea esi, [esi]
nop
mov eax, dword [esp + 0x18]
call eax
test eax, eax
jne 0x40f558
mov eax, ebx
shr eax, 0x16
mov edx, dword [eax*4 + 0x446214]
mov eax, ebx
shr eax, 0xc
and eax, 0x3ff
mov edx, dword [edx + eax*4]
mov eax, dword [0x42a7d8]
mov ecx, dword [edx]
movzx edi, word [edx + 0xe]
lea esi, [eax - 1]
mov dword [ebp], ecx
cmp edi, esi
je 0x40f570
test ecx, ecx
je 0x40f5b9
mov ebx, ecx
mov eax, dword [esp + 0x18]
call eax
test eax, eax
je 0x40f51a
xor ebx, ebx
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
movzx esi, byte [edx + 0xc]
mov ecx, dword [edx + 0x10]
lea edi, [esi + esi*4]
mov dword [esp + 0x1c], ecx
mov esi, ecx
mov ecx, dword [edi*4 + 0x421700]
shr esi, 3
mov word [edx + 0xe], ax
lea esi, [ecx + esi*4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [edi*4 + 0x421710]
mov dword [esp], eax
mov eax, ebx
call sym._GC_reclaim_generic.constprop.48
mov dword [esi], eax
mov ebx, dword [ebp]
test ebx, ebx
jne 0x40f510
add ebp, 4
cmp ebp, dword [esp + 0x28]
jne 0x40f4e8
lea esi, [esi]
lea esi, [esi]
add dword [esp + 0x20], 0x14
mov eax, dword [esp + 0x20]
cmp eax, 0x42173c
jne 0x40f4cc
cmp dword [0x42a7dc], 2
mov ebx, 1
jne 0x40f55a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x2c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], str.Disposing_of_reclaim_lists_took__lu_ms__lu_ns_n
call sym._GC_log_printf
jmp 0x40f55a
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x40f69b
jmp 0x40f770
mov eax, dword [esp + 0x18]
call eax
test eax, eax
jne 0x40f558
mov eax, ebx
shr eax, 0x16
mov edx, dword [eax*4 + 0x446214]
mov eax, ebx
shr eax, 0xc
and eax, 0x3ff
mov edx, dword [edx + eax*4]
mov eax, dword [edx]
mov ecx, dword [edx + 0x10]
mov dword [ebp], eax
movzx eax, byte [edx + 0xc]
mov edi, ecx
shr edi, 3
lea eax, [eax + eax*4]
mov esi, dword [eax*4 + 0x421700]
mov eax, dword [eax*4 + 0x421710]
lea esi, [esi + edi*4]
mov edi, dword [0x42a7d8]
mov word [edx + 0xe], di
mov edi, dword [esi]
mov dword [esp], eax
mov eax, ebx
mov dword [esp + 4], edi
call sym._GC_reclaim_generic.constprop.48
mov dword [esi], eax
mov ebx, dword [ebp]
test ebx, ebx
jne 0x40f630
add ebp, 4
cmp ebp, dword [esp + 0x28]
jne 0x40f4e8
jmp 0x40f5d0
test ebx, ebx
je 0x40f5b9
lea esi, [esi]
nop
mov edi, dword [0x42a7d8]
mov eax, ebx
lea ecx, [edi - 1]
shr eax, 0x16
mov edx, dword [eax*4 + 0x446214]
mov eax, ebx
shr eax, 0xc
and eax, 0x3ff
mov edx, dword [edx + eax*4]
mov eax, dword [edx]
movzx esi, word [edx + 0xe]
mov dword [ebp], eax
cmp esi, ecx
je 0x40f710
test eax, eax
je 0x40f5b9
mov ebx, eax
jmp 0x40f6d6
movzx eax, byte [edx + 0xc]
mov ecx, dword [edx + 0x10]
lea eax, [eax + eax*4]
mov dword [esp + 0x1c], ecx
mov esi, ecx
mov ecx, dword [eax*4 + 0x421700]
shr esi, 3
mov word [edx + 0xe], di
mov eax, dword [eax*4 + 0x421710]
lea esi, [ecx + esi*4]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esi]
mov dword [esp], eax
mov eax, ebx
mov dword [esp + 4], edi
call sym._GC_reclaim_generic.constprop.48
mov dword [esi], eax
mov ebx, dword [ebp]
test ebx, ebx
jne 0x40f6d0
add ebp, 4
cmp ebp, dword [esp + 0x28]
jne 0x40f4e8
jmp 0x40f5d0
test ebx, ebx
je 0x40f5b9
mov eax, ebx
lea esi, [esi]
mov edx, eax
shr edx, 0x16
mov ecx, dword [edx*4 + 0x446214]
mov edx, eax
shr edx, 0xc
and edx, 0x3ff
mov edx, dword [ecx + edx*4]
mov ecx, dword [edx]
mov dword [ebp], ecx
movzx ebx, byte [edx + 0xc]
mov ecx, dword [edx + 0x10]
lea esi, [ebx + ebx*4]
mov ebx, dword [esi*4 + 0x421700]
mov edi, ecx
mov esi, dword [esi*4 + 0x421710]
shr edi, 3
lea ebx, [ebx + edi*4]
mov edi, dword [0x42a7d8]
mov word [edx + 0xe], di
mov edi, dword [ebx]
mov dword [esp], esi
mov dword [esp + 4], edi
call sym._GC_reclaim_generic.constprop.48
mov dword [ebx], eax
mov eax, dword [ebp]
test eax, eax
jne 0x40f780
add ebp, 4
cmp ebp, dword [esp + 0x28]
jne 0x40f4e8
jmp 0x40f5d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x2c], eax
jmp 0x40f4c4