Function at 0x414e6d
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
mov ecx, dword [0x50d7ec]
sub esp, 0x530
push edi
xor edi, edi
cmp ecx, edi
je 0x415be0
push esi
mov esi, dword [ebp + 0x78]
push esi
call fcn.0040121c
test eax, eax
je 0x415bdf
mov ecx, dword [0x50d7ec]
push esi
call fcn.00404a15
push str.DDI_1
push 3
call fcn.0044def7
push str._r_n_________Device_Information__r_n
call fcn.0040f62c
lea eax, [esi + 0x1738]
add esp, 0xc
cmp word [eax], di
je 0x414ed8
push eax
push str.Friendly_Name____________:__s_r_n
call fcn.0040f67f
pop ecx
pop ecx
lea eax, [esi + 0x1838]
cmp word [eax], di
je 0x414ef0
push eax
push str.Device_Description_______:__s_r_n
call fcn.0040f67f
pop ecx
pop ecx
push ebx
push esi
call fcn.00414352
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
cmp dword [esi + 0x3a3c], edi
je 0x414f9d
mov edi, dword [esi + 0x3a30]
cmp edi, 0xffffffff
jle 0x414f9d
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push eax
call fcn.00448216
mov eax, dword [esi + 0x3a34]
add esp, 0xc
cmp eax, 1
jne 0x414f40
push edi
push str..PhysicalDrive_i
jmp 0x414f58
cmp eax, 2
jne 0x414f4d
push edi
push str..CdRom_i
jmp 0x414f58
cmp eax, 3
jne 0x414f61
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 0x414f9d
lea eax, [ebp - 0x40]
push eax
push str.Win32_Name_______________:__s_r_n
call fcn.0040f67f
lea eax, [ebp - 0x2c8]
push eax
push str.Kernel_Name______________:__s_r_n
call fcn.0040f67f
add esp, 0x10
lea edi, [esi + 0xe38]
push edi
push str.Device_ID________________:__s_r_n
call fcn.0040f67f
pop ecx
pop ecx
push str.PCIVEN_
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x414fc6
push edi
call fcn.0041cad2
lea edi, [esi + 0x32fc]
xor ebx, ebx
cmp dword [edi], ebx
je 0x414fff
push str.Hardware_IDs_____________:
call fcn.0040f62c
jmp 0x414fed
push eax
push 0x45dac0
call fcn.0040f67f
pop ecx
add edi, 4
mov eax, dword [edi]
pop ecx
cmp eax, ebx
jne 0x414fde
push 0x4576c0
call fcn.0040f62c
pop ecx
push str.DDI_2
push 3
call fcn.0044def7
lea eax, [esi + 0x1c38]
pop ecx
pop ecx
mov edi, eax
cmp word [eax], bx
jne 0x41501f
mov edi, 0x453078
push eax
call fcn.00412d69
push eax
push edi
push str.Driver_KeyName___________:__s_s
call fcn.0040f67f
mov edi, 0x4576c0
push edi
call fcn.0040f62c
lea eax, [esi + 0x33f8]
add esp, 0x10
cmp word [eax], bx
je 0x41506d
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.0040f67f
add esp, 0x14
lea eax, [esi + 0x3600]
cmp word [eax], bx
je 0x415085
push eax
push str.Driver_Inf_______________:__s_r_n
call fcn.0040f67f
pop ecx
pop ecx
push str.DDI_3
push 3
call fcn.0044def7
mov eax, dword [esi + 0x39e4]
pop ecx
pop ecx
cmp eax, 0x14
ja 0x4150a7
mov eax, dword [eax*4 + 0x4a3160]
jmp 0x4150ac
mov eax, str.undefined
push eax
push str.Legacy_BusType___________:__s_r_n
call fcn.0040f62c
lea eax, [esi + 0x1e12]
pop ecx
pop ecx
cmp word [eax], bx
je 0x4150d1
push eax
push str.Class____________________:__s_r_n
call fcn.0040f67f
pop ecx
pop ecx
lea eax, [esi + 0x1e92]
cmp word [eax], bx
je 0x415108
push eax
push str.Class_GUID_______________:__s
call fcn.0040f67f
lea eax, [esi + 0x1eec]
pop ecx
pop ecx
cmp word [eax], bx
je 0x415101
push eax
push str.___s_
call fcn.0040f67f
pop ecx
pop ecx
push edi
call fcn.0040f62c
pop ecx
push str.DDI_4
push 3
call fcn.0044def7
lea eax, [esi + 0x1f70]
pop ecx
pop ecx
cmp word [eax], bx
je 0x41512e
push eax
push str.Service__________________:__s_r_n
call fcn.0040f67f
pop ecx
pop ecx
lea eax, [esi + 0x1d92]
cmp word [eax], bx
je 0x415146
push eax
push str.Enumerator_______________:__s_r_n
call fcn.0040f67f
pop ecx
pop ecx
lea edi, [esi + 0x1c92]
cmp word [edi], bx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
je 0x415172
lea eax, [esi + 0x10a8]
push eax
push edi
call ebx
test eax, eax
je 0x415172
push edi
push str.PDO______________________:__s_r_n
call fcn.0040f67f
pop ecx
pop ecx
lea eax, [esi + 0x1b38]
cmp word [eax], 0
jne 0x415183
mov eax, 0x453078
push eax
push str.Location_Info____________:__s_r_n
call fcn.0040f67f
push dword [esi + 0x39e8]
push str.Address__________________:__u
call fcn.0040f67f
mov eax, dword [esi + 0x39e8]
add esp, 0x10
cmp eax, 0x7f
jb 0x4151b9
push eax
push str.__0x_X_
call fcn.0040f67f
pop ecx
pop ecx
push 0x45cd38
call fcn.0040f67f
mov dword [esp], str.DDI_5
push 3
call fcn.0044def7
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
cmp eax, 3
je 0x4151e5
cmp eax, 6
je 0x4151e5
cmp eax, 9
jne 0x41524c
lea eax, [esi + 0x2afc]
cmp word [eax], 0
je 0x41520d
push eax
call fcn.00427f7b
mov edi, eax
push edi
push str.Location_IDs_____________:__s_r_n
call fcn.0040f67f
push edi
call fcn.00448411
add esp, 0xc
lea edi, [esi + 0x3968]
cmp word [edi], 0
je 0x41524c
push edi
push str.Container_ID_____________:__s
call fcn.0040f67f
pop ecx
pop ecx
push str.00000000_0000_0000_ffff_ffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x415241
push str.__GUID_CONTAINERID_INTERNALLY_CONNECTED_DEVICE_
call fcn.0040f62c
pop ecx
push 0x4576c0
call fcn.0040f62c
pop ecx
push str.DDI_6
push 3
call fcn.0044def7
lea eax, [esi + 0x2078]
cmp word [eax], 0
pop ecx
pop ecx
jne 0x41526b
mov eax, 0x453078
push eax
push str.Manufacturer_Info________:__s_r_n
call fcn.0040f67f
pop ecx
pop ecx
lea edi, [esi + 0x39e0]
push dword [edi]
call fcn.004494dc
push eax
push dword [edi]
push str.Capabilities_____________:_0x_02X___s__r_n
call fcn.0040f62c
add esp, 0xc
lea edi, [esi + 0x39f0]
push dword [edi]
call fcn.00449a3b
push eax
push dword [edi]
push str.Status___________________:_0x_08X___s__r_n
call fcn.0040f62c
push dword [esi + 0x39f4]
push str.Problem_Code_____________:__u
call fcn.0040f62c
mov eax, dword [esi + 0x39f4]
add esp, 0x14
test eax, eax
je 0x4152df
push eax
call fcn.00449354
push eax
push str.___s_
call fcn.0040f62c
pop ecx
pop ecx
push 0x4576c0
call fcn.0040f62c
mov dword [esp], str.DDI_7
push 3
call fcn.0044def7
lea eax, [esi + 0x333c]
cmp dword [eax], 0
pop ecx
pop ecx
mov edi, 0x200
je 0x41532a
push edi
lea ecx, [ebp - 0x4c0]
push ecx
push eax
call fcn.004287cb
lea eax, [ebp - 0x4c0]
push eax
push str.Upper_Filters____________:__s_r_n
call fcn.0040f67f
pop ecx
pop ecx
push str.DDI_8
push 3
call fcn.0044def7
lea eax, [esi + 0x337c]
cmp dword [eax], 0
pop ecx
pop ecx
je 0x415364
push edi
lea ecx, [ebp - 0x4c0]
push ecx
push eax
call fcn.004287cb
lea eax, [ebp - 0x4c0]
push eax
push str.Lower_Filters____________:__s_r_n
call fcn.0040f67f
pop ecx
pop ecx
mov edi, 0x453e68
push edi
lea eax, [esi + 0x1e12]
push eax
call ebx
test eax, eax
je 0x415389
push edi
lea eax, [esi + 0x1f70]
push eax
call ebx
test eax, eax
jne 0x415452
push str.DDI_9
push 3
call fcn.0044def7
mov eax, dword [esi + 0x39ec]
pop ecx
pop ecx
test eax, eax
jne 0x415428
push 0x3c
push eax
lea eax, [ebp + 4]
push eax
mov dword [ebp], 0x2d
call fcn.00448216
mov eax, dword [esi + 0x39e8]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4153f3
push eax
cmp eax, 0x7f
jb 0x4153e1
push eax
lea eax, [ebp]
push str._u__0x_X_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4153f3
lea eax, [ebp]
push 0x4560f8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp]
push eax
push str.Address__________________:__s
call fcn.0040f67f
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
cmp eax, 9
je 0x415410
cmp eax, 6
jne 0x415447
movzx eax, byte [ebp + 0x7c]
cmp dword [esi + 0x39e8], eax
je 0x415447
push str.____strange__usually_this_is_equal_to_the_USB_port_number_
call fcn.0040f62c
jmp 0x415446
cmp eax, 0x1d
jne 0x415434
push str.TIMEOUT
jmp 0x41543b
push eax
call fcn.00449a0d
push eax
push str.Address__________________:__s
call fcn.0040f62c
pop ecx
pop ecx
push 0x4576c0
call fcn.0040f62c
pop ecx
push str.DDI_10
push 3
call fcn.0044def7
mov eax, dword [esi + 0x39b8]
or edi, 0xffffffff
pop ecx
pop ecx
cmp eax, edi
je 0x41547a
push eax
push str.HcDisableSelectiveSuspend:__u_r_n
call fcn.0040f62c
pop ecx
pop ecx
mov eax, dword [esi + 0x39d0]
cmp eax, edi
je 0x415491
push eax
push str.EnumerationRetryCount____:__u_r_n
call fcn.0040f62c
pop ecx
pop ecx
mov eax, dword [esi + 0x39bc]
cmp eax, edi
je 0x4154a8
push eax
push str.EnableSelectiveSuspend___:__u_r_n
call fcn.0040f62c
pop ecx
pop ecx
mov eax, dword [esi + 0x39c0]
cmp eax, edi
je 0x4154bf
push eax
push str.SelectiveSuspendEnabled__:__u_r_n
call fcn.0040f62c
pop ecx
pop ecx
mov eax, dword [esi + 0x39c4]
cmp eax, edi
je 0x4154d6
push eax
push str.SelectiveSuspendOn_______:__u_r_n
call fcn.0040f62c
pop ecx
pop ecx
mov eax, dword [esi + 0x39c8]
cmp eax, edi
je 0x4154ed
push eax
push str.DeviceSelectiveSuspended_:__u_r_n
call fcn.0040f62c
pop ecx
pop ecx
mov eax, dword [esi + 0x39cc]
cmp eax, edi
je 0x415504
push eax
push str.EnhancedPowerMgmtEnabled_:__u_r_n
call fcn.0040f62c
pop ecx
pop ecx
mov eax, dword [esi + 0x39d4]
cmp eax, edi
je 0x41551b
push eax
push str.IdleInWorkingState_______:__u_r_n
call fcn.0040f62c
pop ecx
pop ecx
mov eax, dword [esi + 0x39d8]
cmp eax, edi
je 0x415532
push eax
push str.WakeFromSleepState_______:__u_r_n
call fcn.0040f62c
pop ecx
pop ecx
mov eax, dword [esi + 0x39fc]
test eax, eax
je 0x415572
dec eax
push eax
push str.Power_State______________:_D_u
call fcn.0040f62c
mov eax, dword [esi + 0x3a00]
pop ecx
pop ecx
test eax, eax
je 0x415567
push eax
call fcn.00412d0b
push eax
push str.__supported:__s_
call fcn.0040f62c
pop ecx
pop ecx
push 0x4576c0
call fcn.0040f62c
pop ecx
push 0x4535ac
lea edi, [esi + 0xfc8]
push edi
call fcn.00428960
test eax, eax
je 0x4155a7
lea eax, [esi + 0x13b0]
cmp word [eax], 0
jne 0x415598
mov eax, str.none_assigned
push eax
push edi
push str.COM_Port_________________:__s___s__r_n
call fcn.0040f67f
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
xor edi, edi
cmp dword [0x4a2b20], edi
jne 0x41566e
push 0x45d538
lea eax, [esi + 0x1f70]
push eax
call ebx
test eax, eax
jne 0x41566e
cmp dword [esi + 0x39f4], edi
jne 0x41566e
push str.DDI_11
push 3
call fcn.0044def7
pop ecx
pop ecx
cmp dword [esi + 0x82c], edi
jne 0x415620
mov ecx, dword [0x50d7ec]
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.0044def7
add esp, 0xc
xor edi, edi
cmp dword [esi + 0x82c], edi
jle 0x41566c
lea ebx, [esi + 0x2c]
mov eax, dword [ebx]
mov dword [ebp + 0x7c], eax
test eax, eax
je 0x41565a
cmp dword [0x517934], 5
jl 0x41564f
push edi
push str.DDI_13_i_i
push 5
call fcn.0044def7
add esp, 0xc
push 1
push edi
push dword [ebp + 0x7c]
call fcn.00414ab1
inc edi
add ebx, 4
cmp edi, dword [esi + 0x82c]
jl 0x41562d
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
xor edi, edi
mov dword [ebp + 0x78], edi
cmp word [esi + 0x1088], di
je 0x4156a1
cmp dword [0x4a2b20], edi
jne 0x4156a1
push esi
call fcn.00412af7
cmp dword [0x4a2b20], edi
jne 0x415b75
push 0
push esi
call fcn.00412be2
jmp 0x415b75
mov eax, dword [esi + 0x3a3c]
cmp eax, edi
je 0x4156be
cmp dword [esi + 0x3a38], edi
jne 0x4156ca
push esi
call fcn.00412af7
jmp 0x415b75
cmp dword [esi + 0x3a38], edi
je 0x4158a7
cmp eax, edi
je 0x4156d4
push esi
call fcn.00412af7
mov edi, dword [esi + 0x3b04]
test edi, edi
je 0x415b75
lea eax, [edi + 0x848]
cmp word [eax], 0
mov dword [ebp + 0x68], eax
jne 0x4156f6
mov eax, 0x454a2c
push eax
push str.Volume_Name______________:__S_r_n
call fcn.0040f62c
cmp dword [esi + 0x3a34], 3
pop ecx
pop ecx
jne 0x415712
push esi
call fcn.004129fb
push 0
lea eax, [edi + 0x930]
push eax
call fcn.004128ac
lea ebx, [edi + 0x32e4]
cmp word [ebx], 0
je 0x41575e
lea eax, [edi + 0x32f8]
push eax
push str.Volume_Label_____________:__S_r_n
call fcn.0040f62c
push ebx
push str.Volume_Serial____________:__S_r_n
call fcn.0040f62c
lea eax, [edi + 0x34fa]
push eax
push str.File_System______________:__S_r_n
call fcn.0040f62c
add esp, 0x18
jmp 0x41577b
mov eax, dword [edi + 0x3574]
test eax, eax
je 0x41577b
push eax
call fcn.004495cc
push eax
push str.Volume_Info_Error________:__s_r_n
call fcn.0040f62c
pop ecx
pop ecx
lea eax, [edi + 0x31e0]
xor ebx, ebx
cmp word [eax], bx
je 0x415814
push eax
push str.Size_____________________:__S
call fcn.0040f62c
pop ecx
lea eax, [edi + 0x3200]
pop ecx
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x415808
cmp cx, 0x39
ja 0x415808
lea ecx, [edi + 0x3220]
push ecx
push eax
push str.____S____S_Bytes_r_n
call fcn.0040f62c
mov eax, dword [edi + 0x31d8]
and eax, dword [edi + 0x31dc]
add esp, 0xc
cmp eax, 0xffffffff
je 0x415895
lea eax, [edi + 0x3260]
cmp word [eax], bx
je 0x415895
lea ecx, [edi + 0x32a0]
push ecx
add edi, 0x3280
push edi
push eax
push str.Available________________:__S____S____S_Bytes_r_n
call fcn.0040f62c
add esp, 0x10
jmp 0x415895
push 0x4576c0
call fcn.0040f62c
jmp 0x41582a
lea eax, [edi + 0x353a]
cmp byte [eax], bl
je 0x41582d
push eax
push str.Hint_____________________:__s_r_n
call fcn.0040f62c
pop ecx
pop ecx
jmp 0x415895
xor eax, eax
push 0x7e
mov word [ebp - 0xc0], ax
lea eax, [ebp - 0xbe]
push ebx
push eax
call fcn.00448216
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.00450584
movzx eax, ax
cmp ax, bx
je 0x415895
movzx eax, ax
push eax
push dword [ebp + 0x7c]
push str.Hint_____________________:__S_Container_for__c:_r_n
call fcn.0040f62c
add esp, 0xc
push dword [ebp + 0x68]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x415b75
push 0x455c88
lea edi, [esi + 0x1e12]
push edi
call ebx
test eax, eax
je 0x415969
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 0x415b75
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 0x415b75
push str._r_n______________Mouse_Information__r_n
call fcn.0040f62c
push dword [ebp + 0x48]
push str.Input_Data_Queue_Length__:__u_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x40]
push eax
push str.Mouse_Identifier_________:__u_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x42]
push eax
push str.Number_of_Buttons________:__u_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x44]
push eax
push str.Sample_Rate______________:__u_r_n
call fcn.0040f62c
add esp, 0x24
jmp 0x415b75
push 0x455c74
push edi
call ebx
test eax, eax
je 0x415b17
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 0x415b75
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 0x415abb
push str._r_n______________Keyboad_Information__r_n
call fcn.0040f62c
cmp byte [ebp + 0x4c], 0x51
pop ecx
mov eax, str.__HID_
je 0x4159f3
mov eax, 0x454999
push eax
movzx eax, byte [ebp + 0x4c]
push eax
push str.Keyboard_ID.Type_________:_0x_X_s_r_n
call fcn.0040f62c
movzx eax, byte [ebp + 0x4d]
push eax
push str.Keyboard_ID.Subtype______:__u_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x4e]
push eax
push str.Keyboard_Mode____________:__u_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x50]
push eax
push str.Number_of_Function_Keys__:__u_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x52]
push eax
push str.Number_of_Indicators_____:__u_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x54]
push eax
push str.Number_of_Keys_Total_____:__u_r_n
call fcn.0040f62c
push dword [ebp + 0x58]
push str.Input_Data_Queue_Length__:__u_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x5c]
push eax
push str.Key_Repeat_Minimum.UnitId:__u_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x5e]
add esp, 0x44
push eax
push str.Key_Repeat_Minimum.Rate__:__u_per_second_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x60]
push eax
push str.Key_Repeat_Minimum.Delay_:__u_ms_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x62]
push eax
push str.Key_Repeat_Maximum.UnitId:__u_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x64]
push eax
push str.Key_Repeat_Maximum.Rate__:__u_per_second_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x66]
push eax
push str.Key_Repeat_Maximum.Delay_:__u_ms_r_n
call fcn.0040f62c
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 0x415b75
movzx eax, word [ebp + 0x68]
push eax
push str.Key_Repeat_UnitId________:__u_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x6a]
push eax
push str.Key_Repeat_Rate__________:__u_per_second_r_n
call fcn.0040f62c
movzx eax, word [ebp + 0x6c]
push eax
push str.Key_Repeat_Delay_________:__u_ms_r_n
call fcn.0040f62c
add esp, 0x18
jmp 0x415b75
push 0x455c14
push edi
call ebx
test eax, eax
je 0x415b75
cmp dword [esi + 8], 0
je 0x415b75
lea edi, [esi + 0xc30]
xor ebx, ebx
cmp word [edi], bx
jne 0x415b64
cmp dword [esi + 0x10], ebx
je 0x415b5f
push ebx
push 0x104
push edi
lea eax, [esi + 0xe38]
push eax
push 0x4527b0
call dword [sym.imp.CFGMGR32.dll_CM_Get_Device_Interface_ListW]
test eax, eax
jne 0x415b5f
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp word [edi], bx
je 0x415b75
push edi
lea ecx, [ebp + 0x7f]
call fcn.0040e81d
lea ecx, [ebp + 0x7f]
call fcn.0040e815
push str.HIDClass
lea eax, [esi + 0x1e12]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x415baf
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 0x415baf
push str.HID
push ebx
call edi
test eax, eax
je 0x415bbb
add esi, 0xc30
push esi
call fcn.00422b38
push dword [ebp + 0x78]
call fcn.00427bd5
pop ebx
test eax, eax
je 0x415bd1
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.DDI_end
push 3
call fcn.0044def7
pop ecx
pop ecx
pop esi
pop edi
add ebp, 0x70
leave
ret 8