Function at 0x403ee0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 4]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
xor bl, bl
mov byte [ebp + 0xf], bl
mov dword [edi + 0xea60dc], eax
mov dword [edi + 0xea60c4], eax
lea eax, [edi + 0xc4]
mov dword [edi + 0xea60d4], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0xea60c8], 0
mov dword [edi + 0xea60cc], 0
mov dword [edi + 0xea60d0], 0
mov dword [edi + 0xea60d8], 0
mov ecx, dword [eax + 0x24]
call fcn.00408890
mov eax, dword [ebp - 4]
test eax, eax
je 0x403fb7
movzx edx, byte [eax + 4]
xor ecx, ecx
test edx, edx
je 0x403fb7
mov eax, dword [eax + 0xc]
nop dword [eax]
mov esi, dword [eax]
cmp byte [esi + 2], bl
je 0x403f6f
inc ecx
add eax, 8
cmp ecx, edx
jl 0x403f60
movzx eax, byte [esi + 4]
xor edx, edx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x403fa1
mov ecx, dword [esi + 0xc]
mov esi, eax
mov al, byte [ecx + 3]
and al, 3
cmp al, 2
jne 0x403f91
cmp word [ecx + 4], 0
jne 0x403f9b
inc edx
add ecx, 0x14
cmp edx, esi
jl 0x403f81
jmp 0x403fa1
mov bl, byte [ecx + 2]
mov byte [ebp + 0xf], bl
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.00408430
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x403fbc
xor bl, bl
mov byte [ebp + 0xf], bl
movzx eax, bl
push eax
mov byte [ebp - 4], bl
mov ebx, dword [ebp + 8]
push str.endpoint_0x_x
push str.libusb_clear_halt
push 4
mov eax, dword [ebx + 0x24]
push dword [eax + 4]
call fcn.004078c0
mov eax, dword [ebx + 0x24]
add esp, 0x14
cmp dword [eax + 0x34], 0
je 0x404001
mov eax, dword [ebx + 0x24]
push dword [ebp - 4]
push ebx
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x34]
call eax
add esp, 8
push 0x50000
lea eax, [edi + 0xea60e8]
push 0
push eax
mov dword [ebp - 8], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc], 5
xor eax, eax
lea ebx, [edi + 0x58]
mov dword [ebp - 4], eax
nop dword [eax]
push 0xf0
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x404066
lea eax, [esi + 0xac]
mov dword [esi + 0x70], 0
push eax
mov dword [esi + 0xc4], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0xc8]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ebx], eax
mov dword [eax], ecx
mov cl, byte [ebp + 0xf]
mov byte [eax + 5], cl
mov byte [eax + 6], 2
mov dword [eax + 8], 0
mov dword [eax + 0x20], esi
mov dword [eax + 0x10], 0x10000
mov dword [eax + 0x1c], edi
mov dword [eax + 0x18], 0x403da0
mov ecx, dword [ebx]
call fcn.004092a0
or dword [ebp - 4], eax
add esi, 0x10000
inc byte [edi + 0xea60e7]
add ebx, 4
sub dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
jne 0x404030
xor eax, eax
mov dword [edi + 0xea60e0], 0
mov word [edi + 0xea60e4], ax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x42157c]
cmp eax, dword [ecx + 4]
jg 0x40418a
cmp dword [0x421568], 0
jne 0x404105
push 0x2b
push str.C:_reposopentrack_video_ps3eyeps3eye_drivermgr.cpp
push str.usb_context
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, 1
mov ecx, 0x421574
lock xadd dword [ecx], eax
test eax, eax
jne 0x40416b
push 8
call fcn.00417092
add esp, 4
lea ecx, [ebp - 0x10]
mov dword [eax], 0x421568
push ecx
push 0
push eax
push 0x406620
push 0
push 0
mov dword [eax + 4], 0x406130
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x40417b
cmp dword [0x421570], 0
jne 0x40420e
mov eax, dword [ebp - 0x10]
mov dword [0x42156c], ecx
mov dword [0x421570], eax
cmp dword [ebp - 4], 0
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [ebp - 0x10], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 0x42157c
call fcn.0041702e
add esp, 4
cmp dword [0x42157c], 0xffffffff
jne 0x4040e7
xorps xmm0, xmm0
mov dword [0x421568], 0
push ecx
movq qword [0x42156c], xmm0
mov dword [0x421574], 0
mov byte [0x421578], 0
call fcn.00407190
movzx eax, byte [0x421088]
neg eax
sbb eax, eax
and eax, 3
push eax
push 0
push dword [0x421568]
call fcn.00406ff0
add esp, 0xc
push 0x417f50
call fcn.004172fe
add esp, 4
push 0x42157c
call fcn.00416fdd
add esp, 4
jmp 0x4040e7
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3