Function at 0x406aa0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov dword [esp + 4], edx
lea edx, [esp + 0x50]
mov edi, ecx
mov eax, dword [0x448010]
xor eax, ebp
mov dword [esp + 0x60], eax
call fcn.00406780
cmp byte [esp + 0x5c], 1
je 0x406cbf
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ebx, [esp + 0x28]
and eax, 0xfffffffc
mov ecx, ebx
push eax
call fcn.00401ea0
cmp dword [esp + 0x30], 0
je 0x406ccf
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x40]
mov ecx, edi
mov esi, dword [eax + 8]
call fcn.00406d90
cmp byte [esp + 0x4c], 1
je 0x406cf0
cmp byte [esp + 0x44], 0
je 0x406c39
cmp dword [esp + 0x40], esi
jne 0x406c39
mov esi, dword [ebp + 8]
cmp esi, 1
jne 0x406b79
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], eax
mov byte [edi + 0x18], 1
mov edi, dword [esp + 4]
mov byte [edi + 0xc], 0
mov dword [edi], 1
mov ecx, dword [esp + 0x60]
xor ecx, ebp
call fcn.0043c380
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x50]
cmp eax, 1
jne 0x406c7c
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00406ee0
cmp byte [esp + 0x38], 1
je 0x406d0e
lea edx, [esp + 0x10]
mov ecx, edi
call fcn.00406f30
cmp byte [esp + 0x20], 1
je 0x406c69
mov dl, byte [esp + 0x30]
mov eax, dword [ebp + 0xc]
test dl, dl
setne cl
cmp byte [esp + 0x18], 0
setne ch
xor ch, cl
jne 0x406d1e
test esi, esi
mov ecx, esi
jne 0x406bf0
test dl, dl
mov ecx, esi
je 0x406bf0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x10]
sbb edx, dword [esp + 0x14]
setae cl
movzx ecx, cl
cmp eax, 1
je 0x406bf7
mov esi, ecx
test esi, esi
jne 0x406d52
lea eax, [esp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movsd xmm0, qword [esp + 8]
movsd qword [edi], xmm0
add edi, 8
mov byte [edi], 1
mov edi, dword [esp + 4]
mov byte [edi + 0xc], 0
mov dword [edi], esi
jmp 0x406b64
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00406de0
cmp byte [esp + 0x34], 1
je 0x406d0e
lea edx, [esp + 0x10]
mov ecx, edi
push esi
call fcn.00406e90
add esp, 4
cmp byte [esp + 0x1c], 1
jne 0x406b25
mov edi, dword [esp + 4]
movsd xmm0, qword [esp + 0x10]
mov eax, dword [esp + 0x18]
jmp 0x406cfe
test eax, eax
jne 0x406d31
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [edi + 4], ecx
mov dword [edi], eax
mov byte [edi + 8], 1
mov edi, dword [esp + 4]
mov byte [edi + 0xc], 0
mov dword [edi], 0
jmp 0x406b64
mov edi, dword [esp + 4]
movsd xmm0, qword [esp + 0x50]
mov eax, dword [esp + 0x58]
jmp 0x406cfe
mov edi, dword [esp + 4]
mov byte [edi + 0xc], 1
mov dword [edi], str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov dword [edi + 4], 0x21
mov dword [edi + 8], 0x800700c1
jmp 0x406b64
mov edi, dword [esp + 4]
movsd xmm0, qword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov byte [edi + 0xc], 1
movsd qword [edi], xmm0
mov dword [edi + 8], eax
jmp 0x406b64
mov edi, dword [esp + 4]
movsd xmm0, qword [esp + 0x28]
mov eax, dword [esp + 0x30]
jmp 0x406cfe
mov ecx, 1
cmp eax, 1
jne 0x406bf5
jmp 0x406bf7
mov edi, dword [esp + 4]
mov byte [edi + 0xc], 1
mov dword [edi], str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov dword [edi + 4], 0xed
mov dword [edi + 8], 0x80070507
jmp 0x406b64
cmp esi, 1
jne 0x406d6d
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
add edi, 0x18
jmp 0x406c27
mov edi, dword [esp + 4]
mov byte [edi + 0xc], 1
mov dword [edi], str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov dword [edi + 4], 0x131
mov dword [edi + 8], 0x80070507
jmp 0x406b64