Function at 0x4563a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f049
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x62d414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], str.pxpil::CDevLink::StopScanning
push str..DevLink.cpp
push 0xf4a
push str.pxpil::CDevLink::StopScanning
mov ecx, dword [0x63dd80]
call fcn.0041ac10
cmp byte [esi + 0x58], 0
je 0x4565cc
cmp byte [esi + 0x54], 0
je 0x4565cc
mov ebx, 1
mov dword [ebp - 0x20], ebx
xor edi, edi
push 0x44c5f0
call dword [sym.imp.MSVCR90.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
push str.pxpil::CDevLink::StopScanning
push ebx
lea ecx, [esi + 8]
call fcn.00460770
mov eax, dword [esi + 0x104]
mov eax, dword [eax]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xec]
mov dword [ebp - 0x2c], eax
jmp 0x456450
mov eax, dword [esi + 0x104]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], eax
mov ecx, dword [esi + 0xec]
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00412220
test al, al
je 0x45649a
lea ecx, [ebp - 0x2c]
call fcn.00420f80
mov eax, dword [eax + 0x1c]
push 0x2710
mov ecx, eax
call fcn.004563a0
lea ecx, [ebp - 0x2c]
call fcn.0047dfe0
jmp 0x456450
mov dword [ebp - 4], 0xffffffff
test edi, edi
jne 0x45650d
cmp ebx, 1
jne 0x4564d9
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x10], eax
je 0x45650d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jge 0x45650d
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x45650d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x18], eax
jne 0x45650d
mov eax, dword [esi + 0x1c]
cmp eax, 1
jne 0x456509
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0x18], 0x5a5aa5a5
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x45650d
dec eax
mov dword [esi + 0x1c], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
add esp, 4
mov edx, dword [esi + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x2710
push eax
mov eax, dword [esi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x456592
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
call fcn.00405e90
mov dword [ebp - 4], 2
cmp dword [eax + 0x18], 8
jb 0x456558
mov ecx, dword [eax + 4]
jmp 0x45655b
lea ecx, [eax + 4]
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push ecx
push str.Scan_thread_for___ls__did_not_exit_properly___terminating
mov ecx, dword [ebp - 0x1c]
push ecx
push 1
push eax
mov edx, dword [edx]
call edx
add esp, 0x14
or ebx, 0xffffffff
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebx
mov eax, dword [esi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x456595
or ebx, 0xffffffff
mov eax, dword [esi + 0x7c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4565a8
push eax
call edi
mov dword [esi + 0x7c], ebx
mov eax, dword [esi + 0x78]
cmp eax, ebx
je 0x4565b5
push eax
call edi
mov dword [esi + 0x78], ebx
mov eax, dword [esi + 0x84]
cmp eax, ebx
je 0x4565c8
push eax
call edi
mov dword [esi + 0x84], ebx
mov byte [esi + 0x58], 0
push 0
push 0x5d1d25
push str..DevLink.cpp
push 0xf77
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [0x63dd80]
call fcn.0041aca0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4