Function at 0x6b8148b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x6b820318]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x64], str.input
mov dword [ebp - 0x60], str.output
mov dword [ebp - 0x5c], str.feature
mov eax, dword [eax + 0x24]
test ecx, ecx
mov dword [ebp - 0x8c], eax
je 0x6b814e62
mov edx, dword [eax + 0x3e4]
test edx, edx
je 0x6b814e6c
mov ecx, dword [ebp - 0x8c]
mov ebx, 0xffffffff
xor esi, esi
mov eax, ebx
lea edi, [ecx + 0x64]
mov ebx, ecx
jmp 0x6b81492b
add esi, 1
add edi, 0x1c
cmp esi, 0x20
je 0x6b814961
mov edx, dword [edi]
test edx, edx
je 0x6b814920
mov ecx, dword [edi + 4]
cmp byte [ecx], 4
jne 0x6b814920
mov eax, dword [ebx + 0x1c]
mov ecx, 0xc0000000
call sym._windows_open.isra.23
cmp eax, 0xffffffff
je 0x6b814a82
mov ecx, dword [ebp + 0xc]
add edi, 0x1c
mov dword [ecx + esi*8 + 0x34], eax
add esi, 1
cmp esi, 0x20
jne 0x6b81492b
mov ebx, eax
lea eax, [ebp - 0x7a]
mov dword [ebp - 0x7a], 0xa
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [0x6b820310]
sub esp, 8
test eax, eax
je 0x6b814a78
mov eax, dword [ebp - 0x8c]
movzx edx, word [ebp - 0x76]
mov eax, dword [eax + 0x3e4]
mov word [eax], dx
movzx edx, word [ebp - 0x74]
mov word [eax + 2], dx
jmp 0x6b8149a4
add esi, esi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [0x6b8202f0]
sub esp, 8
test eax, eax
jne 0x6b8149a2
sar esi, 1
mov dword [esp + 0xc], str.set_maximum_input_buffer_size_to__d
mov dword [esp + 8], str.hid_open
mov dword [esp + 0x10], esi
mov dword [esp + 4], 4
mov dword [esp], 0
call sym.libusb_1.0.dll_usbi_log
lea eax, [ebp - 0x80]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [0x6b82030c]
sub esp, 8
test eax, eax
je 0x6b814a30
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x6b814a30
lea edx, [ebp - 0x58]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [0x6b8202f4]
sub esp, 8
cmp eax, 0x110000
je 0x6b814ac9
mov dword [esp + 0xc], str.could_not_parse_HID_capabilities__HidP_GetCaps_
jmp 0x6b814a38
mov dword [esp + 0xc], str.could_not_read_HID_preparsed_data__HidD_GetPreparsedData_
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], str.hid_open
mov dword [esp + 4], 1
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
mov eax, dword [ebp - 0x80]
xor ebx, ebx
test eax, eax
je 0x6b814a6e
mov dword [esp], eax
call dword [0x6b820308]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.could_not_gain_access_to_HID_top_collection__HidD_GetAttributes_
jmp 0x6b814a38
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.could_not_open_HID_device_in_R_W_mode__keyboard_or_mouse_____trying_without
mov dword [esp + 8], str.hid_open
mov dword [esp + 4], 2
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
mov eax, dword [ebx + 0x1c]
mov edx, dword [edi]
xor ecx, ecx
call sym._windows_open.isra.23
cmp eax, 0xffffffff
je 0x6b814df3
mov byte [edi + 0x18], 1
jmp 0x6b81494f
movzx edx, word [ebp - 0x22]
movzx eax, word [ebp - 0x28]
mov ecx, str.input
lea esi, [ebp - 0x70]
mov dword [ebp - 0x90], ebx
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x6c], edx
movzx edx, word [ebp - 0x1c]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], str._lu_HID__s_report_value_s__found
mov dword [esp + 8], str.hid_open
mov dword [esp + 4], 4
mov dword [esp], 0
call sym.libusb_1.0.dll_usbi_log
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax + 0x3e4]
mov byte [eax + edi + 6], 0
mov eax, dword [esi]
test eax, eax
jne 0x6b814c04
add edi, 1
add esi, 4
cmp edi, 3
je 0x6b814b4a
mov ebx, dword [ebp + edi*4 - 0x64]
mov eax, dword [esi]
jmp 0x6b814af0
mov ecx, dword [ebp - 0x8c]
movzx edx, word [ebp - 0x54]
mov ebx, dword [ebp - 0x90]
mov eax, dword [ecx + 0x3e4]
mov word [eax + 0xa], dx
movzx edx, word [ebp - 0x52]
mov word [eax + 0xc], dx
movzx edx, word [ebp - 0x50]
mov word [eax + 0xe], dx
movzx edx, word [ebp - 0x58]
mov word [eax + 0x10], dx
movzx edx, word [ebp - 0x56]
mov word [eax + 0x12], dx
movzx edx, byte [ecx + 0x46]
mov byte [eax + 0x314], dl
mov eax, dword [ecx + 0x3e4]
cmp byte [eax + 0x314], 0
jne 0x6b814cd6
xor esi, esi
mov word [eax + 0x14], si
mov ecx, dword [ebp - 0x8c]
movzx edx, byte [ecx + 0x47]
mov byte [eax + 0x315], dl
mov eax, dword [ecx + 0x3e4]
cmp byte [eax + 0x315], 0
jne 0x6b814ca8
xor ecx, ecx
mov word [eax + 0x114], cx
mov ecx, dword [ebp - 0x8c]
movzx edx, byte [ecx + 0x48]
mov byte [eax + 0x316], dl
mov eax, dword [ecx + 0x3e4]
cmp byte [eax + 0x316], 0
jne 0x6b814c86
xor edx, edx
mov word [eax + 0x214], dx
jmp 0x6b814a59
mov dword [esp + 4], 0x48
mov dword [esp], eax
call sym._calloc
test eax, eax
mov ecx, eax
mov dword [ebp - 0x94], eax
je 0x6b814c46
mov eax, dword [ebp - 0x80]
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], edi
mov dword [esp + 0xc], eax
call dword [0x6b8202e4]
sub esp, 0x10
cmp eax, 0x110000
je 0x6b814d02
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__could_not_process__s_report_IDs
mov dword [esp + 8], str.hid_open
mov dword [esp + 4], 2
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call sym._free
jmp 0x6b814b37
add eax, 0x214
mov dword [esp + 8], 0x100
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [0x6b8202fc]
sub esp, 0xc
jmp 0x6b814a59
add eax, 0x114
mov dword [esp + 8], 0x100
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [0x6b820300]
mov eax, dword [ebp - 0x8c]
sub esp, 0xc
mov eax, dword [eax + 0x3e4]
jmp 0x6b814bd3
add eax, 0x14
mov dword [esp + 8], 0x100
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [0x6b820304]
mov eax, dword [ebp - 0x8c]
sub esp, 0xc
mov eax, dword [eax + 0x3e4]
jmp 0x6b814ba7
cmp dword [esi], 0
je 0x6b814c46
jle 0x6b814c73
mov eax, dword [ebp - 0x94]
xor edx, edx
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x9c], 0
mov edi, edx
mov dword [ebp - 0x98], 0
add eax, 2
mov ebx, eax
jmp 0x6b814d53
add dword [ebp - 0x98], 1
add edi, 1
add ebx, 0x48
cmp dword [esi], edi
jle 0x6b814d8c
movzx ecx, byte [ebx]
mov dword [esp + 0xc], str.__Report_ID:_0x_02X
mov dword [esp + 8], str.hid_open
mov dword [esp + 4], 4
mov dword [esp], 0
mov dword [esp + 0x10], ecx
call sym.libusb_1.0.dll_usbi_log
cmp byte [ebx], 0
jne 0x6b814d42
add dword [ebp - 0x9c], 1
jmp 0x6b814d49
mov eax, dword [ebp - 0x98]
mov edi, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0xa4]
test eax, eax
je 0x6b814c73
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x6b814ddd
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.program_assertion_failed___zero_and_nonzero_report_IDs_used_for__s
mov dword [esp + 8], str.hid_open
mov dword [esp + 4], 2
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax + 0x3e4]
mov byte [eax + edi + 6], 1
jmp 0x6b814c73
mov dword [esp], 0
mov ebx, 0xfffffffc
call sym._windows_error_str
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 0x14], esi
mov eax, dword [eax + 0x5c]
mov dword [esp + 0xc], str.could_not_open_device__s__interface__d_:__s
mov dword [esp + 8], str.hid_open
mov dword [esp + 4], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x6b814a6e
xor ebx, ebx
cmp eax, 5
setne bl
lea ebx, [ebx + ebx - 3]
jmp 0x6b814a6e
mov ebx, 0xfffffffd
jmp 0x6b814a6e
mov dword [esp + 0xc], str.program_assertion_failed___private_HID_structure_is_uninitialized
mov dword [esp + 8], str.hid_open
mov ebx, 0xfffffffb
mov dword [esp + 4], 1
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
jmp 0x6b814a6e