Function at 0x100079d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, edx
mov dword [esp + 0x28], esi
mov ebp, ecx
lea edi, [ebp + 0x60]
mov dword [esp + 0x20], ebp
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
mov dword [esp + 0x24], eax
cmp eax, esi
je 0x10007bea
lea ebx, [ebp + 0x54]
mov dword [esp + 0x14], ebx
nop dword [eax]
mov ebx, dword [ebp + 0x58]
add eax, 0xfffffff8
mov ebp, dword [ebx + 4]
sub ebp, 0x14
mov dword [esp + 0x18], eax
lea esi, [ebx - 0x14]
cmp ebx, dword [esp + 0x14]
je 0x10007af1
mov eax, dword [esp + 0x14]
test byte [esi], 0x40
jne 0x10007ada
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
mov dl, byte [esi]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
test al, dl
je 0x10007c6e
test dl, 8
je 0x10007a67
mov ax, word [esi + 2]
cmp ax, word [ecx + 0x28]
jne 0x10007c6e
test dl, 0x10
je 0x10007a7a
mov ax, word [esi + 4]
cmp ax, word [ecx + 0x2a]
jne 0x10007c6e
test dl, 0x20
je 0x10007a8b
mov al, byte [esi + 6]
cmp al, byte [ecx + 0x24]
jne 0x10007c6e
push dword [esi + 0x10]
mov eax, dword [esp + 0x1c]
push dword [eax]
mov eax, dword [esi + 8]
push ecx
push dword [ecx + 4]
call eax
push dword [esp + 0x1c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
je 0x10007ad2
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
push esi
mov dword [ecx], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.10049123
add esp, 4
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, ebp
mov ebp, dword [ebp + 0x18]
sub ebp, 0x14
lea ebx, [esi + 0x14]
cmp ebx, eax
jne 0x10007a31
mov eax, dword [esp + 0x18]
cmp dword [eax], 2
jne 0x10007b9f
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x10007b9f
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
jne 0x10007b9f
movzx eax, byte [ebx + 0xe]
push eax
movzx eax, byte [ebx + 0xc]
push eax
push str.destroy_device__d._d
push str.libusb_unref_device
push 4
push dword [ebx + 4]
call fcn.10006230
mov ecx, dword [ebx + 8]
add esp, 0x18
call fcn.10004ff0
mov eax, dword [ebx + 4]
push ebx
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x3c]
call eax
mov edi, dword [ebx + 4]
add esp, 4
mov dword [ebx + 0x34], 0
lea esi, [edi + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
push esi
mov dword [ecx], eax
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
mov dword [edx + 4], eax
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 2
mov edx, ebx
mov ecx, edi
call fcn.10007910
add esp, 4
push ebx
call fcn.10049123
add esp, 4
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x18]
push eax
mov dword [edx], 0
mov dword [edx + 4], 0
call fcn.10049123
mov ecx, dword [esp + 0x2c]
add esp, 4
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
cmp eax, ecx
jne 0x10007a10
lea edi, [ebp + 0x60]
mov esi, dword [ebp + 0x58]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esi + 4]
sub ebp, 0x14
lea ebx, [esi - 0x14]
lea eax, [ecx + 0x54]
mov dword [esp + 0x28], eax
cmp esi, eax
je 0x10007c5f
test byte [ebx], 0x40
je 0x10007c4d
push dword [ebx + 0xc]
push ebx
push str.freeing_hotplug_cb__p_with_handle__d
push str.usbi_hotplug_process
push 4
push ecx
call fcn.10006230
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push ebx
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10049123
mov eax, dword [esp + 0x44]
add esp, 0x1c
mov ecx, dword [esp + 0x20]
mov ebx, ebp
mov ebp, dword [ebp + 0x18]
sub ebp, 0x14
lea esi, [ebx + 0x14]
cmp esi, eax
jne 0x10007c05
lea edi, [ecx + 0x60]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x10007ad6