Function at 0x40bc00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
lea edi, [ecx + 0x60]
mov dword [esp + 0xc], ecx
mov esi, edx
mov dword [esp + 0x18], edi
push edi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
cmp eax, esi
je 0x40bde2
lea ecx, [edx + 0x54]
mov dword [esp + 0x20], ecx
nop
lea ecx, [eax - 8]
mov eax, dword [edx + 0x58]
mov dword [esp + 0x14], ecx
mov ebx, dword [eax + 4]
lea esi, [eax - 0x14]
sub ebx, 0x14
cmp eax, dword [esp + 0x20]
je 0x40bd2a
lea eax, [edx + 0x40]
mov dword [esp + 0x10], eax
mov ecx, eax
test byte [esi], 0x40
jne 0x40bd14
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov cl, byte [esi]
test al, cl
je 0x40bdd6
test cl, 8
je 0x40bc9c
mov ax, word [esi + 2]
cmp ax, word [edx + 0x28]
jne 0x40bdd6
test cl, 0x10
je 0x40bcaf
mov ax, word [esi + 4]
cmp ax, word [edx + 0x2a]
jne 0x40bdd6
test cl, 0x20
je 0x40bcc0
mov al, byte [esi + 6]
cmp al, byte [edx + 0x24]
jne 0x40bdd6
push dword [esi + 0x10]
mov eax, dword [esp + 0x18]
push dword [eax]
mov eax, dword [esi + 8]
push edx
push dword [edx + 4]
call eax
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
je 0x40bd0c
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
push esi
mov dword [ecx], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [ecx + 4], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, ebx
mov esi, ebx
mov ebx, dword [ebx + 0x18]
sub ebx, 0x14
cmp eax, ecx
jne 0x40bc66
mov ecx, dword [esp + 0x14]
cmp dword [ecx], 2
jne 0x40bd8c
mov esi, dword [ecx + 4]
test esi, esi
je 0x40bd8c
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jne 0x40bd8c
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 0xc]
push eax
push str.destroy_device__d._d
push str.libusb_unref_device
push 4
push dword [esi + 4]
call fcn.004078c0
mov ecx, dword [esi + 8]
add esp, 0x18
call fcn.00406ac0
mov eax, dword [esi + 4]
push esi
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x3c]
call eax
add esp, 4
mov ecx, esi
call fcn.00406890
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edx, dword [esp + 0x1c]
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 + 0x14]
push eax
mov dword [edx], 0
mov dword [edx + 4], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esp + 0x28]
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], eax
cmp eax, ecx
jne 0x40bc40
lea eax, [edx + 0x60]
jmp 0x40bde4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x40bd10
mov eax, edi
mov esi, dword [edx + 0x58]
lea ecx, [edx + 0x54]
mov dword [esp + 0x24], ecx
mov edi, dword [esi + 4]
lea ebx, [esi - 0x14]
sub edi, 0x14
cmp esi, ecx
je 0x40be5b
nop dword [eax + eax]
test byte [ebx], 0x40
je 0x40be49
push dword [ebx + 0xc]
push ebx
push str.freeing_hotplug_cb__p_with_handle__d
push str.usbi_hotplug_process
push 4
push edx
call fcn.004078c0
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 dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esp + 0x40]
add esp, 0x1c
mov edx, dword [esp + 0xc]
mov ebx, edi
mov edi, dword [edi + 0x18]
sub edi, 0x14
lea esi, [ebx + 0x14]
cmp esi, ecx
jne 0x40be00
lea eax, [edx + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret