Function at 0x404250
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.00408af0
mov eax, dword [ebp - 4]
test eax, eax
je 0x404326
movzx edx, byte [eax + 4]
xor ecx, ecx
test edx, edx
je 0x404326
mov eax, dword [eax + 0xc]
nop dword [eax]
mov esi, dword [eax]
cmp byte [esi + 2], bl
je 0x4042df
inc ecx
add eax, 8
cmp ecx, edx
jl 0x4042d0
movzx eax, byte [esi + 4]
xor edx, edx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x404311
mov ecx, dword [esi + 0xc]
mov esi, eax
mov al, byte [ecx + 3]
and al, 3
cmp al, 2
jne 0x404301
cmp word [ecx + 4], 0
jne 0x40430b
inc edx
add ecx, 0x14
cmp edx, esi
jl 0x4042f1
jmp 0x404311
mov bl, byte [ecx + 2]
mov byte [ebp + 0xf], bl
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.004086f0
push esi
call fcn.0041ffac
add esp, 4
jmp 0x40432b
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.00407c10
mov eax, dword [ebx + 0x24]
add esp, 0x14
cmp dword [eax + 0x34], 0
je 0x404370
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.00418c00
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.0041ffa1
mov esi, eax
add esp, 8
test esi, esi
je 0x4043d5
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], 0x404120
mov ecx, dword [ebx]
call fcn.00409560
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 0x4043a0
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 [0x44594c]
cmp eax, dword [ecx + 4]
jg 0x4044f6
cmp dword [0x445938], 0
jne 0x404473
push 0x2b
push str.F:devopentrack_video_ps3eyeps3eye_drivermgr.cpp
push str.usb_context
call fcn.0041fc6e
add esp, 0xc
mov eax, 1
mov ecx, 0x445944
lock xadd dword [ecx], eax
test eax, eax
jne 0x4044d8
push 8
call fcn.00416dd5
add esp, 4
lea ecx, [ebp - 0x10]
mov dword [eax], 0x445938
push ecx
push 0
push eax
push 0x406a00
push 0
push 0
mov dword [eax + 4], 0x406410
call fcn.0041ff10
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x4044e8
cmp dword [0x445940], 0
jne 0x40457a
mov eax, dword [ebp - 0x10]
mov dword [0x44593c], ecx
mov dword [0x445940], 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.004167b7
push 0x44594c
call fcn.0041719b
add esp, 4
cmp dword [0x44594c], 0xffffffff
jne 0x404456
xorps xmm0, xmm0
mov dword [0x445938], 0
push ecx
movq qword [0x44593c], xmm0
mov dword [0x445944], 0
mov byte [0x445948], 0
call fcn.00407530
movzx eax, byte [0x4448d0]
neg eax
sbb eax, eax
and eax, 3
push eax
push 0
push dword [0x445938]
call fcn.004073c0
add esp, 0xc
push 0x433a20
call fcn.004174ad
add esp, 4
push 0x44594c
call fcn.00417151
add esp, 4
jmp 0x404456
call fcn.004063f0
int3