Function at 0x405680
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x428826
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x43e6bc]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43e6bc]
xor eax, esp
push eax
lea eax, [esp + 0x860]
mov dword fs:[0], eax
call fcn.0040d647
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4056d7
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x868], ebp
call fcn.0040d647
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x405708
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x43fc00]
sub eax, 2
mov byte [esp + 0x868], 1
je 0x4057cc
sub eax, 1
je 0x40573d
sub eax, 1
je 0x40577e
jmp 0x405887
push 0x42aa4c
push 0x43fac0
call fcn.00417241
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x40577e
push esi
lea ecx, [esp + 0x460]
push 0x400
push ecx
call fcn.004176ff
push esi
call fcn.00416e4a
mov dl, byte [esp + 0x46c]
add esp, 0x10
mov byte [0x434006], dl
movsx eax, byte [0x434006]
push eax
lea ecx, [esp + 0x158]
push str.._c:
push ecx
call fcn.00416ae4
lea edx, [esp + 0x160]
push edx
call fcn.00401b80
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x2c]
push str.Info__:___dp_volume__Find_the_CDRom__s_and_Send_rewind___d_n
push ecx
call fcn.004034f0
mov edx, dword [esp + 0x34]
push edx
call fcn.00403d60
add esp, 0x24
jmp 0x40587c
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, 0x61
lea ebx, [esi - 0x47]
lea ebx, [ebx]
push esi
lea eax, [esp + 0x35c]
push 0x42b3c4
push eax
call fcn.00416ae4
add esp, 0xc
push 0x104
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x360]
push edx
call edi
test eax, eax
je 0x405870
lea eax, [esp + 0x50]
push eax
call fcn.004160db
lea ecx, [esp + 0x54]
push str.cdrom
push ecx
call fcn.00415c20
add esp, 0xc
test eax, eax
je 0x405870
push esi
lea edx, [esp + 0x158]
push str.._c:
push edx
call fcn.00416ae4
lea eax, [esp + 0x160]
push eax
call fcn.00401b80
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x2c]
push str.Info__:___dp_all_Find_the_CDRom__s_and_Send_rewind___d_n
push edx
call fcn.004034f0
mov eax, dword [esp + 0x34]
push eax
call fcn.00403d60
add esp, 0x24
add esi, 1
sub ebx, 1
jne 0x4057e0
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push ebp
push ebp
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405902
push str.Error_:_SetupDiGetClassDevs_error...
call fcn.00403d60
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x868], 0
lea ecx, [eax + 0xc]
or edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x868], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4e26
jmp 0x405cb1
lea ecx, [esp + 0x34]
push ecx
push ebp
push ebx
mov dword [esp + 0x40], 0x1c
mov dword [esp + 0x34], ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x405c43
jmp 0x405932
xor ebp, ebp
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
lea edx, [esp + 0x1c]
push edx
push ebp
push ebp
lea eax, [esp + 0x38]
push eax
push 1
lea ecx, [esp + 0x48]
push ecx
push ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x4c], ebp
call esi
test eax, eax
jne 0x4059bc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xd
je 0x405c23
call edi
cmp eax, 0x7a
jne 0x405c23
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40598d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x1c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x38]
push eax
push 1
lea ecx, [esp + 0x48]
push ecx
push ebx
call esi
test eax, eax
je 0x405962
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
mov ebp, eax
je 0x405c18
jmp 0x4059d4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add edx, eax
cmp ebp, edx
jae 0x405c18
push ebp
call fcn.004160db
push 0
push ebp
call fcn.00402c00
add esp, 0xc
test eax, eax
je 0x405ba3
push ebp
lea eax, [esp + 0x24]
push str.Info__:_Find_device__ID:__s..._n
push eax
call fcn.004034f0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00403d60
push 0x42aaa8
push ebp
call fcn.00415c20
add esp, 0x18
test eax, eax
jne 0x405bbb
push str.vdf_enum_vbus
push ebp
call fcn.00415c20
add esp, 8
test eax, eax
jne 0x405bbb
push str.sensorshwgpssensor
push ebp
call fcn.00415c20
add esp, 8
test eax, eax
jne 0x405bd8
push 0xff
push eax
lea edx, [esp + 0x260]
push edx
call fcn.00416150
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0x44]
push ecx
push ebx
call fcn.00402680
lea edx, [esp + 0x270]
push 0x42b0f0
push edx
call fcn.00415c20
add esp, 0x20
test eax, eax
je 0x405bf5
push str.Info__:_This_device_is_a_mass_storage_or_composite_device__so_delete_by_rules._n
call fcn.00403d60
push str.mi_
push ebp
call fcn.00415c20
add esp, 0xc
test eax, eax
je 0x405b02
push str.mi_00
push ebp
call fcn.00415c20
add esp, 8
test eax, eax
jne 0x405b02
push str.mi_01
push ebp
call fcn.00415c20
add esp, 8
test eax, eax
jne 0x405b02
push str.Info__:_It_is_a_mult_port_mass_storage_device__delete_it._n
call fcn.00403d60
sub esp, 0x18
mov edi, esp
mov ecx, 7
lea esi, [esp + 0x50]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00403fb0
add esp, 0x20
jmp 0x405ba3
mov eax, dword [0x43fc00]
sub eax, 1
je 0x405ba3
sub eax, 1
je 0x405b80
mov eax, dword [esp + 0x48]
push 0
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
test eax, eax
jne 0x405b63
test byte [esp + 0x24], 8
je 0x405b46
push str.Info__:_This_Device_is_present__dont_remove__n
call fcn.00403d60
add esp, 4
jmp 0x405ba3
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [esp + 0x50]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00403fb0
push str.Info__:_This_Device_is_present_But_not_started__remove_it__n
jmp 0x405b9b
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [esp + 0x50]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00403fb0
push str.Info__:_Cant_find_devnodes_status__Delete_this_device_n
jmp 0x405b9b
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [esp + 0x50]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00403fb0
push str.Info__:_Delete_All_Device__remove_it__n
call fcn.00403d60
add esp, 0x24
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + ebp + 1], 0
lea ebp, [eax + ebp + 1]
jne 0x4059d0
jmp 0x405c18
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [esp + 0x50]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00403fb0
push str.Info__:_Remove_the_virtual_bus_always__n
jmp 0x405c10
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [esp + 0x50]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00403fb0
push str.Info__:_Remove_the_virtual_gps_device_always__n
jmp 0x405c10
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [esp + 0x50]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00403fb0
push str.Info__:_This_device_is_not_a_mass_storage_or_composite_device__so_delete_it._n
call fcn.00403d60
add esp, 0x24
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x34]
add eax, 1
push ecx
push eax
push ebx
mov dword [esp + 0x34], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x405930
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
call fcn.00405300
push str.Info__:_Remove_device_register_Info__END..._n
call fcn.00403d60
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x868], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405c84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x868], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405caf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x860]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.0041613d
add esp, 0x858
ret