Function at 0x414962
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
mov ecx, dword [0x50b370]
sub esp, 0x530
push edi
xor edi, edi
cmp ecx, edi
je 0x4156d5
push esi
mov esi, dword [ebp + 0x78]
push esi
call fcn.0040121c
test eax, eax
je 0x4156d4
mov ecx, dword [0x50b370]
push esi
call fcn.004049bc
push str.DDI_1
push 3
call fcn.0044c79b
push str._r_n_________Device_Information__r_n
call fcn.0040f156
lea eax, [esi + 0x1738]
add esp, 0xc
cmp word [eax], di
je 0x4149cd
push eax
push str.Friendly_Name____________:__s_r_n
call fcn.0040f1a9
pop ecx
pop ecx
lea eax, [esi + 0x1838]
cmp word [eax], di
je 0x4149e5
push eax
push str.Device_Description_______:__s_r_n
call fcn.0040f1a9
pop ecx
pop ecx
push ebx
push esi
call fcn.00413e48
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
cmp dword [esi + 0x3a3c], edi
je 0x414a92
mov edi, dword [esi + 0x3a30]
cmp edi, 0xffffffff
jle 0x414a92
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push eax
call fcn.00446b72
mov eax, dword [esi + 0x3a34]
add esp, 0xc
cmp eax, 1
jne 0x414a35
push edi
push str..PhysicalDrive_i
jmp 0x414a4d
cmp eax, 2
jne 0x414a42
push edi
push str..CdRom_i
jmp 0x414a4d
cmp eax, 3
jne 0x414a56
push edi
push str..Floppy_i
lea eax, [ebp - 0x40]
push eax
call ebx
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 0x414a92
lea eax, [ebp - 0x40]
push eax
push str.Win32_Name_______________:__s_r_n
call fcn.0040f1a9
lea eax, [ebp - 0x2c8]
push eax
push str.Kernel_Name______________:__s_r_n
call fcn.0040f1a9
add esp, 0x10
lea edi, [esi + 0xe38]
push edi
push str.Device_ID________________:__s_r_n
call fcn.0040f1a9
pop ecx
pop ecx
push str.PCIVEN_
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x414abb
push edi
call fcn.0041c5ca
lea edi, [esi + 0x32fc]
xor ebx, ebx
cmp dword [edi], ebx
je 0x414af4
push str.Hardware_IDs_____________:
call fcn.0040f156
jmp 0x414ae2
push eax
push 0x45b910
call fcn.0040f1a9
pop ecx
add edi, 4
mov eax, dword [edi]
pop ecx
cmp eax, ebx
jne 0x414ad3
push 0x455558
call fcn.0040f156
pop ecx
push str.DDI_2
push 3
call fcn.0044c79b
lea eax, [esi + 0x1c38]
pop ecx
pop ecx
mov edi, eax
cmp word [eax], bx
jne 0x414b14
mov edi, 0x451068
push eax
call fcn.0041285f
push eax
push edi
push str.Driver_KeyName___________:__s_s
call fcn.0040f1a9
mov edi, 0x455558
push edi
call fcn.0040f156
lea eax, [esi + 0x33f8]
add esp, 0x10
cmp word [eax], bx
je 0x414b62
lea ecx, [esi + 0x3868]
push ecx
lea ecx, [esi + 0x3848]
push ecx
lea ecx, [esi + 0x3808]
push ecx
push eax
push str.Driver___________________:__s__Version:__s__Date:__s__Company:__s__r_n
call fcn.0040f1a9
add esp, 0x14
lea eax, [esi + 0x3600]
cmp word [eax], bx
je 0x414b7a
push eax
push str.Driver_Inf_______________:__s_r_n
call fcn.0040f1a9
pop ecx
pop ecx
push str.DDI_3
push 3
call fcn.0044c79b
mov eax, dword [esi + 0x39e4]
pop ecx
pop ecx
cmp eax, 0x14
ja 0x414b9c
mov eax, dword [eax*4 + 0x4a1128]
jmp 0x414ba1
mov eax, str.undefined
push eax
push str.Legacy_BusType___________:__s_r_n
call fcn.0040f156
lea eax, [esi + 0x1e12]
pop ecx
pop ecx
cmp word [eax], bx
je 0x414bc6
push eax
push str.Class____________________:__s_r_n
call fcn.0040f1a9
pop ecx
pop ecx
lea eax, [esi + 0x1e92]
cmp word [eax], bx
je 0x414bfd
push eax
push str.Class_GUID_______________:__s
call fcn.0040f1a9
lea eax, [esi + 0x1eec]
pop ecx
pop ecx
cmp word [eax], bx
je 0x414bf6
push eax
push str.___s_
call fcn.0040f1a9
pop ecx
pop ecx
push edi
call fcn.0040f156
pop ecx
push str.DDI_4
push 3
call fcn.0044c79b
lea eax, [esi + 0x1f70]
pop ecx
pop ecx
cmp word [eax], bx
je 0x414c23
push eax
push str.Service__________________:__s_r_n
call fcn.0040f1a9
pop ecx
pop ecx
lea eax, [esi + 0x1d92]
cmp word [eax], bx
je 0x414c3b
push eax
push str.Enumerator_______________:__s_r_n
call fcn.0040f1a9
pop ecx
pop ecx
lea edi, [esi + 0x1c92]
cmp word [edi], bx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
je 0x414c67
lea eax, [esi + 0x10a8]
push eax
push edi
call ebx
test eax, eax
je 0x414c67
push edi
push str.PDO______________________:__s_r_n
call fcn.0040f1a9
pop ecx
pop ecx
lea eax, [esi + 0x1b38]
cmp word [eax], 0
jne 0x414c78
mov eax, 0x451068
push eax
push str.Location_Info____________:__s_r_n
call fcn.0040f1a9
push dword [esi + 0x39e8]
push str.Address__________________:__u
call fcn.0040f1a9
mov eax, dword [esi + 0x39e8]
add esp, 0x10
cmp eax, 0x7f
jb 0x414cae
push eax
push str.__0x_X_
call fcn.0040f1a9
pop ecx
pop ecx
push 0x45ab88
call fcn.0040f1a9
mov dword [esp], str.DDI_5
push 3
call fcn.0044c79b
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
cmp eax, 3
je 0x414cda
cmp eax, 6
je 0x414cda
cmp eax, 9
jne 0x414d41
lea eax, [esi + 0x2afc]
cmp word [eax], 0
je 0x414d02
push eax
call fcn.004279aa
mov edi, eax
push edi
push str.Location_IDs_____________:__s_r_n
call fcn.0040f1a9
push edi
call fcn.00446ce1
add esp, 0xc
lea edi, [esi + 0x3968]
cmp word [edi], 0
je 0x414d41
push edi
push str.Container_ID_____________:__s
call fcn.0040f1a9
pop ecx
pop ecx
push str.00000000_0000_0000_ffff_ffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x414d36
push str.__GUID_CONTAINERID_INTERNALLY_CONNECTED_DEVICE_
call fcn.0040f156
pop ecx
push 0x455558
call fcn.0040f156
pop ecx
push str.DDI_6
push 3
call fcn.0044c79b
lea eax, [esi + 0x2078]
cmp word [eax], 0
pop ecx
pop ecx
jne 0x414d60
mov eax, 0x451068
push eax
push str.Manufacturer_Info________:__s_r_n
call fcn.0040f1a9
pop ecx
pop ecx
lea edi, [esi + 0x39e0]
push dword [edi]
call fcn.00447dc9
push eax
push dword [edi]
push str.Capabilities_____________:_0x_02X___s__r_n
call fcn.0040f156
add esp, 0xc
lea edi, [esi + 0x39f0]
push dword [edi]
call fcn.00448305
push eax
push dword [edi]
push str.Status___________________:_0x_08X___s__r_n
call fcn.0040f156
push dword [esi + 0x39f4]
push str.Problem_Code_____________:__u
call fcn.0040f156
mov eax, dword [esi + 0x39f4]
add esp, 0x14
test eax, eax
je 0x414dd4
push eax
call fcn.00447c41
push eax
push str.___s_
call fcn.0040f156
pop ecx
pop ecx
push 0x455558
call fcn.0040f156
mov dword [esp], str.DDI_7
push 3
call fcn.0044c79b
lea eax, [esi + 0x333c]
cmp dword [eax], 0
pop ecx
pop ecx
mov edi, 0x200
je 0x414e1f
push edi
lea ecx, [ebp - 0x4c0]
push ecx
push eax
call fcn.004281fa
lea eax, [ebp - 0x4c0]
push eax
push str.Upper_Filters____________:__s_r_n
call fcn.0040f1a9
pop ecx
pop ecx
push str.DDI_8
push 3
call fcn.0044c79b
lea eax, [esi + 0x337c]
cmp dword [eax], 0
pop ecx
pop ecx
je 0x414e59
push edi
lea ecx, [ebp - 0x4c0]
push ecx
push eax
call fcn.004281fa
lea eax, [ebp - 0x4c0]
push eax
push str.Lower_Filters____________:__s_r_n
call fcn.0040f1a9
pop ecx
pop ecx
mov edi, 0x451e40
push edi
lea eax, [esi + 0x1e12]
push eax
call ebx
test eax, eax
je 0x414e7e
push edi
lea eax, [esi + 0x1f70]
push eax
call ebx
test eax, eax
jne 0x414f47
push str.DDI_9
push 3
call fcn.0044c79b
mov eax, dword [esi + 0x39ec]
pop ecx
pop ecx
test eax, eax
jne 0x414f1d
push 0x3c
push eax
lea eax, [ebp + 4]
push eax
mov dword [ebp], 0x2d
call fcn.00446b72
mov eax, dword [esi + 0x39e8]
add esp, 0xc
cmp eax, 0xffffffff
je 0x414ee8
push eax
cmp eax, 0x7f
jb 0x414ed6
push eax
lea eax, [ebp]
push str._u__0x_X_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x414ee8
lea eax, [ebp]
push 0x453f70
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp]
push eax
push str.Address__________________:__s
call fcn.0040f1a9
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
cmp eax, 9
je 0x414f05
cmp eax, 6
jne 0x414f3c
movzx eax, byte [ebp + 0x7c]
cmp dword [esi + 0x39e8], eax
je 0x414f3c
push str.____strange__usually_this_is_equal_to_the_USB_port_number_
call fcn.0040f156
jmp 0x414f3b
cmp eax, 0x1d
jne 0x414f29
push str.TIMEOUT
jmp 0x414f30
push eax
call fcn.004482d7
push eax
push str.Address__________________:__s
call fcn.0040f156
pop ecx
pop ecx
push 0x455558
call fcn.0040f156
pop ecx
push str.DDI_10
push 3
call fcn.0044c79b
mov eax, dword [esi + 0x39b8]
or edi, 0xffffffff
pop ecx
pop ecx
cmp eax, edi
je 0x414f6f
push eax
push str.HcDisableSelectiveSuspend:__u_r_n
call fcn.0040f156
pop ecx
pop ecx
mov eax, dword [esi + 0x39d0]
cmp eax, edi
je 0x414f86
push eax
push str.EnumerationRetryCount____:__u_r_n
call fcn.0040f156
pop ecx
pop ecx
mov eax, dword [esi + 0x39bc]
cmp eax, edi
je 0x414f9d
push eax
push str.EnableSelectiveSuspend___:__u_r_n
call fcn.0040f156
pop ecx
pop ecx
mov eax, dword [esi + 0x39c0]
cmp eax, edi
je 0x414fb4
push eax
push str.SelectiveSuspendEnabled__:__u_r_n
call fcn.0040f156
pop ecx
pop ecx
mov eax, dword [esi + 0x39c4]
cmp eax, edi
je 0x414fcb
push eax
push str.SelectiveSuspendOn_______:__u_r_n
call fcn.0040f156
pop ecx
pop ecx
mov eax, dword [esi + 0x39c8]
cmp eax, edi
je 0x414fe2
push eax
push str.DeviceSelectiveSuspended_:__u_r_n
call fcn.0040f156
pop ecx
pop ecx
mov eax, dword [esi + 0x39cc]
cmp eax, edi
je 0x414ff9
push eax
push str.EnhancedPowerMgmtEnabled_:__u_r_n
call fcn.0040f156
pop ecx
pop ecx
mov eax, dword [esi + 0x39d4]
cmp eax, edi
je 0x415010
push eax
push str.IdleInWorkingState_______:__u_r_n
call fcn.0040f156
pop ecx
pop ecx
mov eax, dword [esi + 0x39d8]
cmp eax, edi
je 0x415027
push eax
push str.WakeFromSleepState_______:__u_r_n
call fcn.0040f156
pop ecx
pop ecx
mov eax, dword [esi + 0x39fc]
test eax, eax
je 0x415067
dec eax
push eax
push str.Power_State______________:_D_u
call fcn.0040f156
mov eax, dword [esi + 0x3a00]
pop ecx
pop ecx
test eax, eax
je 0x41505c
push eax
call fcn.00412801
push eax
push str.__supported:__s_
call fcn.0040f156
pop ecx
pop ecx
push 0x455558
call fcn.0040f156
pop ecx
push 0x451584
lea edi, [esi + 0xfc8]
push edi
call fcn.0042838f
test eax, eax
je 0x41509c
lea eax, [esi + 0x13b0]
cmp word [eax], 0
jne 0x41508d
mov eax, str.none_assigned
push eax
push edi
push str.COM_Port_________________:__s___s__r_n
call fcn.0040f1a9
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
xor edi, edi
cmp dword [0x4a0b18], edi
jne 0x415163
push 0x45b388
lea eax, [esi + 0x1f70]
push eax
call ebx
test eax, eax
jne 0x415163
cmp dword [esi + 0x39f4], edi
jne 0x415163
push str.DDI_11
push 3
call fcn.0044c79b
pop ecx
pop ecx
cmp dword [esi + 0x82c], edi
jne 0x415115
mov ecx, dword [0x50b370]
push 0x200
lea eax, [esi + 0x2c]
push eax
push dword [esi + 0x10]
call fcn.00401684
push eax
push str.DDI_12_n_i
push 3
mov dword [esi + 0x82c], eax
call fcn.0044c79b
add esp, 0xc
xor edi, edi
cmp dword [esi + 0x82c], edi
jle 0x415161
lea ebx, [esi + 0x2c]
mov eax, dword [ebx]
mov dword [ebp + 0x7c], eax
test eax, eax
je 0x41514f
cmp dword [0x515894], 5
jl 0x415144
push edi
push str.DDI_13_i_i
push 5
call fcn.0044c79b
add esp, 0xc
push 1
push edi
push dword [ebp + 0x7c]
call fcn.004145a7
inc edi
add ebx, 4
cmp edi, dword [esi + 0x82c]
jl 0x415122
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
xor edi, edi
mov dword [ebp + 0x78], edi
cmp word [esi + 0x1088], di
je 0x415196
cmp dword [0x4a0b18], edi
jne 0x415196
push esi
call fcn.004125ed
cmp dword [0x4a0b18], edi
jne 0x41566a
push 0
push esi
call fcn.004126d8
jmp 0x41566a
mov eax, dword [esi + 0x3a3c]
cmp eax, edi
je 0x4151b3
cmp dword [esi + 0x3a38], edi
jne 0x4151bf
push esi
call fcn.004125ed
jmp 0x41566a
cmp dword [esi + 0x3a38], edi
je 0x41539c
cmp eax, edi
je 0x4151c9
push esi
call fcn.004125ed
mov edi, dword [esi + 0x3b04]
test edi, edi
je 0x41566a
lea eax, [edi + 0x848]
cmp word [eax], 0
mov dword [ebp + 0x68], eax
jne 0x4151eb
mov eax, 0x452a04
push eax
push str.Volume_Name______________:__S_r_n
call fcn.0040f156
cmp dword [esi + 0x3a34], 3
pop ecx
pop ecx
jne 0x415207
push esi
call fcn.004124f1
push 0
lea eax, [edi + 0x930]
push eax
call fcn.004123a2
lea ebx, [edi + 0x32e4]
cmp word [ebx], 0
je 0x415253
lea eax, [edi + 0x32f8]
push eax
push str.Volume_Label_____________:__S_r_n
call fcn.0040f156
push ebx
push str.Volume_Serial____________:__S_r_n
call fcn.0040f156
lea eax, [edi + 0x34fa]
push eax
push str.File_System______________:__S_r_n
call fcn.0040f156
add esp, 0x18
jmp 0x415270
mov eax, dword [edi + 0x3574]
test eax, eax
je 0x415270
push eax
call fcn.00447eb9
push eax
push str.Volume_Info_Error________:__s_r_n
call fcn.0040f156
pop ecx
pop ecx
lea eax, [edi + 0x31e0]
xor ebx, ebx
cmp word [eax], bx
je 0x415309
push eax
push str.Size_____________________:__S
call fcn.0040f156
pop ecx
lea eax, [edi + 0x3200]
pop ecx
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x4152fd
cmp cx, 0x39
ja 0x4152fd
lea ecx, [edi + 0x3220]
push ecx
push eax
push str.____S____S_Bytes_r_n
call fcn.0040f156
mov eax, dword [edi + 0x31d8]
and eax, dword [edi + 0x31dc]
add esp, 0xc
cmp eax, 0xffffffff
je 0x41538a
lea eax, [edi + 0x3260]
cmp word [eax], bx
je 0x41538a
lea ecx, [edi + 0x32a0]
push ecx
add edi, 0x3280
push edi
push eax
push str.Available________________:__S____S____S_Bytes_r_n
call fcn.0040f156
add esp, 0x10
jmp 0x41538a
push 0x455558
call fcn.0040f156
jmp 0x41531f
lea eax, [edi + 0x353a]
cmp byte [eax], bl
je 0x415322
push eax
push str.Hint_____________________:__s_r_n
call fcn.0040f156
pop ecx
pop ecx
jmp 0x41538a
xor eax, eax
push 0x7e
mov word [ebp - 0xc0], ax
lea eax, [ebp - 0xbe]
push ebx
push eax
call fcn.00446b72
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.0044ee29
movzx eax, ax
cmp ax, bx
je 0x41538a
movzx eax, ax
push eax
push dword [ebp + 0x7c]
push str.Hint_____________________:__S_Container_for__c:_r_n
call fcn.0040f156
add esp, 0xc
push dword [ebp + 0x68]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x41566a
push 0x453afc
lea edi, [esi + 0x1e12]
push edi
call ebx
test eax, eax
je 0x41545e
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [esi + 0xc30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x78], eax
cmp eax, 0xffffffff
je 0x41566a
xor eax, eax
mov word [ebp + 0x40], ax
and dword [ebp + 0x68], 0
mov word [ebp + 0x7c], ax
lea edi, [ebp + 0x42]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
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]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41566a
push str._r_n______________Mouse_Information__r_n
call fcn.0040f156
push dword [ebp + 0x48]
push str.Input_Data_Queue_Length__:__u_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x40]
push eax
push str.Mouse_Identifier_________:__u_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x42]
push eax
push str.Number_of_Buttons________:__u_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x44]
push eax
push str.Sample_Rate______________:__u_r_n
call fcn.0040f156
add esp, 0x24
jmp 0x41566a
push 0x453ae8
push edi
call ebx
test eax, eax
je 0x41560c
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [esi + 0xc30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x78], eax
cmp eax, 0xffffffff
je 0x41566a
push 6
pop ecx
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov byte [ebp + 0x4c], 0
and dword [ebp + 0x7c], 0
lea edi, [ebp + 0x4d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
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]
call ebx
test eax, eax
je 0x4155b0
push str._r_n______________Keyboad_Information__r_n
call fcn.0040f156
cmp byte [ebp + 0x4c], 0x51
pop ecx
mov eax, str.__HID_
je 0x4154e8
mov eax, 0x452971
push eax
movzx eax, byte [ebp + 0x4c]
push eax
push str.Keyboard_ID.Type_________:_0x_X_s_r_n
call fcn.0040f156
movzx eax, byte [ebp + 0x4d]
push eax
push str.Keyboard_ID.Subtype______:__u_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x4e]
push eax
push str.Keyboard_Mode____________:__u_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x50]
push eax
push str.Number_of_Function_Keys__:__u_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x52]
push eax
push str.Number_of_Indicators_____:__u_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x54]
push eax
push str.Number_of_Keys_Total_____:__u_r_n
call fcn.0040f156
push dword [ebp + 0x58]
push str.Input_Data_Queue_Length__:__u_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x5c]
push eax
push str.Key_Repeat_Minimum.UnitId:__u_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x5e]
add esp, 0x44
push eax
push str.Key_Repeat_Minimum.Rate__:__u_per_second_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x60]
push eax
push str.Key_Repeat_Minimum.Delay_:__u_ms_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x62]
push eax
push str.Key_Repeat_Maximum.UnitId:__u_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x64]
push eax
push str.Key_Repeat_Maximum.Rate__:__u_per_second_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x66]
push eax
push str.Key_Repeat_Maximum.Delay_:__u_ms_r_n
call fcn.0040f156
add esp, 0x28
xor eax, eax
push eax
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 ebx
test eax, eax
je 0x41566a
movzx eax, word [ebp + 0x68]
push eax
push str.Key_Repeat_UnitId________:__u_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x6a]
push eax
push str.Key_Repeat_Rate__________:__u_per_second_r_n
call fcn.0040f156
movzx eax, word [ebp + 0x6c]
push eax
push str.Key_Repeat_Delay_________:__u_ms_r_n
call fcn.0040f156
add esp, 0x18
jmp 0x41566a
push 0x453a88
push edi
call ebx
test eax, eax
je 0x41566a
cmp dword [esi + 8], 0
je 0x41566a
lea edi, [esi + 0xc30]
xor ebx, ebx
cmp word [edi], bx
jne 0x415659
cmp dword [esi + 0x10], ebx
je 0x415654
push ebx
push 0x104
push edi
lea eax, [esi + 0xe38]
push eax
push 0x4507a0
call dword [sym.imp.CFGMGR32.dll_CM_Get_Device_Interface_ListW]
test eax, eax
jne 0x415654
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp word [edi], bx
je 0x41566a
push edi
lea ecx, [ebp + 0x7f]
call fcn.0040e348
lea ecx, [ebp + 0x7f]
call fcn.0040e340
push str.HIDClass
lea eax, [esi + 0x1e12]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4156a4
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.4d1e55b2_f16f_11cf_88cb_001111000030
lea ebx, [esi + 0xc30]
push ebx
call edi
test eax, eax
jne 0x4156a4
push str.HID
push ebx
call edi
test eax, eax
je 0x4156b0
add esi, 0xc30
push esi
call fcn.00422640
push dword [ebp + 0x78]
call fcn.00427605
pop ebx
test eax, eax
je 0x4156c6
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.DDI_end
push 3
call fcn.0044c79b
pop ecx
pop ecx
pop esi
pop edi
add ebp, 0x70
leave
ret 8