Function at 0x404370
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.00408d00
mov eax, dword [ebp - 4]
test eax, eax
je 0x404446
movzx edx, byte [eax + 4]
xor ecx, ecx
test edx, edx
je 0x404446
mov eax, dword [eax + 0xc]
nop dword [eax]
mov esi, dword [eax]
cmp byte [esi + 2], bl
je 0x4043ff
inc ecx
add eax, 8
cmp ecx, edx
jl 0x4043f0
movzx eax, byte [esi + 4]
xor edx, edx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x404431
mov ecx, dword [esi + 0xc]
mov esi, eax
mov al, byte [ecx + 3]
and al, 3
cmp al, 2
jne 0x404421
cmp word [ecx + 4], 0
jne 0x40442b
inc edx
add ecx, 0x14
cmp edx, esi
jl 0x404411
jmp 0x404431
mov bl, byte [ecx + 2]
mov byte [ebp + 0xf], bl
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.00408900
push esi
call fcn.00420a7a
add esp, 4
jmp 0x40444b
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.00407e20
mov eax, dword [ebx + 0x24]
add esp, 0x14
cmp dword [eax + 0x34], 0
je 0x404490
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 fcn.004192e0
add esp, 0xc
mov dword [ebp - 0xc], 5
xor eax, eax
lea ebx, [edi + 0x58]
mov dword [ebp - 4], eax
nop dword [eax + eax]
push 0xf0
push 1
call fcn.00420a64
mov esi, eax
add esp, 8
test esi, esi
je 0x4044f5
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], 0x404240
mov ecx, dword [ebx]
call fcn.00409770
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 0x4044c0
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 [0x445954]
cmp eax, dword [ecx + 4]
jg 0x404616
cmp dword [0x445940], 0
jne 0x404593
push 0x2b
push str.F:devopentrack_video_ps3eyeps3eye_drivermgr.cpp
push str.usb_context
call fcn.00420731
add esp, 0xc
mov eax, 1
mov ecx, 0x44594c
lock xadd dword [ecx], eax
test eax, eax
jne 0x4045f8
push 8
call fcn.0041741e
add esp, 4
lea ecx, [ebp - 0x10]
mov dword [eax], 0x445940
push ecx
push 0
push eax
push 0x406c40
push 0
push 0
mov dword [eax + 4], 0x4065f0
call fcn.004209d3
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x404608
cmp dword [0x445948], 0
jne 0x40469a
mov eax, dword [ebp - 0x10]
mov dword [0x445944], ecx
mov dword [0x445948], 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 fcn.0041691d
push 0x445954
call fcn.00417348
add esp, 4
cmp dword [0x445954], 0xffffffff
jne 0x404576
xorps xmm0, xmm0
mov dword [0x445940], 0
push ecx
movq qword [0x445944], xmm0
mov dword [0x44594c], 0
mov byte [0x445950], 0
call fcn.00407740
movzx eax, byte [0x4448d0]
neg eax
sbb eax, eax
and eax, 3
push eax
push 0
push dword [0x445940]
call fcn.004075d0
add esp, 0xc
push 0x433ca0
call fcn.0041768a
add esp, 4
push 0x445954
call fcn.004172fe
add esp, 4
jmp 0x404576
call fcn.004065b0
int3