Function at 0x4f5190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533b7d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
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 - 0x18], esi
mov dword [ebp - 0x24], str.bil::CDevLink::StartScanning
push str..DevLink.cpp
push 0xcab
push str.bil::CDevLink::StartScanning
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::StartScanning
push 8
mov ecx, dword [0x5b6bb0]
push ecx
mov edx, dword [edi]
call edx
add esp, 0x14
mov byte [ebp - 0x11], 0
cmp byte [esi + 0xa0], 0
je 0x4f52a6
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
call fcn.00433c70
mov dword [ebp - 4], 0
mov ecx, dword [0x5b6bb0]
mov esi, dword [ecx]
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.__ls__already_scanning.
push str.bil::CDevLink::StartScanning
push 3
mov edx, dword [0x5b6bb0]
push edx
mov eax, dword [esi]
call eax
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
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_]
mov ebx, 1
push ebx
push str.true
push str..DevLink.cpp
push 0xcb3
push str.bil::CDevLink::StartScanning
mov ecx, dword [0x5b6bb0]
call fcn.00402520
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 1
mov dword [esi + 0x80], ebx
mov dword [ebp - 0x1c], ebx
xor edi, edi
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 - 0x20], eax
mov dword [ebp - 4], ebx
push 0xcb8
push str..DevLink.cpp
push str.bil::CDevLink::StartScanning
push ebx
lea ecx, [esi + 0x24]
call fcn.00505d40
cmp byte [esi + 0x9c], 0
je 0x4f5460
cmp byte [esi + 0xa0], 0
jne 0x4f5460
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xbc], eax
cmp eax, edi
jne 0x4f5360
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, esi
call fcn.00433c70
mov byte [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
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_occurred_creating_scan_kill_event_for___ls_.
push str.bil::CDevLink::StartScanning
push ebx
mov eax, dword [0x5b6bb0]
push eax
mov ecx, dword [edi]
call ecx
add esp, 0x18
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x5c]
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_]
jmp 0x4f5460
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [esi + 0xc4], eax
cmp eax, edi
jne 0x4f53d1
lea edx, [ebp - 0x5c]
push edx
mov ecx, esi
call fcn.00433c70
mov byte [ebp - 4], 3
mov ecx, dword [0x5b6bb0]
mov edi, dword [ecx]
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_occurred_creating_scan_timer_for___ls_.
push str.bil::CDevLink::StartScanning
push ebx
mov edx, dword [0x5b6bb0]
push edx
mov eax, dword [edi]
call eax
add esp, 0x18
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x5c]
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_]
mov ecx, dword [esi + 0xbc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4f5453
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
push edi
push edi
push edi
push 5
lea edx, [ebp - 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
jne 0x4f5483
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
call fcn.00433c70
mov byte [ebp - 4], 4
mov ecx, dword [0x5b6bb0]
mov edi, dword [ecx]
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_occurred_setting_scan_timer_for___ls_.
push str.bil::CDevLink::StartScanning
push ebx
mov edx, dword [0x5b6bb0]
push edx
mov eax, dword [edi]
call eax
add esp, 0x18
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x5c]
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_]
mov ecx, dword [esi + 0xbc]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov edx, dword [esi + 0xc4]
push edx
call edi
mov ecx, dword [esi + 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
jne 0x4f5579
lea ecx, [esi + 0x24]
cmp dword [ebp - 0x1c], 2
jne 0x4f5573
push 2
jmp 0x4f5574
lea eax, [esi + 0xb4]
push eax
push edi
push esi
push 0x4f4c10
push edi
push edi
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xb8], eax
cmp eax, edi
jne 0x4f550c
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, esi
call fcn.00433c70
mov byte [ebp - 4], 5
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_occurred_creating_scan_thread_for___ls_.
push str.bil::CDevLink::StartScanning
push ebx
mov eax, dword [0x5b6bb0]
push eax
mov ecx, dword [edi]
call ecx
add esp, 0x18
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x5c]
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_]
mov edx, dword [esi + 0xbc]
push edx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [esi + 0xc4]
push eax
jmp 0x4f5451
mov byte [esi + 0xa0], bl
mov byte [ebp - 0x11], bl
mov eax, dword [esi + 0x144]
mov eax, dword [eax]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
mov ecx, dword [esi + 0x12c]
mov dword [ebp - 0x30], ecx
lea esp, [esp]
mov eax, dword [esi + 0x144]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
mov edx, dword [esi + 0x12c]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.0049f670
test al, al
je 0x4f5453
lea ecx, [ebp - 0x30]
call fcn.00494f60
mov ecx, dword [eax + 0x1c]
call fcn.004f5190
lea ecx, [ebp - 0x30]
call fcn.0048c010
jmp 0x4f5530
push ebx
call fcn.00506060
mov edx, dword [ebp - 0x20]
push edx
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 bl, byte [ebp - 0x11]
movzx eax, bl
push eax
push str.bRetVal
push str..DevLink.cpp
push 0xd00
mov ecx, dword [ebp - 0x24]
push ecx
jmp 0x4f5287