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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
lea edi, [ebx + 0x6c]
movzx eax, word [ebx + 0x24]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [edi], eax
je 0x101dee1
inc dword [ebp - 4]
add edi, 4
cmp dword [ebp - 4], 2
jb 0x101dca8
movzx eax, word [ebx + 0x4e]
lea eax, [eax + eax*8]
shl eax, 3
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
mov dword [ebx + 0x84], eax
je 0x101dee1
movzx eax, word [ebx + 0x50]
lea eax, [eax + eax*8]
shl eax, 3
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
xor eax, eax
cmp edi, esi
pop ecx
mov dword [ebx + 0x88], edi
je 0x101dee3
mov ax, word [ebx + 0x4e]
push dword [ebx + 0x1c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
push esi
call sub.HID.DLL_HidP_GetSpecificButtonCaps
push dword [ebx + 0x1c]
xor eax, eax
mov ax, word [ebx + 0x50]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push esi
push esi
push esi
call sub.HID.DLL_HidP_GetSpecificValueCaps
xor ecx, ecx
cmp word [ebx + 0x50], si
jbe 0x101dd6d
movzx edx, word [ebx + 0x50]
lea eax, [edi + 0x3a]
cmp byte [eax - 0x2e], 0
je 0x101dd66
xor esi, esi
mov si, word [eax]
sub si, word [eax - 2]
lea ecx, [ecx + esi + 1]
jmp 0x101dd67
inc ecx
add eax, 0x48
dec edx
jne 0x101dd51
mov edi, dword [ebx + 0x88]
movzx eax, cx
mov dword [ebp - 0x10], eax
mov dword [ebx + 0x78], eax
imul eax, eax, 0x3c
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
mov dword [ebx + 0x74], esi
je 0x101dee1
mov eax, dword [ebp - 4]
push dword [ebx + 0x1c]
movzx eax, word [eax]
push eax
push 0
call sub.HID.DLL_HidP_MaxUsageListLength
test eax, eax
mov dword [ebx + 0x7c], eax
jne 0x101ddb3
and dword [ebx + 0x80], eax
jmp 0x101ddca
add eax, eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebx + 0x80], eax
je 0x101dee1
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x101dee1
mov dword [ebp - 4], eax
xor eax, eax
mov edx, 0x110000
inc eax
cmp byte [edi + 0xc], 0
je 0x101de5b
mov cx, word [edi + 0x38]
jmp 0x101de53
mov dword [esi + 4], edx
mov bx, word [edi]
mov word [esi], bx
mov word [esi + 0x18], cx
movzx ebx, byte [edi + 2]
or dword [esi + 0x14], 0xffffffff
cmp word [esi], ax
mov dword [esi + 8], ebx
mov bx, word [edi + 8]
mov word [esi + 0xe], bx
mov bx, word [edi + 0xa]
mov word [esi + 0x10], bx
mov ebx, dword [edi + 0x20]
mov dword [esi + 0x1c], ebx
mov ebx, dword [edi + 0x24]
mov dword [esi + 0x20], ebx
mov ebx, dword [edi + 0x28]
mov dword [esi + 0x24], ebx
mov ebx, dword [edi + 0x2c]
mov dword [esi + 0x28], ebx
mov ebx, dword [edi + 0x30]
mov dword [esi + 0x2c], ebx
mov ebx, dword [edi + 0x34]
mov dword [esi + 0x30], ebx
jne 0x101de4f
cmp cx, 0x30
jne 0x101de46
mov dword [ebp - 8], eax
cmp cx, 0x31
jne 0x101de4f
mov dword [ebp - 0xc], eax
add esi, 0x3c
inc ecx
cmp cx, word [edi + 0x3a]
jbe 0x101ddec
jmp 0x101dec9
mov dword [esi + 4], edx
mov cx, word [edi]
mov word [esi], cx
mov cx, word [edi + 0x38]
mov word [esi + 0x18], cx
movzx ecx, byte [edi + 2]
or dword [esi + 0x14], 0xffffffff
cmp word [esi], ax
mov dword [esi + 8], ecx
mov cx, word [edi + 8]
mov word [esi + 0xe], cx
mov cx, word [edi + 0xa]
mov word [esi + 0x10], cx
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x1c], ecx
mov ecx, dword [edi + 0x24]
mov dword [esi + 0x20], ecx
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x24], ecx
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x28], ecx
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x2c], ecx
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x30], ecx
jne 0x101dec6
mov cx, word [esi + 0x18]
cmp cx, 0x30
jne 0x101debd
mov dword [ebp - 8], eax
cmp cx, 0x31
jne 0x101dec6
mov dword [ebp - 0xc], eax
add esi, 0x3c
add edi, 0x48
dec dword [ebp - 4]
jne 0x101dde0
cmp dword [ebp - 8], 0
je 0x101dee1
cmp dword [ebp - 0xc], 0
jne 0x101dee3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4