Function at 0x100100e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x1009a340]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
or ebx, 0xffffffff
cmp dword [0x1009c804], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov eax, dword [edi + 0x24]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], str.input
mov dword [esp + 0x34], str.output
mov dword [esp + 0x38], str.feature
je 0x100106da
cmp dword [eax + 0x3cc], 0
jne 0x10010173
push str.program_assertion_failed___private_HID_structure_is_uninitialized
push str.hid_open
push 1
push dword [eax + 4]
call fcn.10007340
add esp, 0x10
lea eax, [ebx - 4]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100424c3
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea esi, [eax + 0x4c]
mov dword [esp + 0x10], ecx
xor eax, eax
mov dword [esp + 0x18], ecx
mov edx, dword [esi]
test edx, edx
je 0x1001027b
mov eax, dword [esi + 4]
cmp byte [eax], 4
jne 0x10010277
mov eax, dword [edi + 0x24]
push 0
push 0x40000000
push 3
mov eax, dword [eax + 4]
push 0
push 3
push 0xc0000000
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0xffffffff
je 0x10010209
mov eax, dword [esp + 0xc]
push 0
push edi
push dword [eax + 0x12c]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x1001026f
xor ecx, ecx
call fcn.100075f0
push eax
push str.failed_to_associate_handle_to_I_O_completion_port:__s
push str.windows_open
push 1
push dword [esp + 0x1c]
call fcn.10007340
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x24]
push str.could_not_open_HID_device_in_R_W_mode__keyboard_or_mouse_____trying_without
push str.hid_open
push 2
push dword [eax + 4]
call fcn.10007340
mov eax, dword [edi + 0x24]
add esp, 0x10
mov eax, dword [eax + 4]
push 0
push 0x40000000
push 3
push 0
push 3
push 0
push dword [esi]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [esp + 0x1c], eax
cmp ebx, 0xffffffff
je 0x100102e3
mov eax, dword [esp + 0xc]
push 0
push edi
push dword [eax + 0x12c]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x100102bc
mov byte [esi + 0x18], 1
mov ecx, dword [esp + 0x18]
mov dword [edi + ecx + 0x3c], ebx
mov eax, dword [esp + 0x10]
add ecx, 0x28
inc eax
add esi, 0x1c
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
cmp ecx, 0x500
jl 0x10010182
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0xa
push eax
push ebx
call dword [0x1009c7f8]
test eax, eax
jne 0x10010358
push str.could_not_gain_access_to_HID_top_collection__HidD_GetAttributes_
jmp 0x1001069f
xor ecx, ecx
call fcn.100075f0
push eax
push str.failed_to_associate_handle_to_I_O_completion_port:__s
push str.windows_open
push 1
push dword [esp + 0x1c]
call fcn.10007340
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x24]
xor ecx, ecx
mov esi, dword [eax + 4]
call fcn.100075f0
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push ecx
push dword [eax + 0x44]
push str.could_not_open_device__s__interface__d_:__s
push str.hid_open
push 1
push esi
call fcn.10007340
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x1001033e
sub eax, 3
je 0x100106da
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100424c3
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100424c3
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
mov esi, 0x20
movzx eax, word [esp + 0x40]
push esi
push ebx
mov ecx, dword [edx + 0x3cc]
mov word [ecx], ax
mov ecx, dword [edx + 0x3cc]
movzx eax, word [esp + 0x4a]
mov word [ecx + 2], ax
call dword [0x1009c7b4]
test eax, eax
je 0x1001039e
nop word [eax + eax]
add esi, esi
push esi
push ebx
call dword [0x1009c7b4]
test eax, eax
jne 0x10010390
mov eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [edi + 0x24]
push str.set_maximum_input_buffer_size_to__d
push str.hid_open
push 4
push dword [eax + 4]
call fcn.10007340
add esp, 0x14
lea eax, [esp + 0x20]
push eax
push ebx
call dword [0x1009c7d0]
test eax, eax
je 0x1001069a
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1001069a
lea ecx, [esp + 0x48]
push ecx
push eax
call dword [0x1009c7d4]
cmp eax, 0x110000
je 0x100103fd
push str.could_not_parse_HID_capabilities__HidP_GetCaps_
jmp 0x1001069f
movzx eax, word [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x88], eax
movzx eax, word [esp + 0x7e]
mov dword [esp + 0x8c], eax
movzx eax, word [esp + 0x84]
mov dword [esp + 0x90], eax
mov dword [esp + 0x28], ebx
nop word [eax + eax]
push dword [esp + ebx*4 + 0x30]
mov eax, dword [edi + 0x24]
lea esi, [esp + 0x8c]
push dword [esi + ebx*4]
lea esi, [esi + ebx*4]
push str._lu_HID__s_report_value_s__found
push str.hid_open
push 4
push dword [eax + 4]
mov dword [esp + 0x44], esi
call fcn.10007340
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov eax, dword [eax + 0x3cc]
mov byte [ebx + eax + 6], 0
mov eax, dword [esi]
test eax, eax
je 0x1001058e
push 0x48
push eax
call fcn.1004b2c2
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x10010563
push dword [esp + 0x20]
push esi
push eax
push ebx
call dword [0x1009c7bc]
cmp eax, 0x110000
jne 0x10010563
mov ecx, dword [esi]
cmp ecx, 1
jb 0x10010563
xor eax, eax
xor edx, edx
mov dword [esp + 0x18], eax
test ecx, ecx
jle 0x10010582
mov ecx, dword [esp + 0x24]
mov ebx, eax
add ecx, 2
mov dword [esp + 0x10], ecx
nop
movzx eax, byte [ecx]
mov esi, edx
push eax
mov eax, dword [edi + 0x24]
push str.__Report_ID:_0x_02X
push str.hid_open
push 4
push dword [eax + 4]
call fcn.10007340
mov ecx, dword [esp + 0x24]
lea edx, [esi + 1]
add esp, 0x14
lea eax, [ebx + 1]
mov cl, byte [ecx]
test cl, cl
mov ecx, dword [esp + 0x10]
cmove ebx, eax
cmove edx, esi
mov esi, dword [esp + 0x18]
add ecx, 0x48
mov eax, dword [esp + 0x2c]
inc esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ecx
cmp esi, dword [eax]
jl 0x100104d0
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x28]
test edx, edx
je 0x10010582
cmp dword [esp + 0xc], 0
je 0x10010552
mov eax, dword [esp + ebx*4 + 0x30]
push eax
mov eax, dword [edi + 0x24]
push str.program_assertion_failed___zero_and_nonzero_report_IDs_used_for__s
push str.hid_open
push 2
push dword [eax + 4]
call fcn.10007340
add esp, 0x14
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x3cc]
mov byte [ebx + eax + 6], 1
jmp 0x10010582
mov eax, dword [esp + ebx*4 + 0x30]
push eax
mov eax, dword [edi + 0x24]
push str.__could_not_process__s_report_IDs
push str.hid_open
push 2
push dword [eax + 4]
call fcn.10007340
add esp, 0x14
push dword [esp + 0x24]
call fcn.100475a3
add esp, 4
inc ebx
mov dword [esp + 0x28], ebx
cmp ebx, 2
jle 0x10010430
mov ebx, dword [esp + 0x14]
movzx eax, word [esp + 0x4c]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x3cc]
mov word [ecx + 0xa], ax
mov ecx, dword [ebx + 0x3cc]
movzx eax, word [esp + 0x4e]
mov word [ecx + 0xc], ax
mov ecx, dword [ebx + 0x3cc]
movzx eax, word [esp + 0x50]
mov word [ecx + 0xe], ax
mov ecx, dword [ebx + 0x3cc]
movzx eax, word [esp + 0x48]
mov word [ecx + 0x10], ax
mov ecx, dword [ebx + 0x3cc]
movzx eax, word [esp + 0x4a]
mov word [ecx + 0x12], ax
mov ecx, dword [ebx + 0x3cc]
mov al, byte [ebx + 0x2e]
mov byte [ecx + 0x314], al
mov eax, dword [ebx + 0x3cc]
cmp byte [eax + 0x314], 0
lea ecx, [eax + 0x14]
je 0x1001061f
push 0x100
push ecx
push esi
call dword [0x1009c7ec]
jmp 0x10010624
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebx + 0x3cc]
mov al, byte [ebx + 0x2f]
mov byte [ecx + 0x315], al
mov eax, dword [ebx + 0x3cc]
mov cl, byte [eax + 0x315]
add eax, 0x114
test cl, cl
je 0x1001065b
push 0x100
push eax
movzx eax, cl
push eax
push esi
call dword [0x1009c908]
jmp 0x10010660
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebx + 0x3cc]
mov al, byte [ebx + 0x30]
mov byte [ecx + 0x316], al
mov eax, dword [ebx + 0x3cc]
cmp byte [eax + 0x316], 0
lea ecx, [eax + 0x214]
je 0x10010693
push 0x100
push ecx
push esi
call dword [0x1009c7ac]
jmp 0x100106b4
xor eax, eax
mov word [ecx], ax
jmp 0x100106b4
push str.could_not_read_HID_preparsed_data__HidD_GetPreparsedData_
mov eax, dword [edi + 0x24]
push str.hid_open
push 1
push dword [eax + 4]
call fcn.10007340
add esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100106c3
push eax
call dword [0x1009c7cc]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100424c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x94]
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100424c3
mov esp, ebp
pop ebp
ret