Function at 0x4ebf50
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532d29
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x5b339c]
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 - 0x20], str.bil::CDevLink::StopScanning
push str..DevLink.cpp
push 0xd14
push str.bil::CDevLink::StopScanning
mov ecx, dword [0x5b6bb0]
call fcn.00402490
mov eax, dword [0x5b6bb0]
mov edi, dword [eax]
lea ecx, [esi + 0x10c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push str._key___ls
push str.bil::CDevLink::StopScanning
push 8
mov ecx, dword [0x5b6bb0]
push ecx
mov edx, dword [edi]
call edx
add esp, 0x14
xor ebx, ebx
cmp byte [esi + 0xa0], bl
je 0x4ec16b
cmp byte [esi + 0x9c], bl
je 0x4ec16b
mov dword [ebp - 0x18], 2
push 0x4e49d0
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 - 0x1c], eax
mov dword [ebp - 4], ebx
push 0xd18
push str..DevLink.cpp
push str.bil::CDevLink::StopScanning
push 2
lea ecx, [esi + 0x24]
call fcn.00505d40
mov eax, dword [esi + 0x144]
mov eax, dword [eax]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x12c]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x144]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], eax
mov ecx, dword [esi + 0x12c]
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0049f670
test al, al
je 0x4ec07a
lea ecx, [ebp - 0x2c]
call fcn.00494f60
mov eax, dword [eax + 0x1c]
push 0x2710
mov ecx, eax
call fcn.004ebf50
lea ecx, [ebp - 0x2c]
call fcn.0048c010
jmp 0x4ec034
mov dword [ebp - 4], 0xffffffff
cmp ebx, ebx
jne 0x4ec099
lea ecx, [esi + 0x24]
cmp dword [ebp - 0x18], 2
jne 0x4ec092
push 2
jmp 0x4ec094
push 1
call fcn.00506060
mov eax, dword [ebp - 0x1c]
push eax
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 ecx, dword [esi + 0xbc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp + 8]
push edx
mov eax, dword [esi + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4ec126
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
call fcn.00433c70
mov dword [ebp - 4], 2
mov edx, dword [0x5b6bb0]
mov edi, dword [edx]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push str.Scan_thread_for___ls__did_not_exit_properly___terminating
mov eax, dword [ebp - 0x20]
push eax
push 1
mov ecx, dword [0x5b6bb0]
push ecx
mov edx, dword [edi]
call edx
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
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 0xffffffffffffffff
mov eax, dword [esi + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xbc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4ec13f
push eax
call edi
mov dword [esi + 0xbc], ebx
mov eax, dword [esi + 0xb8]
cmp eax, ebx
je 0x4ec152
push eax
call edi
mov dword [esi + 0xb8], ebx
mov eax, dword [esi + 0xc4]
cmp eax, ebx
je 0x4ec165
push eax
call edi
mov dword [esi + 0xc4], ebx
mov byte [esi + 0xa0], bl
push ebx
push 0x57ef93
push str..DevLink.cpp
push 0xd41
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [0x5b6bb0]
call fcn.00402520
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