Function at 0x415fe8
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
mov ecx, dword [0x512c64]
sub esp, 0x530
push ebx
xor ebx, ebx
cmp ecx, ebx
je 0x416df1
push esi
mov esi, dword [ebp + 0x78]
push esi
call fcn.0040121c
test eax, eax
je 0x416df0
mov ecx, dword [0x512c64]
push esi
call fcn.00404bbc
push str.DDI_1
push 3
call fcn.00451479
push str._r_n_________Device_Information__r_n
call fcn.004106df
lea eax, [esi + 0x173c]
add esp, 0xc
cmp word [eax], bx
je 0x416053
push eax
push str.Friendly_Name____________:__s_r_n
call fcn.00410732
pop ecx
pop ecx
lea eax, [esi + 0x183c]
cmp word [eax], bx
je 0x41606b
push eax
push str.Device_Description_______:__s_r_n
call fcn.00410732
pop ecx
pop ecx
push edi
push esi
call fcn.00415502
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmp dword [esi + 0x3abc], ebx
je 0x416125
cmp dword [esi + 0x3ab0], 0xffffffff
jle 0x416125
xor eax, eax
push 0x7e
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push ebx
push eax
call fcn.0044b15e
mov eax, dword [esi + 0x3ab4]
add esp, 0xc
cmp eax, 1
jne 0x4160be
push dword [esi + 0x3ab0]
push str..PhysicalDrive_i
jmp 0x4160e0
cmp eax, 2
jne 0x4160d0
push dword [esi + 0x3ab0]
push str..CdRom_i
jmp 0x4160e0
cmp eax, 3
jne 0x4160e9
push dword [esi + 0x3ab0]
push str..Floppy_i
lea eax, [ebp - 0x40]
push eax
call edi
add esp, 0xc
push 0x104
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x416125
lea eax, [ebp - 0x40]
push eax
push str.Win32_Name_______________:__s_r_n
call fcn.00410732
lea eax, [ebp - 0x2c8]
push eax
push str.Kernel_Name______________:__s_r_n
call fcn.00410732
add esp, 0x10
lea edi, [esi + 0xe3c]
push edi
push str.Device_ID________________:__s_r_n
call fcn.00410732
pop ecx
pop ecx
push str.PCIVEN_
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x41614e
push edi
call fcn.0041e3a5
lea edi, [esi + 0x3380]
cmp dword [edi], ebx
je 0x416185
push str.Hardware_IDs_____________:
call fcn.004106df
jmp 0x416173
push eax
push 0x461390
call fcn.00410732
pop ecx
add edi, 4
mov eax, dword [edi]
pop ecx
cmp eax, ebx
jne 0x416164
push 0x45adc4
call fcn.004106df
pop ecx
push str.DDI_2
push 3
call fcn.00451479
lea eax, [esi + 0x1cbc]
pop ecx
pop ecx
mov edi, eax
cmp word [eax], bx
jne 0x4161a5
mov edi, 0x456110
push eax
call fcn.00413f26
push eax
push edi
push str.Driver_KeyName___________:__s_s
call fcn.00410732
mov edi, 0x45adc4
push edi
call fcn.004106df
lea eax, [esi + 0x347c]
add esp, 0x10
cmp word [eax], bx
je 0x4161f3
lea ecx, [esi + 0x38ec]
push ecx
lea ecx, [esi + 0x38cc]
push ecx
lea ecx, [esi + 0x388c]
push ecx
push eax
push str.Driver___________________:__s__Version:__s__Date:__s__Company:__s__r_n
call fcn.00410732
add esp, 0x14
lea eax, [esi + 0x3684]
cmp word [eax], bx
je 0x41620b
push eax
push str.Driver_Inf_______________:__s_r_n
call fcn.00410732
pop ecx
pop ecx
push str.DDI_3
push 3
call fcn.00451479
mov eax, dword [esi + 0x3a68]
pop ecx
pop ecx
cmp eax, 0x14
ja 0x41622d
mov eax, dword [eax*4 + 0x4a8198]
jmp 0x416232
mov eax, str.undefined
push eax
push str.Legacy_BusType___________:__s_r_n
call fcn.004106df
lea eax, [esi + 0x1e96]
pop ecx
pop ecx
cmp word [eax], bx
je 0x416257
push eax
push str.Class____________________:__s_r_n
call fcn.00410732
pop ecx
pop ecx
lea eax, [esi + 0x1f16]
cmp word [eax], bx
je 0x41628e
push eax
push str.Class_GUID_______________:__s
call fcn.00410732
lea eax, [esi + 0x1f70]
pop ecx
pop ecx
cmp word [eax], bx
je 0x416287
push eax
push str.___s_
call fcn.00410732
pop ecx
pop ecx
push edi
call fcn.004106df
pop ecx
push str.DDI_4
push 3
call fcn.00451479
lea eax, [esi + 0x1ff4]
pop ecx
pop ecx
cmp word [eax], bx
je 0x4162b4
push eax
push str.Service__________________:__s_r_n
call fcn.00410732
pop ecx
pop ecx
lea eax, [esi + 0x1e16]
cmp word [eax], bx
je 0x4162cc
push eax
push str.Enumerator_______________:__s_r_n
call fcn.00410732
pop ecx
pop ecx
lea edi, [esi + 0x1d16]
cmp word [edi], bx
je 0x4162f6
lea eax, [esi + 0x10ac]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4162f6
push edi
push str.PDO______________________:__s_r_n
call fcn.00410732
pop ecx
pop ecx
lea eax, [esi + 0x1bbc]
cmp word [eax], bx
jne 0x416306
mov eax, 0x456110
push eax
push str.Location_Info____________:__s_r_n
call fcn.00410732
push dword [esi + 0x3a6c]
push str.Address__________________:__u
call fcn.00410732
mov eax, dword [esi + 0x3a6c]
add esp, 0x10
cmp eax, 0x7f
jb 0x41633c
push eax
push str.__0x_X_
call fcn.00410732
pop ecx
pop ecx
push 0x4605f8
call fcn.00410732
mov dword [esp], str.DDI_5
push 3
call fcn.00451479
mov eax, dword [esi + 0x10]
pop ecx
pop ecx
cmp eax, 3
je 0x416368
cmp eax, 6
je 0x416368
cmp eax, 9
jne 0x4163cd
lea eax, [esi + 0x2b80]
cmp word [eax], bx
je 0x41638f
push eax
call fcn.004293fd
mov edi, eax
push edi
push str.Location_IDs_____________:__s_r_n
call fcn.00410732
push edi
call fcn.0044b359
add esp, 0xc
lea edi, [esi + 0x39ec]
cmp word [edi], bx
je 0x4163cd
push edi
push str.Container_ID_____________:__s
call fcn.00410732
pop ecx
pop ecx
push str.00000000_0000_0000_ffff_ffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4163c2
push str.__GUID_CONTAINERID_INTERNALLY_CONNECTED_DEVICE_
call fcn.004106df
pop ecx
push 0x45adc4
call fcn.004106df
pop ecx
push str.DDI_6
push 3
call fcn.00451479
lea eax, [esi + 0x20fc]
pop ecx
pop ecx
cmp word [eax], bx
jne 0x4163eb
mov eax, 0x456110
push eax
push str.Manufacturer_Info________:__s_r_n
call fcn.00410732
pop ecx
pop ecx
lea edi, [esi + 0x3a64]
push dword [edi]
call fcn.0044c491
push eax
push dword [edi]
push str.Capabilities_____________:_0x_02X___s__r_n
call fcn.004106df
add esp, 0xc
lea edi, [esi + 0x3a74]
push dword [edi]
call fcn.0044ca0f
push eax
push dword [edi]
push str.Status___________________:_0x_08X___s__r_n
call fcn.004106df
push dword [esi + 8]
push str.Problem_Code_____________:__u
call fcn.004106df
mov eax, dword [esi + 8]
add esp, 0x14
cmp eax, ebx
je 0x416459
push eax
call fcn.0044c309
push eax
push str.___s_
call fcn.004106df
pop ecx
pop ecx
push 0x45adc4
call fcn.004106df
mov dword [esp], str.DDI_7
push 3
call fcn.00451479
lea eax, [esi + 0x33c0]
pop ecx
pop ecx
mov edi, 0x200
cmp dword [eax], ebx
je 0x4164a3
push edi
lea ecx, [ebp - 0x4c0]
push ecx
push eax
call fcn.00429c69
lea eax, [ebp - 0x4c0]
push eax
push str.Upper_Filters____________:__s_r_n
call fcn.00410732
pop ecx
pop ecx
push str.DDI_8
push 3
call fcn.00451479
lea eax, [esi + 0x3400]
pop ecx
pop ecx
cmp dword [eax], ebx
je 0x4164dc
push edi
lea ecx, [ebp - 0x4c0]
push ecx
push eax
call fcn.00429c69
lea eax, [ebp - 0x4c0]
push eax
push str.Lower_Filters____________:__s_r_n
call fcn.00410732
pop ecx
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x456ee0
lea eax, [esi + 0x1e96]
push eax
call edi
test eax, eax
je 0x41650a
push 0x456ee0
lea eax, [esi + 0x1ff4]
push eax
call edi
test eax, eax
jne 0x4165d3
push str.DDI_9
push 3
call fcn.00451479
mov eax, dword [esi + 0x3a70]
pop ecx
pop ecx
cmp eax, ebx
jne 0x4165a9
push 0x3c
lea eax, [ebp + 4]
push ebx
push eax
mov dword [ebp], 0x2d
call fcn.0044b15e
mov eax, dword [esi + 0x3a6c]
add esp, 0xc
cmp eax, 0xffffffff
je 0x416574
push eax
cmp eax, 0x7f
jb 0x416562
push eax
lea eax, [ebp]
push str._u__0x_X_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x416574
lea eax, [ebp]
push 0x459244
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp]
push eax
push str.Address__________________:__s
call fcn.00410732
mov eax, dword [esi + 0x10]
pop ecx
pop ecx
cmp eax, 9
je 0x416591
cmp eax, 6
jne 0x4165c8
movzx eax, byte [ebp + 0x7c]
cmp dword [esi + 0x3a6c], eax
je 0x4165c8
push str.____strange__usually_this_is_equal_to_the_USB_port_number_
call fcn.004106df
jmp 0x4165c7
cmp eax, 0x1d
jne 0x4165b5
push str.TIMEOUT
jmp 0x4165bc
push eax
call fcn.0044c9e1
push eax
push str.Address__________________:__s
call fcn.004106df
pop ecx
pop ecx
push 0x45adc4
call fcn.004106df
pop ecx
push str.DDI_10
push 3
or edi, 0xffffffff
call fcn.00451479
mov eax, dword [esi + 0x3a3c]
pop ecx
pop ecx
cmp eax, edi
je 0x4165fb
push eax
push str.HcDisableSelectiveSuspend:__u_r_n
call fcn.004106df
pop ecx
pop ecx
mov eax, dword [esi + 0x3a54]
cmp eax, edi
je 0x416612
push eax
push str.EnumerationRetryCount____:__u_r_n
call fcn.004106df
pop ecx
pop ecx
mov eax, dword [esi + 0x3a40]
cmp eax, edi
je 0x416629
push eax
push str.EnableSelectiveSuspend___:__u_r_n
call fcn.004106df
pop ecx
pop ecx
mov eax, dword [esi + 0x3a44]
cmp eax, edi
je 0x416640
push eax
push str.SelectiveSuspendEnabled__:__u_r_n
call fcn.004106df
pop ecx
pop ecx
mov eax, dword [esi + 0x3a48]
cmp eax, edi
je 0x416657
push eax
push str.SelectiveSuspendOn_______:__u_r_n
call fcn.004106df
pop ecx
pop ecx
mov eax, dword [esi + 0x3a4c]
cmp eax, edi
je 0x41666e
push eax
push str.DeviceSelectiveSuspended_:__u_r_n
call fcn.004106df
pop ecx
pop ecx
mov eax, dword [esi + 0x3a50]
cmp eax, edi
je 0x416685
push eax
push str.EnhancedPowerMgmtEnabled_:__u_r_n
call fcn.004106df
pop ecx
pop ecx
mov eax, dword [esi + 0x3a58]
cmp eax, edi
je 0x41669c
push eax
push str.IdleInWorkingState_______:__u_r_n
call fcn.004106df
pop ecx
pop ecx
mov eax, dword [esi + 0x3a5c]
cmp eax, edi
je 0x4166b3
push eax
push str.WakeFromSleepState_______:__u_r_n
call fcn.004106df
pop ecx
pop ecx
mov eax, dword [esi + 0x3a7c]
cmp eax, ebx
je 0x4166f3
dec eax
push eax
push str.Power_State______________:_D_u
call fcn.004106df
mov eax, dword [esi + 0x3a80]
pop ecx
pop ecx
cmp eax, ebx
je 0x4166e8
push eax
call fcn.00413ec8
push eax
push str.__supported:__s_
call fcn.004106df
pop ecx
pop ecx
push 0x45adc4
call fcn.004106df
pop ecx
push 0x456644
lea edi, [esi + 0xfcc]
push edi
call fcn.00429dfe
test eax, eax
je 0x416727
lea eax, [esi + 0x13b4]
cmp word [eax], bx
jne 0x416718
mov eax, str.none_assigned
push eax
push edi
push str.COM_Port_________________:__s___s__r_n
call fcn.00410732
add esp, 0xc
cmp dword [0x4a7b40], ebx
jne 0x4167e6
push 0x460e08
lea eax, [esi + 0x1ff4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4167e6
cmp dword [esi + 8], ebx
jne 0x4167e6
push str.DDI_11
push 3
call fcn.00451479
pop ecx
pop ecx
cmp dword [esi + 0x830], ebx
jne 0x416799
mov ecx, dword [0x512c64]
push 0x200
lea eax, [esi + 0x30]
push eax
push dword [esi + 0x14]
call fcn.004017ed
push eax
push str.DDI_12_n_i
push 3
mov dword [esi + 0x830], eax
call fcn.00451479
add esp, 0xc
xor edi, edi
cmp dword [esi + 0x830], ebx
jle 0x4167e6
lea eax, [esi + 0x30]
mov dword [ebp + 0x7c], eax
mov eax, dword [ebp + 0x7c]
mov eax, dword [eax]
mov dword [ebp + 0x78], eax
cmp eax, ebx
je 0x4167d9
cmp dword [0x51cdd4], 5
jl 0x4167ce
push edi
push str.DDI_13_i_i
push 5
call fcn.00451479
add esp, 0xc
push 1
push edi
push dword [ebp + 0x78]
call fcn.00415c34
add dword [ebp + 0x7c], 4
inc edi
cmp edi, dword [esi + 0x830]
jl 0x4167a9
mov dword [ebp + 0x78], ebx
cmp word [esi + 0x108c], bx
je 0x416818
cmp dword [0x4a7b40], ebx
jne 0x416818
push esi
call fcn.00413cb4
cmp dword [0x4a7b40], ebx
jne 0x416d86
push ebx
push esi
call fcn.00413d9f
jmp 0x416d86
mov eax, dword [esi + 0x3abc]
cmp eax, ebx
je 0x416835
cmp dword [esi + 0x3ab8], ebx
jne 0x416841
push esi
call fcn.00413cb4
jmp 0x416d86
cmp dword [esi + 0x3ab8], ebx
je 0x416a3f
cmp eax, ebx
je 0x41684b
push esi
call fcn.00413cb4
mov edi, dword [esi + 0x3bc4]
cmp edi, ebx
je 0x416d86
lea eax, [edi + 0x848]
mov dword [ebp + 0x68], eax
cmp word [eax], bx
jne 0x41686c
mov eax, 0x457aac
push eax
push str.Volume_Name______________:__S_r_n
call fcn.004106df
cmp dword [esi + 0x3ab4], 3
pop ecx
pop ecx
jne 0x416888
push esi
call fcn.00413b6b
push ebx
lea eax, [edi + 0x930]
push eax
call fcn.00413a1c
cmp word [edi + 0x3324], bx
je 0x4168f8
lea eax, [edi + 0x3338]
push eax
push str.Volume_Label_____________:__S_r_n
call fcn.004106df
lea eax, [edi + 0x3324]
push eax
push str.Volume_Serial____________:__S_r_n
call fcn.004106df
lea eax, [edi + 0x353a]
push eax
push str.File_System______________:__S
call fcn.004106df
lea eax, [edi + 0x3300]
add esp, 0x18
cmp word [eax], bx
je 0x4168ec
push eax
push str.___S_Clusters_
call fcn.004106df
pop ecx
pop ecx
push 0x45adc4
call fcn.004106df
jmp 0x416914
mov eax, dword [edi + 0x35b4]
cmp eax, ebx
je 0x416915
push eax
call fcn.0044c5a0
push eax
push str.Volume_Info_Error________:__s_r_n
call fcn.004106df
pop ecx
pop ecx
lea eax, [edi + 0x3200]
cmp word [eax], bx
je 0x4169ac
push eax
push str.Size_____________________:__S
call fcn.004106df
pop ecx
lea eax, [edi + 0x3220]
pop ecx
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x4169a0
cmp cx, 0x39
ja 0x4169a0
lea ecx, [edi + 0x3240]
push ecx
push eax
push str.____S____S_Bytes_r_n
call fcn.004106df
mov eax, dword [edi + 0x31d8]
and eax, dword [edi + 0x31dc]
add esp, 0xc
cmp eax, 0xffffffff
je 0x416a2d
lea eax, [edi + 0x3280]
cmp word [eax], bx
je 0x416a2d
lea ecx, [edi + 0x32c0]
push ecx
add edi, 0x32a0
push edi
push eax
push str.Available________________:__S____S____S_Bytes_r_n
call fcn.004106df
add esp, 0x10
jmp 0x416a2d
push 0x45adc4
call fcn.004106df
jmp 0x4169c2
lea eax, [edi + 0x357a]
cmp byte [eax], bl
je 0x4169c5
push eax
push str.Hint_____________________:__s_r_n
call fcn.004106df
pop ecx
pop ecx
jmp 0x416a2d
xor eax, eax
push 0x7e
mov word [ebp - 0xc0], ax
lea eax, [ebp - 0xbe]
push ebx
push eax
call fcn.0044b15e
push dword [edi + 0x844]
lea eax, [ebp - 0xc0]
push dword [edi + 0x840]
push str.DeviceHarddisk_iPartition_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp + 0x7c], ebx
call fcn.00453b2a
movzx eax, ax
cmp ax, bx
je 0x416a2d
movzx eax, ax
push eax
push dword [ebp + 0x7c]
push str.Hint_____________________:__S_Container_for__c:_r_n
call fcn.004106df
add esp, 0xc
push dword [ebp + 0x68]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x416d86
push 0x458d84
lea edi, [esi + 0x1e96]
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x416b01
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esi + 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x78], eax
cmp eax, 0xffffffff
je 0x416d86
xor eax, eax
mov word [ebp + 0x40], ax
mov word [ebp + 0x7c], ax
lea edi, [ebp + 0x42]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
lea eax, [ebp + 0x68]
push eax
push 0xc
lea eax, [ebp + 0x40]
push eax
push 2
lea eax, [ebp + 0x7c]
push eax
push 0xf0000
push dword [ebp + 0x78]
mov dword [ebp + 0x68], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x416d86
push str._r_n______________Mouse_Information__r_n
call fcn.004106df
push dword [ebp + 0x48]
push str.Input_Data_Queue_Length__:__u_r_n
call fcn.004106df
movzx eax, word [ebp + 0x40]
push eax
push str.Mouse_Identifier_________:__u_r_n
call fcn.004106df
movzx eax, word [ebp + 0x42]
push eax
push str.Number_of_Buttons________:__u_r_n
call fcn.004106df
movzx eax, word [ebp + 0x44]
push eax
push str.Sample_Rate______________:__u_r_n
call fcn.004106df
add esp, 0x24
jmp 0x416d86
push 0x458d70
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x416cb3
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esi + 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x78], eax
cmp eax, 0xffffffff
je 0x416d86
push 6
pop ecx
xor eax, eax
mov byte [ebp + 0x4c], bl
lea edi, [ebp + 0x4d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp + 0x7c]
push eax
push 0x1c
lea eax, [ebp + 0x4c]
push eax
push 0x1c
push eax
push 0xb0000
push dword [ebp + 0x78]
mov dword [ebp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x416c50
push str._r_n______________Keyboad_Information__r_n
call fcn.004106df
cmp byte [ebp + 0x4c], 0x51
pop ecx
mov eax, str.__HID_
je 0x416b88
mov eax, 0x457a19
push eax
movzx eax, byte [ebp + 0x4c]
push eax
push str.Keyboard_ID.Type_________:_0x_X_s_r_n
call fcn.004106df
movzx eax, byte [ebp + 0x4d]
push eax
push str.Keyboard_ID.Subtype______:__u_r_n
call fcn.004106df
movzx eax, word [ebp + 0x4e]
push eax
push str.Keyboard_Mode____________:__u_r_n
call fcn.004106df
movzx eax, word [ebp + 0x50]
push eax
push str.Number_of_Function_Keys__:__u_r_n
call fcn.004106df
movzx eax, word [ebp + 0x52]
push eax
push str.Number_of_Indicators_____:__u_r_n
call fcn.004106df
movzx eax, word [ebp + 0x54]
push eax
push str.Number_of_Keys_Total_____:__u_r_n
call fcn.004106df
push dword [ebp + 0x58]
push str.Input_Data_Queue_Length__:__u_r_n
call fcn.004106df
movzx eax, word [ebp + 0x5c]
push eax
push str.Key_Repeat_Minimum.UnitId:__u_r_n
call fcn.004106df
movzx eax, word [ebp + 0x5e]
add esp, 0x44
push eax
push str.Key_Repeat_Minimum.Rate__:__u_per_second_r_n
call fcn.004106df
movzx eax, word [ebp + 0x60]
push eax
push str.Key_Repeat_Minimum.Delay_:__u_ms_r_n
call fcn.004106df
movzx eax, word [ebp + 0x62]
push eax
push str.Key_Repeat_Maximum.UnitId:__u_r_n
call fcn.004106df
movzx eax, word [ebp + 0x64]
push eax
push str.Key_Repeat_Maximum.Rate__:__u_per_second_r_n
call fcn.004106df
movzx eax, word [ebp + 0x66]
push eax
push str.Key_Repeat_Maximum.Delay_:__u_ms_r_n
call fcn.004106df
add esp, 0x28
xor eax, eax
push ebx
mov word [ebp + 0x68], ax
lea edi, [ebp + 0x6a]
stosd dword es:[edi], eax
lea eax, [ebp + 0x7c]
push eax
push 6
lea eax, [ebp + 0x68]
push eax
push 6
push eax
push 0xb0020
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x416d86
movzx eax, word [ebp + 0x68]
push eax
push str.Key_Repeat_UnitId________:__u_r_n
call fcn.004106df
movzx eax, word [ebp + 0x6a]
push eax
push str.Key_Repeat_Rate__________:__u_per_second_r_n
call fcn.004106df
movzx eax, word [ebp + 0x6c]
push eax
push str.Key_Repeat_Delay_________:__u_ms_r_n
call fcn.004106df
add esp, 0x18
jmp 0x416d86
push 0x456f80
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x416d86
cmp dword [esi + 0xc], ebx
je 0x416d86
lea edi, [esi + 0xc34]
cmp word [edi], bx
jne 0x416d09
cmp dword [esi + 0x14], ebx
je 0x416d04
push ebx
push 0x104
push edi
lea eax, [esi + 0xe3c]
push eax
push 0x4557cc
call dword [sym.imp.CFGMGR32.dll_CM_Get_Device_Interface_ListW]
test eax, eax
jne 0x416d04
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp word [edi], bx
je 0x416d86
push edi
lea ecx, [ebp - 0x2e0]
call fcn.0040fdc1
lea ecx, [ebp - 0x2e0]
call fcn.0040f3ca
cmp dword [esi + 0x3ac0], ebx
je 0x416d31
cmp word [esi + 0x3b04], bx
jne 0x416d7b
lea edi, [esi + 0x3b04]
push edi
lea ecx, [ebp - 0x2e0]
call fcn.0040f939
test eax, eax
je 0x416d7b
push edi
lea eax, [esi + 0x3ac4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push ebx
push dword [esi + 0x14]
mov dword [esi + 0x3ac0], 1
mov ecx, dword [0x512c60]
call fcn.0040838c
cmp eax, ebx
je 0x416d7b
push ebx
mov ecx, eax
call fcn.0040bce8
lea ecx, [ebp - 0x2e0]
call fcn.0040f3b6
push str.HIDClass
lea eax, [esi + 0x1e96]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x416dc0
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.4d1e55b2_f16f_11cf_88cb_001111000030
lea ebx, [esi + 0xc34]
push ebx
call edi
test eax, eax
jne 0x416dc0
push str.HID
push ebx
call edi
test eax, eax
je 0x416dcc
add esi, 0xc34
push esi
call fcn.00423f74
push dword [ebp + 0x78]
call fcn.00429058
pop edi
test eax, eax
je 0x416de2
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.DDI_end
push 3
call fcn.00451479
pop ecx
pop ecx
pop esi
pop ebx
add ebp, 0x70
leave
ret 8