Function at 0x40cb76
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c51f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov dword [eax], 0x46129c
mov dword [ebp - 4], 6
push str.CSyncEngine::CSyncEngine__Call_ClearDownFileItemList_Function
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
call fcn.0040ce99
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x30], 0
je 0x40ccfa
push str.CSyncEngine::CSyncEngine__m_pSyncThread_is_Not_NULL
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x14], 0
jne 0x40cc55
push str.CSyncEngine::CSyncEngine__m_pSyncThread__m_nNowRunningFlag_is_0
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0xc
push 0x46de7c
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40cc3f
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx + 4]
mov dword [ebp - 0x44], eax
jmp 0x40cc46
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x30], 0
jmp 0x40ccfa
push str.CSyncEngine::CSyncEngine__Set_m_nRequestStopFlag__1
push 2
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0xc
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x18], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 5
push 0
push 0
push 0
call fcn.00402130
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call fcn.00402190
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x14], 0
je 0x40ccc9
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push eax
call sub.MFC42.DLL_CTime::GetTickCount
lea ecx, [ebp - 0x10]
call fcn.00415fb0
test eax, eax
je 0x40ccbf
jmp 0x40ccc9
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40cc9c
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x14], 0
je 0x40ccfa
push str.CSyncEngine::CSyncEngine__Terminate_PrimoSyncThread_Forcely...
push 3
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0xc
push 0
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x30], 0
je 0x40cd51
push str.CSyncEngine::CSyncEngine__Delete_m_pSyncThread
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0xc
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
je 0x40cd40
push 1
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
call dword [eax + 4]
mov dword [ebp - 0x48], eax
jmp 0x40cd47
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0xe4], 0
je 0x40cdb2
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0xe4]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0xe4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0xe4]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
je 0x40cd9e
push 1
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
call dword [edx + 4]
mov dword [ebp - 0x4c], eax
jmp 0x40cda5
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0xe4], 0
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0xe0], 0
je 0x40ce13
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 0xe0]
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0xe0]
mov eax, dword [edx]
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0xe0]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x40cdff
push 1
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x38]
call dword [edx + 4]
mov dword [ebp - 0x50], eax
jmp 0x40ce06
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0xe0], 0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
add ecx, 0xdc
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x40]
add ecx, 0xc0
call fcn.0045ae0a
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x40]
add ecx, 0xa4
call fcn.0045ae0a
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x40]
add ecx, 0x88
call fcn.0045ae0a
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
add ecx, 0x6c
call fcn.0045ae0a
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x40]
add ecx, 0x50
call fcn.0045ae0a
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x40]
add ecx, 0x34
call fcn.0045ae0a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret