Function at 0x4687f0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x487f6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + 0x34]
test cl, cl
mov eax, 1
mov dword [esp + 0x28], eax
mov byte [esi + 0x64], al
je 0x468960
mov eax, dword [esi + 0x68]
xor edi, edi
cmp eax, edi
je 0x4688c7
cmp eax, 0xffffffff
je 0x4688c7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x468882
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.TerminateThread__Main_Server_Thread_
mov byte [esp + 0x34], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push edi
mov byte [esp + 0x34], 1
call fcn.00458010
add esp, 0xc
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4688c7
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.CloseHandle__Main_Server_Thread_
mov byte [esp + 0x34], 3
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push edi
mov byte [esp + 0x34], 1
call fcn.00458010
add esp, 0xc
cmp dword [esi + 0x44], edi
mov ebp, dword [esi + 0x3c]
mov dword [esp + 0x10], edi
jle 0x468aa7
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ecx]
lea edi, [ebp + 8]
test edi, edi
je 0x468aa5
mov eax, dword [edi + 4]
test eax, eax
je 0x468aa5
mov ecx, dword [edi + 0x1c]
push ecx
call ebx
mov edx, dword [edi + 4]
mov ebp, dword [ebp]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x46894b
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.WaitForSingleObject__server_
mov byte [esp + 0x34], 4
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0
mov byte [esp + 0x34], 1
call fcn.00458010
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x44]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4688e0
jmp 0x468aa5
mov cl, byte [esi + 0x35]
test cl, cl
mov ecx, dword [esi + 0x44]
jne 0x468a3c
cmp ecx, eax
jne 0x468aa5
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
test eax, eax
jne 0x4689c1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.CloseHandle__single_thread_client_1_
mov byte [esp + 0x34], 5
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0
mov byte [esp + 0x34], 1
call fcn.00458010
add esp, 0xc
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + 0x3c]
push eax
call edi
test eax, eax
jne 0x468a06
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.CloseHandle__single_thread_client_2_
mov byte [esp + 0x34], 6
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0
mov byte [esp + 0x34], 1
call fcn.00458010
add esp, 0xc
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + 0x40]
push edx
call edi
test eax, eax
jne 0x468aa5
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
mov byte [esp + 0x30], 7
push str.CloseHandle__single_thread_client_3_
jmp 0x468a90
cmp ecx, eax
jne 0x468aa5
mov edi, dword [esi + 0x3c]
add edi, 8
je 0x468aa5
mov eax, dword [edi + 4]
test eax, eax
je 0x468aa5
mov eax, dword [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 4]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x468aa5
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
mov byte [esp + 0x30], 8
push str.WaitForSingleObject__client_
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0
mov byte [esp + 0x34], 1
call fcn.00458010
add esp, 0xc
xor edi, edi
mov edx, dword [esi + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x28], edi
call ebx
test eax, eax
jne 0x468af4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.CloseHandle__read_event_
mov byte [esp + 0x34], 9
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push edi
mov byte [esp + 0x34], 1
call fcn.00458010
add esp, 0xc
mov eax, dword [esi + 0x30]
push eax
call ebx
test eax, eax
jne 0x468b35
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.CloseHandle__write_event_
mov byte [esp + 0x34], 0xa
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push edi
mov byte [esp + 0x34], 1
call fcn.00458010
add esp, 0xc
mov al, byte [esi + 0x35]
test al, al
je 0x468d97
mov ebx, dword [esi + 0x3c]
cmp ebx, edi
je 0x468d7e
jmp 0x468b50
lea edi, [ebx + 8]
test edi, edi
je 0x468d7c
mov eax, dword [edi]
test eax, eax
je 0x468bfe
cmp eax, 0xffffffff
je 0x468bfe
mov cl, byte [esi + 0x34]
test cl, cl
je 0x468bb8
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
jne 0x468bb8
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4a953c
mov byte [esp + 0x34], 0xb
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0
mov byte [esp + 0x34], 1
call fcn.00458010
add esp, 0xc
mov ecx, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebp
test eax, eax
jne 0x468c3c
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.CloseHandle__hPipe_
mov byte [esp + 0x34], 0xc
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0
mov byte [esp + 0x34], 1
call fcn.00458010
jmp 0x468c39
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.InstanceThread:_Invalid_worker_pipe.
mov byte [esp + 0x34], 0xd
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0
mov byte [esp + 0x34], 1
call fcn.00458010
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
mov eax, dword [edi + 0x34]
test eax, eax
je 0x468c82
push eax
call ebp
test eax, eax
jne 0x468c82
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.CloseHandle__hReadEvent_
mov byte [esp + 0x34], 0xe
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0
mov byte [esp + 0x34], 1
call fcn.00458010
add esp, 0xc
mov eax, dword [edi + 0x38]
test eax, eax
je 0x468cc8
push eax
call ebp
test eax, eax
jne 0x468cc8
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.CloseHandle__hWriteEvent_
mov byte [esp + 0x34], 0xf
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0
mov byte [esp + 0x34], 1
call fcn.00458010
add esp, 0xc
mov eax, dword [edi + 4]
test eax, eax
je 0x468d0e
push eax
call ebp
test eax, eax
jne 0x468d0e
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.CloseHandle__hWorkerThread_
mov byte [esp + 0x34], 0x10
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0
mov byte [esp + 0x34], 1
call fcn.00458010
add esp, 0xc
cmp ebx, dword [esi + 0x3c]
jne 0x468d1a
mov edx, dword [ebx]
mov dword [esi + 0x3c], edx
jmp 0x468d21
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [eax], ecx
cmp ebx, dword [esi + 0x40]
jne 0x468d2e
mov edx, dword [ebx + 4]
mov dword [esi + 0x40], edx
jmp 0x468d36
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov edx, dword [esi + 0x48]
mov dword [ebx], edx
mov eax, dword [esi + 0x44]
dec eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], eax
jne 0x468d71
mov eax, dword [esi + 0x3c]
xor ecx, ecx
cmp eax, ecx
je 0x468d56
mov eax, dword [eax]
cmp eax, ecx
jne 0x468d50
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x4c]
call sub.MFC71U.DLL_CRecordset::FreeDataCache
mov dword [esi + 0x4c], 0
mov ebx, dword [esi + 0x3c]
test ebx, ebx
jne 0x468b50
xor edi, edi
mov eax, dword [0x4e31fc]
cmp eax, edi
je 0x468d97
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov dword [0x4e31fc], edi
lea ecx, [esi + 0x60]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [esi + 0x3c]
cmp eax, edi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi + 0x38], 0x4a92a4
je 0x468dbc
mov eax, dword [eax]
cmp eax, edi
jne 0x468db6
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
call sub.MFC71U.DLL_CRecordset::FreeDataCache
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x4c], edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret