Function at 0x50eb40
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d120
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x640040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov dword [ebp - 0x48], ebx
mov esi, ecx
mov dword [ebp - 4], 0
test esi, esi
je 0x50ebf1
mov eax, dword [esi]
test eax, eax
je 0x50ebf1
cmp eax, 0xffffffff
je 0x50ebf1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x641b70]
cmp eax, dword [ecx + 0x30]
jne 0x50ec88
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
ja 0x50ec37
je 0x50ebf8
test eax, eax
je 0x50ebe3
cmp eax, 0x80
jne 0x50ec3c
push 0x102
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbus_services.cpp
push 0x587798
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec040
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov al, 1
jmp 0x50eefa
push str.Forcing_Termination_of_thread
mov eax, dword [0x641a88]
push 0x3e9
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x50ec24
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
jmp 0x50eef8
cmp eax, 0xffffffff
je 0x50ec71
push 0x10b
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbus_services.cpp
push 0x587798
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec040
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
jmp 0x50eef8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
jne 0x50ec24
push str.Forcing_Termination_of_thread_after_wait_failed_and_timeout
jmp 0x50ebfd
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
lea eax, [ebp - 0x28]
push eax
call fcn.004cf540
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x50ebf1
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x50ecf7
cmp dword [ebp - 0x18], 0x103
je 0x50ed24
mov eax, dword [esi]
test eax, eax
je 0x50ebf1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov al, 1
jmp 0x50eefa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x50ee99
push eax
push str.Thread_ExitCode_result_0x_X
push 0x3ec
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x10
push 0x4ff
push dword [ebp - 0x48]
push 0
push esi
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 0x80
ja 0x50edb5
je 0x50ed8e
sub eax, 0
je 0x50ecd9
sub eax, 1
jne 0x50edc9
nop word [eax + eax]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call edi
test eax, eax
je 0x50edeb
cmp dword [ebp - 0x40], 0x12
jne 0x50ed7c
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov al, 1
jmp 0x50eefa
lea eax, [ebp - 0x44]
push eax
call ebx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x50ed50
push 0x173
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbus_services.cpp
push 0x587798
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec040
add esp, 0x10
jmp 0x50ecd9
cmp eax, 0x102
je 0x50ee8f
cmp eax, 0xffffffff
je 0x50ee49
push 0x193
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbus_services.cpp
push 0x587798
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec040
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
call fcn.004cf540
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x28]
call fcn.00509f60
cmp eax, dword [ebp - 0x48]
jbe 0x50ee30
push str.Forcing_Termination_of_worker_thread_on_timeout
push 0x3e9
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x50eef8
jmp 0x50ec1b
test eax, eax
jne 0x50ecb0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
jmp 0x50ecb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x50ebf1
cmp eax, 0x102
jne 0x50ebf1
push str.Forcing_Termination_of_worker_thread_on_wait_failed_and_timeout
push 0x3e9
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x50ebf1
jmp 0x50ec1b
push str.Forcing_Termination_of_worker_thread_on_timeout_event
jmp 0x50ee09
cmp dword [esi], 0
je 0x50ebf1
mov dword [esi], 0
mov al, 1
jmp 0x50eefa
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055c86d
mov esp, ebp
pop ebp
ret