Function at 0x43cff0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xaac
mov dword [esp + 4], 0
mov dword [esp], 2
lea ebp, [esp + 0xa0]
call dbg.pthread_setcanceltype
mov dword [esp], str.USBResource
call sym._RenameThread
cmp byte [0x732fa1], 0
je 0x43d07c
cmp byte [0x745ef7], 0
jne 0x43d045
cmp byte [0x732fa0], 0
jne 0x43d045
cmp dword [0x5bc2e0], 3
jle 0x43d07c
lea ebp, [esp + 0xa0]
mov dword [esp + 8], str.RES:_thread_starting
mov dword [esp + 4], 0xa00
mov dword [esp], ebp
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], 4
call sym.__applog
mov dword [esp + 0xc], 0x11c0
mov dword [esp + 8], str.usb_resource_thread
mov dword [esp + 4], str.usbutils.c
mov dword [esp], 0x74536c
call sym.__cgsem_wait
mov dword [esp], 0x733120
call dbg.pthread_mutex_lock
test eax, eax
jne 0x43de72
mov eax, dword [0x732fc4]
mov edi, ebp
test eax, eax
jne 0x43d245
jmp 0x43d96d
cmp byte [0x745ef7], 0
jne 0x43d500
cmp byte [0x732fa0], 0
jne 0x43d500
cmp dword [0x5bc2e0], 3
jg 0x43d500
cmp byte [eax], 0
je 0x43d9fa
movzx ecx, byte [eax + 9]
mov byte [esp + 0x38], cl
movzx ecx, byte [eax + 8]
mov eax, dword [eax + 4]
mov byte [esp + 0x40], cl
mov dword [esp + 0x3c], eax
cmp byte [0x732fa0], 0
jne 0x43d58d
cmp dword [0x5bc2e0], 3
jg 0x43d58d
movzx ebp, byte [esp + 0x38]
movzx esi, byte [esp + 0x40]
nop
lea esi, [esi]
mov edx, ebp
mov eax, esi
call sym._is_in_use_bd
test al, al
mov ebx, eax
je 0x43d289
xor ebx, ebx
cmp byte [0x732fa1], 0
je 0x43d1cc
cmp byte [0x745ef7], 0
jne 0x43d179
cmp byte [0x732fa0], 0
jne 0x43d179
cmp dword [0x5bc2e0], 3
jle 0x43d1cc
mov eax, dword [0x732fc4]
movzx edx, bl
mov dword [esp + 0x18], edx
movzx edx, byte [eax + 9]
mov dword [esp + 0x14], edx
movzx edx, byte [eax + 8]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [esp + 8], str.RES:__s___d:_d__lock_ok_d
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 4
call sym.__applog
mov dword [esp + 0x10], 0x11a3
mov dword [esp + 0xc], str.resource_process
mov dword [esp + 8], str.usbutils.c
mov dword [esp + 4], 8
mov dword [esp], 1
call sym.__cgcalloc
mov edx, dword [0x732fc4]
movzx edx, byte [edx + 8]
mov byte [eax], dl
mov edx, dword [0x732fc4]
movzx edx, byte [edx + 9]
mov byte [eax + 2], bl
mov byte [eax + 1], dl
mov edx, dword [0x732fc0]
mov dword [0x732fc0], eax
mov dword [eax + 4], edx
mov eax, dword [0x732fc4]
mov edx, dword [eax + 0xc]
mov dword [esp], eax
mov dword [0x732fc4], edx
call sym._free
mov eax, dword [0x732fc4]
test eax, eax
je 0x43d96b
cmp byte [0x732fa1], 0
jne 0x43d0d0
cmp byte [eax], 0
je 0x43d5e0
movzx esi, byte [eax + 8]
movzx ebp, byte [eax + 9]
mov eax, dword [eax + 4]
mov edx, esi
mov ecx, ebp
mov dword [esp + 0x3c], eax
mov byte [esp + 0x40], dl
mov eax, esi
mov edx, ebp
mov byte [esp + 0x38], cl
call sym._is_in_use_bd
test al, al
mov ebx, eax
jne 0x43d153
lea eax, [esp + 0x60]
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.cg_usb__d__d
mov dword [esp + 4], 0x40
mov dword [esp], eax
call sym._snprintf_4
mov dword [esp + 0xc], 0x10c0
mov dword [esp + 8], str.mksec
mov dword [esp + 4], str.usbutils.c
mov dword [esp], 0x14
mov byte [esp + 0x5a], 0
mov byte [esp + 0x5b], 0
mov byte [esp + 0x5c], 0
mov byte [esp + 0x5d], 0
mov byte [esp + 0x5e], 0
mov byte [esp + 0x5f], 1
mov dword [esp + 0x54], 0
call sym.__cgmalloc
mov dword [esp + 4], 1
mov dword [esp + 0x44], eax
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
sub esp, 8
test eax, eax
je 0x43da0e
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
sub esp, 0x10
test eax, eax
je 0x43da84
lea eax, [esp + 0x54]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x5a]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
sub esp, 0x2c
test eax, eax
je 0x43dc21
mov eax, dword [esp + 0x54]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
sub esp, 0xc
test eax, eax
je 0x43dd4e
mov dword [esp + 0xc], 0x10e7
mov dword [esp + 8], str.mksec
mov dword [esp + 4], str.usbutils.c
mov dword [esp], 0xc
call sym.__cgmalloc
mov ecx, dword [esp + 0x44]
mov dword [eax], 0xc
mov dword [eax + 8], 0
mov dword [esp + 0x48], eax
mov dword [eax + 4], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
test eax, eax
mov dword [esp + 0x44], eax
je 0x43d98c
mov eax, dword [esp + 0x44]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
cmp eax, 0x80
je 0x43dacc
jbe 0x43dac4
cmp eax, 0x102
je 0x43db9a
cmp eax, 0xffffffff
jne 0x43dbe0
cmp byte [0x745ef7], 0
jne 0x43d494
cmp byte [0x732fa0], 0
jne 0x43d494
mov ebp, dword [0x5bc2e0]
test ebp, ebp
js 0x43d4de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
mov dword [esp + 8], str.MTX:__s_USB_failed_to_get__s_err___d_
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xa00
mov dword [esp], edi
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [esp + 0x48]
call sym._unsec
jmp 0x43d155
movzx edx, byte [eax]
mov dword [esp + 0x18], edx
movzx edx, byte [eax + 9]
mov dword [esp + 0x14], edx
movzx edx, byte [eax + 8]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [esp + 8], str.RES:__s___d:_d__lock_d
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 4
call sym.__applog
mov eax, dword [0x732fc4]
cmp byte [eax], 0
je 0x43d883
movzx ecx, byte [eax + 9]
cmp byte [0x732fa1], 0
mov byte [esp + 0x38], cl
movzx ecx, byte [eax + 8]
mov eax, dword [eax + 4]
mov byte [esp + 0x40], cl
mov dword [esp + 0x3c], eax
je 0x43e0ca
cmp byte [0x745ef7], 0
je 0x43d117
movzx ebp, byte [esp + 0x38]
movzx esi, byte [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], str.USB_res_lock__s__d__d
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 4
call sym.__applog
jmp 0x43d140
movzx edx, byte [eax + 9]
movzx ebx, byte [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
movzx esi, dl
lea eax, [esp + 0x60]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.cg_usb__d__d
mov dword [esp + 4], 0x40
mov dword [esp], eax
call sym._snprintf_4
mov dword [esp], 0x733124
call dbg.pthread_mutex_lock
test eax, eax
jne 0x43d906
mov eax, dword [0x732fd8]
test eax, eax
jne 0x43d64b
jmp 0x43d7b0
mov eax, dword [eax + 0x14]
test eax, eax
je 0x43d7b0
cmp dword [eax], ebx
jne 0x43d640
cmp esi, dword [eax + 4]
jne 0x43d640
mov ecx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [esp], 0x733124
test ecx, ecx
mov dword [esp + 0x3c], ecx
mov ecx, 1
sete dl
test ebp, ebp
cmove edx, ecx
mov byte [esp + 0x40], dl
call dbg.pthread_mutex_unlock
test eax, eax
movzx edx, byte [esp + 0x40]
jne 0x43e056
mov byte [esp + 0x40], dl
call dword [0x5bb9e0]
movzx edx, byte [esp + 0x40]
test dl, dl
je 0x43d6ff
cmp byte [0x745ef7], 0
jne 0x43d6c7
cmp byte [0x732fa0], 0
jne 0x43d6c7
mov edx, dword [0x5bc2e0]
test edx, edx
js 0x43d6ff
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.FAIL:_USB_get_lock_empty___d:_d_
mov dword [esp + 4], 0xa00
mov dword [esp], edi
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x43d794
test ebp, ebp
je 0x43d784
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
test eax, eax
jne 0x43d784
cmp byte [0x745ef7], 0
jne 0x43d73a
cmp byte [0x732fa0], 0
jne 0x43d73a
mov eax, dword [0x5bc2e0]
test eax, eax
js 0x43d784
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
mov dword [esp + 8], str.MTX:__s_USB_failed_to_release__s_err___d_
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test ebp, ebp
je 0x43d79f
mov eax, ebp
call sym._unsec
xor ecx, ecx
mov edx, esi
mov eax, ebx
call sym.___remove_in_use
jmp 0x43d222
mov dword [esp], 0x733124
call dbg.pthread_mutex_unlock
test eax, eax
je 0x43d820
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0x755
mov dword [esp + 0x14], str.in_use_get_ress
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cde80
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
call dword [0x5bb9e0]
cmp byte [0x745ef7], 0
jne 0x43d846
cmp byte [0x732fa0], 0
jne 0x43d846
mov ecx, dword [0x5bc2e0]
test ecx, ecx
js 0x43d79f
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.FAIL:_USB_get_lock_not_found___d:_d_
mov dword [esp + 4], 0xa00
mov dword [esp], edi
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
jmp 0x43d79f
cmp byte [0x732fa1], 0
movzx edx, byte [eax + 9]
movzx ebx, byte [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
je 0x43d5ef
cmp byte [0x745ef7], 0
jne 0x43d8be
cmp byte [0x732fa0], 0
jne 0x43d8be
cmp dword [0x5bc2e0], 3
jle 0x43d5ef
mov eax, dword [esp + 0x38]
movzx esi, dl
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 8], str.USB_res_unlock__s__d__d
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 4
call sym.__applog
jmp 0x43d5f2
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0x740
mov dword [esp + 0x14], str.in_use_get_ress
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cdeb4
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
jmp 0x43d62a
mov ebp, edi
mov dword [esp], 0x733120
call dbg.pthread_mutex_unlock
test eax, eax
jne 0x43ded7
call dword [0x5bb9e0]
jmp 0x43d07c
cmp byte [0x745ef7], 0
jne 0x43d9ab
cmp byte [0x732fa0], 0
jne 0x43d9ab
mov eax, dword [0x5bc2e0]
test eax, eax
js 0x43d4ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
mov dword [esp + 8], str.MTX:__s_USB_failed_to_get__s_err___d_
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
jmp 0x43d4ee
movzx edx, byte [eax + 9]
movzx ebx, byte [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
jmp 0x43d89f
cmp byte [0x745ef7], 0
jne 0x43da29
cmp byte [0x732fa0], 0
jne 0x43da29
mov eax, dword [0x5bc2e0]
test eax, eax
js 0x43da73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 8], str.MTX:__s___d:_d__USB_failed_to_init_secdes_err___d_
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xa00
mov dword [esp], edi
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sym._free
jmp 0x43d155
cmp byte [0x745ef7], 0
jne 0x43daa0
cmp byte [0x732fa0], 0
jne 0x43daa0
mov ecx, dword [0x5bc2e0]
test ecx, ecx
js 0x43da73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 8], str.MTX:__s___d:_d__USB_failed_to_secdes_dacl_err___d_
mov dword [esp + 0xc], eax
jmp 0x43da4b
test eax, eax
jne 0x43dbe0
mov eax, dword [0x746028]
test eax, eax
jle 0x43dc70
xor edx, edx
mov dword [esp + 0x4c], ebp
mov ebp, ebx
movzx ebx, byte [esp + 0x40]
mov dword [esp + 0x40], esi
mov esi, edx
jmp 0x43daff
add esi, 1
cmp esi, dword [0x746028]
jge 0x43dc68
mov dword [esp], esi
call sym._get_devices
cmp byte [eax + 0x28], bl
jne 0x43daf0
movzx ecx, byte [esp + 0x38]
cmp byte [eax + 0x29], cl
jne 0x43daf0
cmp byte [eax + 0x30], 0
jne 0x43daf0
mov eax, dword [esp + 0x44]
mov ebx, ebp
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
test eax, eax
je 0x43dfab
cmp byte [0x745ef7], 0
jne 0x43db55
cmp byte [0x732fa0], 0
jne 0x43db55
mov eax, dword [0x5bc2e0]
test eax, eax
jle 0x43d4de
lea eax, [esp + 0x60]
mov dword [esp + 8], str.MTX:__s_USB_cant_get__s___device_in_use
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xa00
mov dword [esp], edi
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 1
call sym.__applog
jmp 0x43d4de
cmp byte [0x744fa8], 0
jne 0x43d4de
cmp byte [0x745ef7], 0
jne 0x43dbc6
cmp byte [0x732fa0], 0
jne 0x43dbc6
mov eax, dword [0x5bc2e0]
test eax, eax
jle 0x43d4de
lea eax, [esp + 0x60]
mov dword [esp + 8], str.MTX:__s_USB_failed_to_get__s___device_in_use
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
jmp 0x43db6d
cmp byte [0x745ef7], 0
jne 0x43dc00
cmp byte [0x732fa0], 0
jne 0x43dc00
mov esi, dword [0x5bc2e0]
test esi, esi
js 0x43d4de
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
mov dword [esp + 8], str.MTX:__s_USB_failed_to_get__s_unknown_reply___d_
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
jmp 0x43d4b6
cmp byte [0x745ef7], 0
jne 0x43dc41
cmp byte [0x732fa0], 0
jne 0x43dc41
mov edx, dword [0x5bc2e0]
test edx, edx
js 0x43da73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 8], str.MTX:__s___d:_d__USB_failed_to_create_gsid_err___d_
mov dword [esp + 0xc], eax
jmp 0x43da4b
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x40]
xor ecx, ecx
mov edx, ebp
mov eax, esi
call sym._add_in_use
mov dword [esp], 0x733124
call dbg.pthread_mutex_lock
test eax, eax
jne 0x43df3c
mov eax, dword [0x732fd8]
test eax, eax
jne 0x43dcab
jmp 0x43ddc8
mov eax, dword [eax + 0x14]
test eax, eax
je 0x43ddc8
cmp dword [eax], esi
jne 0x43dca0
cmp dword [eax + 4], ebp
jne 0x43dca0
mov ecx, dword [esp + 0x44]
mov edx, dword [eax + 8]
xor ebx, ebx
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x43dfa1
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
mov dword [esp], 0x733124
call dbg.pthread_mutex_unlock
test eax, eax
jne 0x43dff1
call dword [0x5bb9e0]
test bl, bl
jne 0x43dd44
cmp byte [0x745ef7], 0
jne 0x43dd0c
cmp byte [0x732fa0], 0
jne 0x43dd0c
mov ebx, dword [0x5bc2e0]
test ebx, ebx
js 0x43dd44
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.FAIL:_USB_store_ress_not_empty___d:_d_
mov dword [esp + 4], 0xa00
mov dword [esp], edi
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov ebx, 1
jmp 0x43d155
cmp byte [0x745ef7], 0
jne 0x43dd69
cmp byte [0x732fa0], 0
jne 0x43dd69
mov eax, dword [0x5bc2e0]
test eax, eax
js 0x43ddb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 8], str.MTX:__s___d:_d__USB_failed_to_secdes_grp_err___d_
mov dword [esp + 4], 0xa00
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sym._snprintf_4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
sub esp, 4
jmp 0x43da73
mov dword [esp], 0x733124
call dbg.pthread_mutex_unlock
test eax, eax
je 0x43de38
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0x730
mov dword [esp + 0x14], str.in_use_store_ress
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cde80
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
call dword [0x5bb9e0]
cmp byte [0x745ef7], 0
jne 0x43de5d
cmp byte [0x732fa0], 0
jne 0x43de5d
mov eax, dword [0x5bc2e0]
test eax, eax
js 0x43dd44
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.FAIL:_USB_store_ress_not_found___d:_d_
jmp 0x43dd1c
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0x11c2
mov dword [esp + 0x14], str.usb_resource_thread
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cdeb4
mov dword [esp + 4], 0xa00
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
jmp 0x43d0b4
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0x11c5
mov dword [esp + 0x14], str.usb_resource_thread
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cde80
mov dword [esp + 4], 0xa00
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
jmp 0x43d981
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0x71d
mov dword [esp + 0x14], str.in_use_store_ress
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cdeb4
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
jmp 0x43dc8f
test edx, edx
sete bl
jmp 0x43dccb
cmp byte [0x745ef7], 0
jne 0x43dfca
cmp byte [0x732fa0], 0
jne 0x43dfca
mov eax, dword [0x5bc2e0]
test eax, eax
js 0x43d4de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
mov dword [esp + 8], str.MTX:__s_USB_cant_get__s___device_in_use___failure___d_
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
jmp 0x43d4b6
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0x730
mov dword [esp + 0x14], str.in_use_store_ress
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cde80
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
jmp 0x43dce6
mov byte [esp + 0x40], dl
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0x755
mov dword [esp + 0x14], str.in_use_get_ress
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cde80
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
call dword [0x5bb9e0]
movzx edx, byte [esp + 0x40]
jmp 0x43d6a7
movzx ebp, byte [esp + 0x38]
movzx esi, cl
jmp 0x43d140