Function at 0x4054d0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x41b289
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], 0x41dd90
mov eax, dword [0x42a950]
push str.CSyncEngine::CSyncEngine__Call_ClearDownFileItemList_Function
push 1
push eax
mov dword [esp + 0x30], 6
call fcn.00404890
add esp, 0xc
mov ecx, esi
call fcn.00405710
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, ebx
je 0x405647
mov ecx, dword [0x42a950]
push str.CSyncEngine::CSyncEngine__m_pSyncThread_is_Not_NULL
push 1
push ecx
call fcn.00404890
mov eax, dword [esi + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x405586
mov edx, dword [0x42a950]
push str.CSyncEngine::CSyncEngine__m_pSyncThread__m_nNowRunningFlag_is_0
push 1
push edx
call fcn.00404890
mov eax, dword [0x42a950]
add esp, 0xc
push str.CSyncEngine::CSyncEngine__Delete_m_pSyncThread
push 1
push eax
call fcn.00404890
mov ecx, dword [esi + 0x30]
add esp, 0xc
cmp ecx, ebx
je 0x40557e
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x30], ebx
jmp 0x40561b
mov eax, dword [0x42a950]
push str.CSyncEngine::CSyncEngine__Set_m_nRequestStopFlag__1
push 2
push eax
call fcn.00404890
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 0x40561b
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.00408980
test eax, eax
jne 0x4055f2
push 0x32
call edi
cmp dword [esi + 0x14], ebx
jne 0x4055cf
cmp dword [esi + 0x14], ebx
je 0x40561b
mov ecx, dword [0x42a950]
push str.CSyncEngine::CSyncEngine__Terminate_PrimoSyncThread_Forcely...
push 3
push ecx
call fcn.00404890
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 0x405647
mov ecx, dword [0x42a950]
push str.CSyncEngine::CSyncEngine__Delete_m_pSyncThread
push 1
push ecx
call fcn.00404890
mov ecx, dword [esi + 0x30]
add esp, 0xc
cmp ecx, ebx
je 0x405644
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x30], ebx
mov ecx, dword [esi + 0xe4]
cmp ecx, ebx
je 0x40566d
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0xe4]
cmp ecx, ebx
je 0x405667
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0xe4], ebx
mov ecx, dword [esi + 0xe0]
cmp ecx, ebx
je 0x405693
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0xe0]
cmp ecx, ebx
je 0x40568d
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.0041a55e
lea ecx, [esi + 0xa4]
mov byte [esp + 0x24], 3
call fcn.0041a55e
lea ecx, [esi + 0x88]
mov byte [esp + 0x24], 2
call fcn.0041a55e
lea ecx, [esi + 0x6c]
mov byte [esp + 0x24], 1
call fcn.0041a55e
lea ecx, [esi + 0x50]
mov byte [esp + 0x24], bl
call fcn.0041a55e
lea ecx, [esi + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041a55e
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret