Function at 0x415bd0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499c7d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4ed800]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x58]
mov edi, dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x3c], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x30]
movq qword [ebp - 0x1c], xmm0
call fcn.004102b0
mov eax, 2
mov dword [ebp - 4], 0
push 0x21
mov word [0x4f2b08], 0xffff
mov dword [0x4f2b00], 0x4f2b0a
mov word [0x4f2b04], ax
call fcn.00414f40
mov ecx, dword [0x4f2b00]
add esp, 4
mov al, byte [ebp + 0x10]
mov byte [ecx], al
mov al, byte [ebp - 0x38]
mov byte [ecx + 1], al
mov al, byte [ebp - 0x37]
mov byte [ecx + 2], al
mov al, byte [ebp - 0x2c]
mov byte [ecx + 3], al
mov al, byte [ebp - 0x4c]
mov byte [ecx + 4], al
cmp byte [ebp - 0x49], 2
sete al
mov byte [ecx + 5], al
mov al, byte [ebp - 0x4a]
mov byte [ecx + 6], al
mov al, byte [ebp - 0x47]
mov byte [ecx + 7], al
mov al, byte [ebp - 0x4b]
mov byte [ecx + 8], al
mov al, byte [ebp - 0x48]
mov byte [ecx + 9], al
mov al, byte [ebp - 0x34]
mov byte [ecx + 0xa], al
mov al, byte [ebp - 0x30]
mov byte [ecx + 0xb], al
mov al, byte [ebp - 0x40]
mov byte [ecx + 0xc], al
mov al, byte [ebp - 0x44]
mov byte [ecx + 0xd], al
cmp byte [ebp - 0x49], 0
sete al
mov byte [ecx + 0xe], al
cmp byte [ebp - 0x49], 1
sete al
mov byte [ecx + 0xf], al
mov al, byte [ebp - 0x2c]
mov byte [ecx + 0x10], al
add ecx, 0x11
mov ax, word [0x4f2b04]
mov dl, byte [ebp - 0x23]
add ax, 0x11
mov dword [0x4f2b00], ecx
mov word [0x4f2b04], ax
cmp dl, 1
jne 0x415d1a
lea ecx, [ebp - 0x1c]
call fcn.0046b520
mov ecx, dword [0x4f2b00]
test al, al
mov ax, word [0x4f2b04]
je 0x415d17
mov byte [ebp - 0x23], 0
mov byte [ecx], 0
jmp 0x415d1c
mov dl, byte [ebp - 0x23]
mov byte [ecx], dl
inc ax
inc ecx
cmp byte [ebp - 0x24], 2
movzx edx, ax
sete al
mov byte [ecx], al
cmp byte [ebp - 0x24], 0
sete al
mov byte [ecx + 1], al
cmp byte [ebp - 0x24], 1
sete al
mov byte [ecx + 2], al
lea eax, [ecx + 3]
mov dword [0x4f2b00], eax
lea eax, [edx + 3]
mov word [0x4f2b04], ax
call fcn.00414ea0
movsd xmm0, qword [0x4a7b00]
sub esp, 8
mov byte [ebp - 4], 1
movsd qword [esp], xmm0
push 0x21
call fcn.00415040
mov eax, dword [0x4f2afc]
add esp, 0xc
mov dword [ebp - 4], 0
mov dh, byte [eax + 1]
lea ecx, [eax + 2]
mov dl, byte [eax]
movzx eax, word [0x4f0f24]
mov dword [0x4f2afc], ecx
sub ecx, 0x4f1af8
mov byte [ebp - 0x4d], dh
cmp ecx, eax
jne 0x415e6d
test dh, dh
jne 0x415df7
test dl, dl
jne 0x415dd0
movups xmm0, xmmword [ebp - 0x4c]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [esi + 0x20], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x30], xmm0
jmp 0x415df2
mov byte [esi + 0x20], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x15], 0
mov byte [esi + 0x28], 2
mov byte [esi + 2], 0
mov byte [esi + 5], 0
mov byte [esi + 0x38], dl
mov byte [edi], dl
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 4], 4
test ecx, ecx
je 0x415e66
cmp byte [ebp - 0x54], 0
je 0x415e66
push ecx
call fcn.0046c752
add esp, 4
call sub.KERNEL32.dll_SwitchToThread
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00469ad1
mov esp, ebp
pop ebp
ret 0xc
push 1
call fcn.00415320
mov ecx, 0x4f0f18
call fcn.00432bb0
push str.Communication_error_on_USB_link__packet_size_is_wrong_
push 7
mov ecx, 0x4ed078
call fcn.00431760
push 0x4e3924
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0xffffffff
push eax
call fcn.0046fc9f
int3