Function at 0x1004b370
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f276
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1007a058]
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 ebx, ecx
mov dword [ebp - 0x54], ebx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], ebx
mov dword [ebx + 4], edi
mov dword [ebp - 0x60], eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebx], vtable.binder::hid_device.0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
xorps xmm0, xmm0
movq qword [ebx + 0x34], xmm0
lea eax, [ebx + 0x3c]
push 2
push eax
call fcn.1001e683
add esp, 8
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
mov esi, dword [sym.imp.USER32.dll_GetRawInputDeviceInfoW]
push eax
push 0
push 0x20000005
push edi
mov byte [ebx + 0x6c], 1
call esi
push dword [ebp - 0x58]
call fcn.10020175
add esp, 4
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
push ecx
push eax
push 0x20000005
push edi
call esi
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.10021b90
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.HID.DLL_HidP_GetCaps]
mov eax, dword [ebx + 0x18]
mov edx, eax
mov esi, dword [ebx + 0x14]
sub edx, esi
movzx ecx, word [ebp - 0x4c]
mov dword [ebp - 0x54], eax
cmp ecx, edx
jae 0x1004b486
lea eax, [esi + ecx]
mov dword [ebx + 0x18], eax
jmp 0x1004b4b4
jbe 0x1004b4b4
mov eax, dword [ebx + 0x1c]
sub eax, esi
cmp ecx, eax
jbe 0x1004b49d
push ecx
push ecx
lea ecx, [ebx + 0x14]
call fcn.100152f0
jmp 0x1004b4b4
mov eax, dword [ebp - 0x54]
sub ecx, edx
push ecx
push 0
push eax
lea esi, [ecx + eax]
call fcn.10021b90
add esp, 0xc
mov dword [ebx + 0x18], esi
mov eax, dword [ebx + 0x24]
mov edx, eax
mov esi, dword [ebx + 0x20]
sub edx, esi
movzx ecx, word [ebp - 0x48]
mov dword [ebp - 0x54], eax
cmp ecx, edx
jae 0x1004b4d1
lea eax, [esi + ecx]
mov dword [ebx + 0x24], eax
jmp 0x1004b4ff
jbe 0x1004b4ff
mov eax, dword [ebx + 0x28]
sub eax, esi
cmp ecx, eax
jbe 0x1004b4e8
push ecx
push ecx
lea ecx, [ebx + 0x20]
call fcn.100152f0
jmp 0x1004b4ff
mov eax, dword [ebp - 0x54]
sub ecx, edx
push ecx
push 0
push eax
lea esi, [ecx + eax]
call fcn.10021b90
add esp, 0xc
mov dword [ebx + 0x24], esi
push 0
push 0x40000000
push 3
push 0
push 3
push 0xc0000000
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 1
push 0
mov dword [ebx + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 8
mov dword [ebx + 0x30], eax
call fcn.1001fad7
add esp, 4
mov dword [ebp - 0x60], eax
mov dword [eax], 0x1004b1a0
mov dword [eax + 4], ebx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
push ecx
push 0
push eax
push 0x10015420
push 0
push 0
call fcn.1002b589
add esp, 0x18
mov dword [ebp - 0x68], eax
test eax, eax
je 0x1004b5a1
cmp dword [ebx + 0x38], 0
jne 0x1004b5af
mov ecx, dword [ebp - 0x64]
push dword [ebp - 0x5c]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], ecx
call fcn.1001fad2
add esp, 4
mov eax, ebx
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.1001fac4
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [ebp - 0x64], 0
call fcn.1001e357
call fcn.1002b61a
int3