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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x54
test byte [0x7b33c1c4], 8
jne 0x7b330c00
lea esi, [esi]
lea esi, [esi]
mov esi, dword [0x7b33c1c0]
test esi, esi
jne 0x7b330be0
mov ebx, dword [0x7b3429e8]
test ebx, ebx
je 0x7b330b95
call sym._GetTickCount_0
mov dword [esp], 0x7b342a00
mov dword [ebp - 0x14], eax
call sym._EnterCriticalSection_4
mov ebx, dword [0x7b3429e8]
sub esp, 4
test ebx, ebx
je 0x7b330ba0
mov edi, 0xffffffff
mov dword [ebp - 0x18], 0x7b3429e8
mov edx, edi
jmp 0x7b330800
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x7b3307cf
mov edi, dword [0x7b3429d0]
lea ecx, [esi + 1]
cmp dword [0x7b3429d4], esi
je 0x7b330a00
imul esi, esi, 0x1c
mov eax, dword [ebx]
add edi, esi
mov esi, ecx
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x14]
add eax, dword [ebx]
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x14], eax
test byte [ebx + 0x10], 1
je 0x7b3309c4
mov edi, dword [ebp - 0x14]
cmp edi, eax
jae 0x7b3309f3
sub eax, edi
cmp edx, eax
jbe 0x7b3307f4
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x7b330828
mov ebx, ecx
lea eax, [ebx + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
cmp dword [ebp - 0x14], eax
jae 0x7b330781
sub eax, dword [ebp - 0x14]
cmp edx, eax
jbe 0x7b33081b
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x18], eax
test ecx, ecx
jne 0x7b3307fe
mov eax, dword [0x7b3429e4]
mov edi, edx
test eax, eax
je 0x7b33083e
mov dword [esp], eax
call sym._ResetEvent_4
sub esp, 4
mov dword [esp], 0x7b342a00
call sym._LeaveCriticalSection_4
sub esp, 4
test esi, esi
je 0x7b3308c9
sub esi, 1
mov dword [ebp - 0x2c], edi
imul eax, esi, 0x1c
mov dword [ebp - 0x18], eax
jmp 0x7b330881
test ax, ax
je 0x7b330ae5
test byte [0x7b33c1c4], 1
jne 0x7b330b20
sub dword [ebp - 0x18], 0x1c
test esi, esi
je 0x7b3308c6
sub esi, 1
mov ebx, dword [ebp - 0x18]
add ebx, dword [0x7b3429d0]
test byte [0x7b33c1c4], 8
jne 0x7b330a63
movzx edx, word [ebx + 0x10]
mov eax, edx
and eax, 0x30
cmp ax, 0x10
je 0x7b330a50
cmp ax, 0x20
jne 0x7b330860
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym._PulseEvent_4
sub dword [ebp - 0x18], 0x1c
sub esp, 4
test esi, esi
jne 0x7b33087e
mov edi, dword [ebp - 0x2c]
mov eax, dword [0x7b3429e4]
test eax, eax
je 0x7b3308dd
mov dword [esp], eax
call sym._SetEvent_4
sub esp, 4
call sym._GetTickCount_0
mov edx, eax
sub edx, dword [ebp - 0x14]
cmp edi, edx
jb 0x7b330730
mov edx, dword [ebp - 0x14]
add edx, edi
sub edx, eax
je 0x7b330730
mov eax, dword [0x7b3429e0]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
cmp eax, 0x102
je 0x7b330730
test eax, eax
je 0x7b330730
mov ebx, eax
movzx eax, byte [0x7b33c1c4]
test al, 1
je 0x7b330be7
call sym._GetLastError_0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], str.Unexpected_error__ld__ld__in_timer_thread_n
mov dword [esp + 0x10], 0xf6
mov dword [esp + 0xc], str.TIME_MMSysTimeThread
mov dword [esp + 8], 0x7b33fef5
mov dword [esp + 4], 0x7b33c1c4
mov dword [esp], 0
call sym._ros_dbg_log
movzx eax, byte [0x7b33c1c4]
test al, 8
je 0x7b330bef
mov dword [esp + 0x14], str.Exiting_main_winmm_thread_n
mov dword [esp + 0x10], 0xfa
mov dword [esp + 0xc], str.TIME_MMSysTimeThread
mov dword [esp + 8], 0x7b33fef5
mov dword [esp + 4], 0x7b33c1c4
mov dword [esp], 3
call sym._ros_dbg_log
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov dword [eax], ecx
call sym._GetProcessHeap_0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebp - 0x20]
sub esp, 0xc
jmp 0x7b3307f4
xor edx, edx
jmp 0x7b3307f4
imul eax, ecx, 0x1c
mov dword [ebp - 0x28], edx
mov dword [0x7b3429d4], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
test edi, edi
je 0x7b330b64
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x20]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call sym._HeapReAlloc_16
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub esp, 0x10
mov edi, eax
mov dword [0x7b3429d0], eax
jmp 0x7b33079d
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym._SetEvent_4
sub esp, 4
jmp 0x7b330876
call sym._GetTickCount_0
mov edx, dword [ebx + 0x14]
movzx ecx, word [ebx + 0x12]
mov edi, dword [ebx + 8]
sub eax, edx
mov dword [ebp - 0x28], edx
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
call sym._GetCurrentThreadId_0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], str._04lx:CallBack___lpFunc_p_wTimerID_04X_dwUser_08lX_dwTriggerTime__ld_delta__ld__n
mov dword [esp + 0x10], 0x54
mov dword [esp + 0xc], str.TIME_TriggerCallBack
mov dword [esp + 8], 0x7b33fef5
mov dword [esp + 4], 0x7b33c1c4
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x7b330897
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
movzx eax, word [ebx + 0x12]
mov dword [esp], eax
call dword [ebx + 8]
sub esp, 0x14
jmp 0x7b330876
mov eax, dword [ebx + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], str.Unknown_callback_type_0x_04x_for_mmtime_callback___p___ignored._n
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0x68
mov dword [esp + 0xc], str.TIME_TriggerCallBack
mov dword [esp + 8], 0x7b33fef5
mov dword [esp + 4], 0x7b33c1c4
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x7b330876
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._HeapAlloc_12
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
sub esp, 0xc
mov edi, eax
mov dword [0x7b3429d0], eax
jmp 0x7b33079d
mov edx, 0xffffffff
jmp 0x7b3308fc
mov eax, dword [0x7b3429e4]
test eax, eax
je 0x7b330bb4
mov dword [esp], eax
call sym._ResetEvent_4
sub esp, 4
mov dword [esp], 0x7b342a00
mov edi, 0xffffffff
call sym._LeaveCriticalSection_4
mov eax, dword [0x7b3429e4]
sub esp, 4
test eax, eax
jne 0x7b3308d2
call sym._GetTickCount_0
jmp 0x7b3308ef
movzx eax, byte [0x7b33c1c4]
test al, 8
jne 0x7b330984
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 0x14], str.Starting_main_winmm_thread_n
mov dword [esp + 0x10], 0xe4
mov dword [esp + 0xc], str.TIME_MMSysTimeThread
mov dword [esp + 8], 0x7b33fef5
mov dword [esp + 4], 0x7b33c1c4
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x7b330730