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

Disassembly:
push 0xffffffffffffffff
push 0x5220aea
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 ecx, dword [esp + 0x90]
mov dword [esp + 0x18], ecx
mov byte [ebp + 0x32d], 1
lea edi, [ebp + 0x638]
mov ecx, 0x19
mov esi, ebx
mov dword [esp + 0x14], 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 0x506a166
mov esi, 0x5251518
push 0x52c722a
push 1
push 0xa75
push str..META_Handle.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov dword [esp + 0x80], 0
mov edx, dword [ebx]
mov ecx, dword [ebp]
push esi
push edx
mov edx, dword [ebp + 8]
push str.META_HANDLE::CheckAliveLoopByUsb
push ecx
push str.__d___s_COM_d_:_TST_message_is__s_format.
push edx
push eax
call fcn.051ae2d0
or esi, 0xffffffff
add esp, 0x1c
mov dword [esp + 0x80], esi
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp eax, 0x2694
je 0x506a296
mov edi, edi
cmp eax, 0xeeee
je 0x506a579
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 ecx, [ebp + 0x304]
push ecx
mov dword [esp + 0xbc], esi
lea ecx, [esp + 0x74]
call fcn.051aef90
mov dword [esp + 0x80], 4
mov edx, dword [ebp]
push 1
push 0x1f4
push edx
call sym.META_DLL.dll_META_WaitForTargetReady_r
mov edi, eax
mov dword [esp + 0x80], esi
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 0x506a308
cmp edi, 0x1e
je 0x506a4ec
cmp dword [ebx + 0x60], esi
jb 0x506a503
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
or esi, 0xffffffff
cmp eax, 0x2694
jne 0x506a1d0
push str._ERROR:
push 0xff
push 0xa7b
push str..META_Handle.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov dword [esp + 0x80], 1
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [ebp + 8]
push str.META_HANDLE::CheckAliveLoopByUsb
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], esi
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
push 0x539d928
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x1d
call sub.MSVCR90.dll__CxxThrowException
mov edi, dword [esp + 0x14]
xor ecx, ecx
mov byte [ebp + 0x32d], 0
lea eax, [edi + 0x9c]
mov dword [edi], 0
mov dword [eax], ecx
mov dword [eax + 4], ecx
push eax
mov dword [eax + 8], ecx
mov ecx, dword [ebp]
push str.META_HANDLE::CheckAliveLoopByUsb
push ecx
mov ecx, ebp
call fcn.05062160
test eax, eax
je 0x506a351
push 0x539d928
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
call sub.MSVCR90.dll__CxxThrowException
push 0x52c722a
push 1
push 0xaab
push str..META_Handle.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov dword [esp + 0x80], 6
mov ecx, dword [edi]
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebp]
push edi
push esi
push edx
mov edx, dword [ebp + 8]
push str.META_HANDLE::CheckAliveLoopByUsb
push ecx
push str.__d___s_COM_d_:_OK___ms_total_bootup_time__lu___p_report_0x_08X___meta_ver_required_by_target_0x_08X__.
push edx
push eax
call fcn.051ae2d0
or esi, 0xffffffff
add esp, 0x24
mov dword [esp + 0x80], esi
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov eax, dword [ebp]
push str.META_HANDLE::CheckAliveLoopByUsb
push eax
mov ecx, ebp
call fcn.05066b90
mov ecx, dword [ebp]
push 0
push ecx
mov ecx, ebp
call fcn.05063ff0
mov edx, dword [ebp]
push edx
push str.META_HANDLE::CheckAliveLoopByUsb
mov ecx, ebp
call fcn.05066320
cmp byte [ebp + 0x421], 0
je 0x506a4c1
mov ecx, dword [ebp]
lea eax, [esp + 0x14]
push eax
push ecx
push str.META_HANDLE::CheckAliveLoopByUsb
mov ecx, ebp
call fcn.05068b10
mov edi, eax
test edi, edi
je 0x506a454
push str._WARNING:
push 0xd2
push 0xabe
push str..META_Handle.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov dword [esp + 0x80], 7
mov edx, dword [ebp]
mov ecx, dword [ebp + 8]
push str.META_HANDLE::CheckAliveLoopByUsb
push edx
push str.__d___s:_Retrieve_key_failed
push ecx
push eax
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x80], esi
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x506a463
mov byte [0x53f4a0c], 1
push 0x52c722a
push 1
push 0xac4
push str..META_Handle.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov esi, eax
mov dword [esp + 0x80], 8
push ebx
push edi
call sym.META_DLL.dll_META_GetErrorString
mov edx, dword [ebp]
push eax
mov eax, dword [ebp + 8]
push str.META_HANDLE::CheckAliveLoopByUsb
push edx
push str.__d___s:_Retrieve_key__Result:__s__key_status:__d_
push eax
push esi
call fcn.051ae2d0
add esp, 0x1c
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov ecx, dword [ebp]
push ecx
push str.META_HANDLE::CheckAliveLoopByUsb
mov ecx, ebp
call fcn.0506a0b0
test eax, eax
je 0x506a579
push 0x539d928
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
call sub.MSVCR90.dll__CxxThrowException
push 0x539d928
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x1e
call sub.MSVCR90.dll__CxxThrowException
push str._ERROR:
push 0xff
push 0xa96
push str..META_Handle.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov dword [esp + 0x80], 5
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx]
push esi
push ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [ebp + 8]
push str.META_HANDLE::CheckAliveLoopByUsb
push ecx
push str.__d___s_COM_d_:_wait_for_target_ready_timeout__req__ms_connect_timeout__lu____ms_total_bootup_time__lu_
push edx
push eax
call fcn.051ae2d0
add esp, 0x20
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
push 0x539d928
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x24
call sub.MSVCR90.dll__CxxThrowException
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 0x10