Function at 0x406aa0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x43b619
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x4400e0
mov eax, dword [0x450ba4]
push str.CSyncEngine::CSyncEngine__Call_ClearDownFileItemList_Function
push 1
push eax
mov dword [esp + 0x30], 6
call fcn.00404960
add esp, 0xc
mov ecx, esi
call fcn.00406ce0
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, ebx
je 0x406c17
mov ecx, dword [0x450ba4]
push str.CSyncEngine::CSyncEngine__m_pSyncThread_is_Not_NULL
push 1
push ecx
call fcn.00404960
mov eax, dword [esi + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x406b56
mov edx, dword [0x450ba4]
push str.CSyncEngine::CSyncEngine__m_pSyncThread__m_nNowRunningFlag_is_0
push 1
push edx
call fcn.00404960
mov eax, dword [0x450ba4]
add esp, 0xc
push str.CSyncEngine::CSyncEngine__Delete_m_pSyncThread
push 1
push eax
call fcn.00404960
mov ecx, dword [esi + 0x30]
add esp, 0xc
cmp ecx, ebx
je 0x406b4e
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x30], ebx
jmp 0x406beb
mov eax, dword [0x450ba4]
push str.CSyncEngine::CSyncEngine__Set_m_nRequestStopFlag__1
push 2
push eax
call fcn.00404960
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], esp
mov eax, esp
lea edx, [esp + 0x18]
push ecx
mov dword [esi + 0x18], 1
push edx
mov dword [eax], 5
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call fcn.00401960
cmp dword [esi + 0x14], ebx
je 0x406beb
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CTime::GetTickCount
lea ecx, [esp + 0x10]
call fcn.00409c90
test eax, eax
jne 0x406bc2
push 0x32
call edi
cmp dword [esi + 0x14], ebx
jne 0x406b9f
cmp dword [esi + 0x14], ebx
je 0x406beb
mov ecx, dword [0x450ba4]
push str.CSyncEngine::CSyncEngine__Terminate_PrimoSyncThread_Forcely...
push 3
push ecx
call fcn.00404960
mov edx, dword [esi + 0x30]
add esp, 0xc
mov eax, dword [edx + 0x2c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [esi + 0x30], ebx
je 0x406c17
mov ecx, dword [0x450ba4]
push str.CSyncEngine::CSyncEngine__Delete_m_pSyncThread
push 1
push ecx
call fcn.00404960
mov ecx, dword [esi + 0x30]
add esp, 0xc
cmp ecx, ebx
je 0x406c14
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x30], ebx
mov ecx, dword [esi + 0xe4]
cmp ecx, ebx
je 0x406c3d
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0xe4]
cmp ecx, ebx
je 0x406c37
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0xe4], ebx
mov ecx, dword [esi + 0xe0]
cmp ecx, ebx
je 0x406c63
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0xe0]
cmp ecx, ebx
je 0x406c5d
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0xe0], ebx
lea ecx, [esi + 0xdc]
mov byte [esp + 0x24], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc0]
mov byte [esp + 0x24], 4
call fcn.0043a688
lea ecx, [esi + 0xa4]
mov byte [esp + 0x24], 3
call fcn.0043a688
lea ecx, [esi + 0x88]
mov byte [esp + 0x24], 2
call fcn.0043a688
lea ecx, [esi + 0x6c]
mov byte [esp + 0x24], 1
call fcn.0043a688
lea ecx, [esi + 0x50]
mov byte [esp + 0x24], bl
call fcn.0043a688
lea ecx, [esi + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043a688
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret