Function at 0x46cbc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c486c
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
movaps xmm0, xmmword [0x4cbac0]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
lea eax, [edi + 0x20]
push dword [ebp - 0x6c]
movups xmmword [ebp - 0x50], xmm0
push eax
push 0x4ed370
push 0x4f7c40
push 0x4f9ecc
call fcn.0045f7d0
add esp, 0x14
movzx eax, ax
mov ecx, edi
push 0
push eax
push 0
push 0x40100
push 0x6cf0000
push 0
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.0046bcf0
mov ebx, 0x4c633a
mov dword [ebp - 0x14], 0xf
test esi, esi
mov dword [ebp - 0x18], 0
mov edx, ebx
mov byte [ebp - 0x28], 0
cmovne edx, esi
cmp byte [edx], 0
jne 0x46cc67
xor ecx, ecx
jmp 0x46cc79
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46cc70
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0046a890
lea esi, [edi + 0x3c]
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x46ccc8
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x46cca0
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0046a990
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x46ccb8
mov eax, dword [esi]
jmp 0x46ccba
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0x28]
push eax
call fcn.0046a4c0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x46cce4
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0046a990
mov eax, dword [ebp - 0x6c]
test eax, eax
mov dword [ebp - 0x2c], 0xf
cmovne ebx, eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp byte [ebx], 0
jne 0x46cd07
xor ecx, ecx
jmp 0x46cd19
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46cd10
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x40]
call fcn.0046a890
lea esi, [edi + 0x54]
lea eax, [ebp - 0x40]
cmp esi, eax
je 0x46cd68
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x46cd40
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0046a990
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x46cd58
mov eax, dword [esi]
jmp 0x46cd5a
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0x40]
push eax
call fcn.0046a4c0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x46cd84
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0046a990
cmp dword [edi + 0x90], 0
mov ecx, edi
je 0x46cd99
call fcn.0046bfa0
jmp 0x46ce24
call fcn.0046d5e0
test al, al
je 0x46cdce
mov ecx, edi
call fcn.0046bf50
test eax, eax
jne 0x46cdd2
push str.Fail_to_handshake_with_device
lea ecx, [ebp - 0x68]
call fcn.00463020
lea eax, [ebp - 0x68]
push eax
lea ecx, [edi + 0x6c]
call fcn.00463290
lea ecx, [ebp - 0x68]
call fcn.00463250
xor al, al
jmp 0x46ce24
push 0x14
call fcn.00471df6
mov esi, eax
add esp, 4
mov dword [ebp - 0x6c], esi
test esi, esi
je 0x46cdfe
mov dword [esi + 8], 0
mov dword [esi + 0xc], 1
mov dword [esi], vtable.UsbReadThread.0
mov dword [esi + 0x10], edi
jmp 0x46ce00
xor esi, esi
lea eax, [esi + 4]
mov dword [esi + 0xc], 1
push eax
push 0
push esi
push 0x46a6d0
push 0
push 0
call fcn.0049f10c
mov dword [esi + 8], eax
add esp, 0x18
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret 8