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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6dab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov dword [ebp - 0x10], ecx
push str.GTHREAD::Stop
lea ecx, [ebp - 0x80]
call fcn.00404f76
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
call fcn.004857dc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x3d], 0
je 0x486529
cmp dword [ebp + 8], 0
je 0x4863e5
cmp dword [0x5205e8], 0
je 0x4863e5
push str._www___dd___ooo___yy___HH_:_mm_:_ss_._tt_
lea ecx, [ebp - 0x45]
call fcn.004053d4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
push dword [eax + 0x25]
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0048597d
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
call fcn.00405b2a
push eax
movzx eax, word [0x51f0f8]
push eax
lea eax, [ebp - 0x45]
push eax
lea eax, [ebp - 0x69]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00422735
pop ecx
mov ecx, eax
call fcn.00420b15
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3c]
call fcn.00405b2a
push eax
push str._GTHREAD__LocalTime__s_:_Thread__Description_s__id0x_0X__request_to_stop._r_n
call fcn.00403bd8
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x69]
call fcn.004055b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.004055b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x45]
call fcn.004055b0
push 1
mov ecx, dword [ebp - 0x10]
call fcn.00485b59
cmp dword [ebp + 8], 0
je 0x4864d8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x31], 0
jne 0x486440
push 0x64
mov eax, dword [ebp - 0x10]
push dword [eax + 0x3d]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x48643e
cmp dword [ebp + 0xc], 0
je 0x48643e
and dword [ebp - 0x38], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.004050e2
mov eax, dword [ebp - 0x38]
jmp 0x48653f
jmp 0x486402
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, 0x3e8
jbe 0x4864d8
push 0
lea eax, [ebp - 0x57]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0048597d
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x28]
call fcn.00405b2a
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
push eax
push str.Thread_took__ld_ms_to_stop__description_s_
lea eax, [ebp - 0x4e]
push eax
call fcn.00407450
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
call fcn.00405b2a
push eax
push str.GTHREAD
push 0x1e2
push str.D:projectsUTIL_srcgthread.cpp
call fcn.00404405
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4e]
call fcn.004055b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x57]
call fcn.004055b0
mov eax, dword [ebp - 0x10]
push dword [eax + 0x3d]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x486504
xor eax, eax
inc eax
je 0x486504
push 0x1e6
push str.D:projectsUTIL_srcgthread.cpp
push 0x4d9734
call fcn.00403b39
add esp, 0xc
mov eax, dword [ebp - 0x10]
and dword [eax + 0x3d], 0
push 0
mov ecx, dword [ebp - 0x10]
call fcn.00485b59
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x31], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x39], 1
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.004050e2
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8