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

Disassembly:
push 0xffffffffffffffff
push 0x521ff02
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov ebp, ecx
mov byte [ebp + 0x32d], 1
lea edi, [ebp + 0x638]
mov ecx, 0x19
mov esi, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 0x328], 1
mov dword [ebp + 0x428], eax
mov esi, 0x525151c
je 0x50640cf
mov esi, 0x5251518
push 0x52c722a
push 1
push 0xb2a
push str..META_Handle.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov dword [esp + 0x80], 0
mov ecx, dword [ebx]
mov edx, dword [ebp]
push esi
push ecx
mov ecx, dword [ebp + 8]
push str.META_HANDLE::WaitTargetAliveByUsb
push edx
push str.__d___s_COM_d_:_TST_message_is__s_format.
push ecx
push eax
call fcn.051ae2d0
or ebx, 0xffffffff
add esp, 0x1c
mov dword [esp + 0x80], ebx
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov edx, dword [esp + 0x18]
cmp dword [edx], 0x2694
je 0x50641f1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x52c722a
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x9c], 2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x6c], esp
push 0x52c722a
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0xb8], 3
lea eax, [ebp + 0x304]
push eax
mov dword [esp + 0xbc], ebx
lea ecx, [esp + 0x74]
call fcn.051aef90
mov dword [esp + 0x80], 4
mov eax, dword [ebp]
push 1
push 0x1388
push eax
call sym.META_DLL.dll_META_WaitForTargetReady_r
mov edi, eax
mov dword [esp + 0x80], ebx
lea ecx, [esp + 0x38]
call fcn.051af090
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
sub esi, dword [ebp + 0x428]
test edi, edi
je 0x5064267
cmp edi, 0x1e
je 0x506428f
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x60], esi
jb 0x50642a6
mov ecx, dword [esp + 0x18]
cmp dword [ecx], 0x2694
jne 0x5064136
push str._ERROR:
push 0xff
push 0xb30
push str..META_Handle.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov dword [esp + 0x80], 1
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [ecx]
mov ecx, dword [ebp]
push edx
mov edx, dword [ebp + 8]
push str.META_HANDLE::WaitTargetAliveByUsb
push ecx
push str.__d___s_COM_d_:_p_bootstop_0x_08X_BOOT_STOP.
push edx
push eax
call fcn.051ae2d0
add esp, 0x1c
mov dword [esp + 0x80], ebx
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
push 0x539d928
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x1d
call sub.MSVCR90.dll__CxxThrowException
mov byte [ebp + 0x32d], 0
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0520b902
add esp, 0x70
ret 8
push 0x539d928
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x1e
call sub.MSVCR90.dll__CxxThrowException
push str._ERROR:
push 0xff
push 0xb46
push str..META_Handle.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov dword [esp + 0x80], 5
mov edx, dword [edi + 0x60]
mov ecx, dword [edi]
push esi
push edx
mov edx, dword [ebp]
push ecx
mov ecx, dword [ebp + 8]
push str.META_HANDLE::WaitTargetAliveByUsb
push edx
push str.__d___s_COM_d_:_wait_for_target_ready_timeout__req__ms_connect_timeout__lu____ms_total_bootup_time__lu_
push ecx
push eax
call fcn.051ae2d0
add esp, 0x20
mov dword [esp + 0x80], ebx
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
push 0x539d928
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x24
call sub.MSVCR90.dll__CxxThrowException
int3