Function at 0x1000f040
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f5de
mov eax, dword fs:[0]
push eax
mov eax, 0x14b0
call fcn.1001e770
mov eax, dword [0x1002900c]
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 - 0x14b8], ecx
push str.CSmartlightingDeviceManager::RemoveDevice
push str._s__START
push 0x32c
mov ecx, 0x28e
lea esi, [ebp + 0xc]
lea edi, [ebp - 0xa74]
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
rep movsd dword es:[edi], dword [esi]
push 3
call fcn.10007430
push eax
call fcn.100077d0
add esp, 0x18
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x868]
push eax
push dword [ebp + 8]
push dword [ebp - 0x48]
push str.CSmartlightingDeviceManager::RemoveDevice
push str._s__pid_d__i_d__UID_s__name_s__ip_s
push 0x32f
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
push 3
call fcn.10007430
push eax
call fcn.100077d0
add esp, 0x2c
cmp dword [ebp - 0x48], 0x301
jne 0x1000f1cf
lea eax, [ebp - 0x250]
mov dword [ebp - 0x18], 0
push eax
push str.SelectedGroup
lea eax, [ebp - 0x18]
push eax
call fcn.10008f60
lea eax, [ebp - 0x250]
mov dword [ebp - 4], 0
push eax
push str.LightChannels
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
call fcn.10008f60
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 4], 1
jle 0x1000f152
push dword [esi - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.10004310
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp dword [eax - 4], 1
jle 0x1000f169
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
call fcn.10004310
mov eax, dword [ebp - 0x18]
push esi
push eax
push str.CSmartlightingDeviceManager::RemoveDevice
push str._s__group_s__lightchannel_s
push 0x337
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
push 3
call fcn.10007430
push eax
call fcn.100077d0
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x1c]
add esp, 0x20
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000f1b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1000f1cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x14b8]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp dword [edi], ebx
jne 0x1000f1e8
mov eax, 0x490
jmp 0x1000f37e
cmp dword [edi + 0xc], ebx
ja 0x1000f1f7
mov eax, 0x10d2
jmp 0x1000f37e
mov esi, dword [ebp - 0xa74]
test esi, esi
jne 0x1000f209
lea eax, [esi + 0x7e]
jmp 0x1000f37e
cmp word [ebp - 0xa70], bx
je 0x1000f379
push str.UnInit
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000f34b
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x1000f350
lea eax, [edi + 0x44]
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.CONCRT140.dll_public:_void___thiscall_Concurrency::critical_section::scoped_lock::constructor_class_Concurrency::critical_section__]
lea eax, [ebp - 0xa70]
mov dword [ebp - 4], 2
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000f299
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0xa70]
push ebx
push eax
push str.CSmartlightingDeviceManager::RemoveDevice
push str._s__DeleteFile__s__error__d
push 0x358
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
push 1
call fcn.10007430
push eax
call fcn.100077d0
add esp, 0x20
jmp 0x1000f339
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 4]
call fcn.10010730
mov esi, dword [edi + 0xc]
push esi
push str.CSmartlightingDeviceManager::RemoveDevice
push str._s__SUCCESS__total_connected_device___d
push 0x360
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
push 3
call fcn.10007430
push eax
call fcn.100077d0
add esp, 0x1c
test esi, esi
jle 0x1000f339
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
cmp eax, ecx
je 0x1000f339
mov ebx, ecx
nop
mov ecx, dword [eax + 8]
lea esi, [eax + 0xc]
mov dword [ebp - 0x14b4], ecx
lea eax, [ebp - 0x14ac]
push eax
mov ecx, 0x28e
lea edi, [ebp - 0x14b0]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x14b4]
push str.CSmartlightingDeviceManager::RemoveDevice
push str._s____d___s
push 0x365
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
push 3
call fcn.10007430
push eax
call fcn.100077d0
mov eax, dword [ebp - 0x18]
add esp, 0x20
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x1000f2e0
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.CONCRT140.dll_public:_void___thiscall_Concurrency::critical_section::scoped_lock::destructor_void_]
jmp 0x1000f350
mov ebx, 0x3de1
push ebx
push str.CSmartlightingDeviceManager::RemoveDevice
push str._s__END__Result___d
push 0x371
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
push 3
call fcn.10007430
push eax
call fcn.100077d0
add esp, 0x1c
mov eax, ebx
jmp 0x1000f37e
mov eax, 3
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.1001d4a1
mov esp, ebp
pop ebp
ret 0xa3c