Function at 0x4032f8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1074
cmp dword [0x507a24], 4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], ecx
jl 0x40332c
lea eax, [ebx + 0xe34]
push eax
push dword [ebx + 0x10]
push str.CDevList::PutDevProperties__u_...___s
push 4
call fcn.00445f0b
add esp, 0x10
mov edi, dword [ebx + 0x10]
push 0
push 0xc8
lea eax, [ebx + 0xe34]
push eax
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.CFGMGR32.dll_CM_Get_Device_IDW]
push 0
push dword [ebx + 0x10]
lea eax, [ebx + 0x14]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_Parent]
push 0
push dword [ebx + 0x10]
lea esi, [ebx + 0x18]
push esi
call dword [sym.imp.CFGMGR32.dll_CM_Get_Child]
push 0
push dword [esi]
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_Sibling]
push 0
push edi
lea esi, [ebx + 0x39e4]
push esi
lea eax, [ebx + 0x39e0]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
mov dword [ebp - 8], eax
test eax, eax
jne 0x403398
mov dword [ebx + 8], 1
mov eax, dword [ebx + 0x14]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x4033fe
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00401b35
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x4033fe
push str.PCIVEN
lea eax, [ebx + 0xe34]
push eax
call edi
test eax, eax
jne 0x4033fe
push str.USBROOT
lea eax, [ebx + 0xe34]
push eax
call edi
test eax, eax
jne 0x4033fe
push str.STORAGEVOLUME
lea eax, [ebx + 0xe34]
push eax
call edi
test eax, eax
jne 0x4033fe
push dword [ebx + 0x14]
mov ecx, dword [ebp - 0x10]
push 0x44ad64
call fcn.0040432d
mov dword [ebx + 0x24], eax
cmp dword [ebp - 8], 0xd
jne 0x40340a
mov dword [esi], 0x2d
mov esi, dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Registry_PropertyW]
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x1c34]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xa
push dword [ebp - 4]
mov dword [ebp + 8], 0x59
call esi
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x1c8e]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xf
push dword [ebp - 4]
mov edi, 0xff
mov dword [ebp + 8], edi
call esi
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x1734]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xd
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
push 0x44b070
lea eax, [ebx + 0x1734]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
lea eax, [ebx + 0x1734]
push eax
call fcn.00424b47
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x1834]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
push 0x44b070
lea eax, [ebx + 0x1834]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x20f8]
push eax
lea eax, [ebp - 0xc]
push eax
push 2
push dword [ebp - 4]
mov dword [ebp + 8], 0x5fe
call esi
lea ecx, [ebx + 0x20f8]
push ecx
push dword [ebp + 8]
push eax
push str.CM_DRP_HARDWAREID_cret_u_uLen_u_s_s
push 3
call fcn.00445f0b
add esp, 0x14
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0x7f
lea eax, [ebx + 0x1e0e]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 8
push dword [ebp - 4]
call esi
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x1f6c]
push eax
lea eax, [ebp - 0xc]
push eax
push 5
push dword [ebp - 4]
mov dword [ebp + 8], 0x7f
call esi
push 0
lea eax, [ebp + 8]
push eax
lea eax, [ebx + 0x1ff0]
push eax
lea eax, [ebp - 0xc]
push eax
push 5
push dword [ebx + 0x14]
mov dword [ebp + 8], 0x7f
call esi
push 0
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], edi
lea edi, [ebx + 0x1b34]
push edi
lea eax, [ebp - 0xc]
push eax
push 0xe
push dword [ebp - 4]
call esi
cmp dword [0x4fabc0], 5
jne 0x403582
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
call fcn.0040e2f0
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x2af8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x24
push dword [ebp - 4]
mov dword [ebp + 8], 0x7fe
call esi
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x1d8e]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x17
push dword [ebp - 4]
mov dword [ebp + 8], 0x7f
call esi
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x1e8e]
push eax
lea eax, [ebp - 0xc]
push eax
push 9
push dword [ebp - 4]
mov dword [ebp + 8], 0x53
call esi
test eax, eax
jne 0x403616
cmp word [ebx + 0x1e8e], ax
je 0x403616
lea eax, [ebp - 0x34]
push eax
lea eax, [ebx + 0x1e8e]
push eax
call fcn.0042aac9
test eax, eax
je 0x403616
lea eax, [ebp - 0x34]
push eax
call fcn.00443957
push eax
lea eax, [ebx + 0x1ee8]
push eax
call fcn.0042a381
mov ecx, dword [0x4fd5c8]
call fcn.0043d72a
and dword [ebp - 0x864], 0
push 0x1fc
lea eax, [ebp - 0x860]
push 0
push eax
call fcn.0043fd94
and dword [ebp - 0x25c], 0
push 0x1fc
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.0043fd94
mov ecx, dword [0x4fd5c8]
add esp, 0x18
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x864]
push eax
lea eax, [ebx + 0x1c8e]
push eax
call fcn.0043d61d
mov dword [ebp - 8], eax
test eax, eax
jne 0x4036ad
mov ecx, dword [0x4fd5c8]
call fcn.0043d870
mov ecx, dword [0x4fd5c8]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x864]
push eax
lea eax, [ebx + 0x1c8e]
push eax
call fcn.0043d61d
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x403701
lea eax, [ebx + 0xa2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x864]
call fcn.0042748c
mov ecx, dword [ebp - 0x14]
mov dword [ecx - 0x200], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x864]
call fcn.00410935
push eax
call fcn.0042748c
mov ecx, dword [ebp - 0x14]
inc dword [ebp - 4]
add dword [ebp - 0x14], 4
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x4036c0
lea ecx, [ebx + 0x1c8e]
lea eax, [ebx + 0x10a4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [0x4fd5c8]
call fcn.0043d732
push str.USBSTOR
lea eax, [ebx + 0x1f6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40374c
push str.UASPStor
lea eax, [ebx + 0x1f6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x403756
mov dword [ebx + 0x3a30], 1
cmp dword [0x507a24], 4
jl 0x4037b1
lea eax, [ebx + 0x1d8e]
push eax
lea eax, [ebx + 0x2af8]
push eax
push edi
lea eax, [ebx + 0x1f6c]
push eax
lea eax, [ebx + 0x1e8e]
push eax
lea eax, [ebx + 0x1e0e]
push eax
lea eax, [ebx + 0x1834]
push eax
lea eax, [ebx + 0x1734]
push eax
lea eax, [ebx + 0x1c34]
push eax
lea eax, [ebx + 0xe34]
push eax
push dword [ebx + 4]
push str.Dev__02i__id_s_dkn_s_fn_s_desc_s_cls_s_clsguid_s_svc_s_loc_s_locp_s_enum_s
push 4
call fcn.00445f0b
add esp, 0x34
xor eax, eax
lea edi, [ebx + 0x1934]
mov word [edi], ax
lea eax, [ebx + 0x1634]
cmp word [eax], 0
jne 0x4037d4
lea eax, [ebx + 0x1734]
cmp word [eax], 0
je 0x4037dc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 0x1834]
cmp word [eax], 0
je 0x403828
cmp word [edi], 0
push eax
push edi
je 0x403822
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x403828
push 0x44b940
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebx + 0x1834]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44b93c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x403828
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebx + 0x39e4], 0
jne 0x4038e9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x44b924
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
je 0x403871
push 0x44b918
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
je 0x403871
push 0x44b908
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
jne 0x4038b7
and dword [ebp - 0x5c], 0
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebx + 0x1e8e]
push eax
call fcn.00444db1
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
jle 0x4038b7
lea eax, [ebx + 0xc2c]
push eax
push 2
push dword [ebp + edi*4 - 0x5c]
push dword [ebx + 0x10]
call fcn.00444ce6
test eax, eax
jne 0x4038b7
inc edi
cmp edi, dword [ebp - 8]
jl 0x403898
push 0x44b900
lea eax, [ebx + 0x1e0e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4038e9
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebx + 0x39e8]
push eax
push 0
push 0x1f
push dword [ebx + 0x10]
mov dword [ebp + 8], 0x38
call esi
push dword [ebx + 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.00401b35
mov dword [ebx + 0x24], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x664], ax
lea eax, [ebp - 0x662]
push eax
call fcn.0043fd94
push 0x14
pop ecx
push 0x3b0
lea eax, [ebp - 0xc14]
push 0
mov esi, str.SYSTEMCurrentControlSetControlClass_
lea edi, [ebp - 0xc64]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0043fd94
add esp, 0x18
lea eax, [ebx + 0x1c34]
push eax
lea eax, [ebp - 0xc64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x104
lea eax, [ebp - 0x664]
push eax
push str.InfPath
lea eax, [ebp - 0xc64]
push eax
push 0x80000002
call fcn.004250c5
test eax, eax
je 0x4039af
push 0x5c
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
lea eax, [ebp - 0x664]
push eax
lea eax, [ebx + 0x35fc]
je 0x40399b
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4039af
push 0x4face8
push str._sinf_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0xf
lea esi, [ebx + 0x32f8]
push esi
lea eax, [ebx + 0x20f8]
push eax
call fcn.00424db9
push 7
lea eax, [ebx + 0x33b8]
push eax
lea eax, [ebx + 0x2af8]
push eax
call fcn.00424db9
push 0x1c
lea eax, [ebx + 0x33d8]
push 0
push eax
call fcn.0043fd94
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrW]
add esp, 0xc
push str.VID_0000PID_
lea eax, [ebx + 0xe34]
push eax
call edi
test eax, eax
jne 0x403a95
cmp dword [esi], eax
je 0x403a95
mov dword [ebp - 8], esi
push 0x44b860
push dword [esi]
call edi
push 0x44b854
push dword [esi]
mov dword [ebp - 0x14], eax
call edi
push str.REV_
push dword [esi]
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 0x14], 0
mov esi, eax
je 0x403a46
cmp dword [ebp - 4], 0
je 0x403a46
test esi, esi
jne 0x403a56
mov esi, dword [ebp - 8]
add esi, 4
cmp dword [esi], 0
mov dword [ebp - 8], esi
jne 0x403a13
jmp 0x403a95
mov eax, dword [ebp - 0x14]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x33d8]
push eax
call fcn.0043fdfe
mov eax, dword [ebp - 4]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x33e0]
push eax
call fcn.0043fdfe
push 8
add esi, 0xa
lea eax, [ebx + 0x33e8]
push esi
push eax
call fcn.0043fdfe
add esp, 0x24
and dword [ebp - 0x24], 0
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x1e8e]
push eax
call fcn.0042abdd
push 0x10
lea eax, [ebp - 0x24]
push 0x44a554
push eax
call fcn.0043fd51
add esp, 0xc
mov esi, 0x44b0bc
test eax, eax
je 0x403ae8
push 0x10
lea eax, [ebp - 0x24]
push 0x44a484
push eax
call fcn.0043fd51
add esp, 0xc
test eax, eax
jne 0x403b7e
push str.Device_Parameters
lea eax, [ebx + 0xe34]
push eax
push str.SystemCurrentControlSetEnum
lea eax, [ebp - 0x45c]
push esi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x40
lea eax, [ebx + 0xfc4]
push eax
push str.PortName
lea eax, [ebp - 0x45c]
push eax
mov edi, 0x80000002
push edi
call fcn.004250c5
test eax, eax
je 0x403b83
push 0x208
lea eax, [ebp - 0x1074]
push eax
lea eax, [ebx + 0xfc4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x403b83
lea ecx, [ebp - 0x1074]
lea eax, [ebx + 0x13ac]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 0x13ac]
push eax
lea eax, [ebx + 0xfc4]
push eax
push str.PortName_s_KernelName_s
push 3
call fcn.00445f0b
add esp, 0x10
jmp 0x403b83
mov edi, 0x80000002
cmp word [ebx + 0xc2c], 0
jne 0x403c05
push str.Device_Parameters
lea eax, [ebx + 0xe34]
push eax
push str.SystemCurrentControlSetEnum
lea eax, [ebp - 0xc64]
push esi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x104
lea eax, [ebx + 0xc2c]
push eax
push str.SymbolicName
lea eax, [ebp - 0xc64]
push eax
push edi
call fcn.004250c5
test eax, eax
jne 0x403bf3
push 0x104
lea eax, [ebx + 0xc2c]
push eax
push str.SymbolicLinkName
lea eax, [ebp - 0xc64]
push eax
push edi
call fcn.004250c5
test eax, eax
je 0x403bfd
push 0x5c
pop eax
mov word [ebx + 0xc2e], ax
cmp word [ebx + 0xc2c], 0
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
jne 0x403ceb
push str.USBVID_
lea eax, [ebx + 0xe34]
push eax
call edi
test eax, eax
je 0x403ceb
mov esi, 0x44b7cc
lea edi, [ebp - 0x45c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3f6
lea eax, [ebp - 0x452]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0043fd94
add esp, 0xc
lea eax, [ebx + 0xe34]
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x23
push 0x5c
lea eax, [ebp - 0x45c]
push eax
call fcn.00425756
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44b7c8
lea eax, [ebp - 0x45c]
push eax
call edi
mov esi, str.a5dcbf10_6530_11d2_901f_00c04fb951ed
push esi
lea eax, [ebp - 0x45c]
push eax
call edi
lea eax, [ebp - 0x45c]
push eax
push esi
push str.SystemCurrentControlSetControlDeviceClasses
lea eax, [ebp - 0xc64]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x104
lea eax, [ebx + 0xc2c]
push eax
push str.SymbolicLink
lea eax, [ebp - 0xc64]
push eax
push 0x80000002
call fcn.004250c5
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x403ceb
push 0x5c
pop eax
mov word [ebx + 0xc2e], ax
push 0x44b900
lea eax, [ebx + 0x1e0e]
push eax
call edi
lea esi, [ebx + 0xc2c]
cmp word [esi], 0
jne 0x403d2b
mov eax, dword [ebx + 0x39e4]
test eax, eax
je 0x403d19
cmp eax, 0x15
je 0x403d19
cmp eax, 0x2f
jne 0x403d2b
mov eax, dword [ebx + 0x82c]
test eax, eax
je 0x403d2b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x403dbf
push 0x104
lea eax, [ebx + 0x10a4]
push eax
lea eax, [ebx + 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x403dbf
push esi
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.global
lea eax, [ebp - 0x264]
push eax
call edi
test eax, eax
je 0x403d7d
xor ecx, ecx
mov word [eax], cx
push 0x104
lea eax, [ebx + 0x10a4]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x403db1
push esi
push str.devpath_invalid:__s
push 3
call fcn.00445f0b
add esp, 0xc
xor eax, eax
mov word [esi], ax
jmp 0x403dbf
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.USER32.dll_CharLowerW]
push str.53f56307_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403e57
push str.7fccc86c_228a_40ad_8a58_f590af7bfdce
push esi
call edi
test eax, eax
jne 0x403e57
push str.4d36e967_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e8e]
push eax
call edi
test eax, eax
jne 0x403e57
push str.53f56308_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403e3c
push str.4d36e965_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e8e]
push eax
call edi
test eax, eax
jne 0x403e3c
push str.53f56311_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403e30
push str.4d36e980_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e8e]
push eax
call edi
test eax, eax
je 0x403e75
mov dword [ebx + 0x3a24], 3
jmp 0x403e46
mov dword [ebx + 0x3a24], 2
xor eax, eax
inc eax
mov dword [ebx + 0x3a2c], eax
mov dword [ebx + 0x3a28], eax
jmp 0x403e75
push esi
mov dword [ebx + 0x3a24], 1
call fcn.00445396
test eax, eax
jne 0x403e75
mov dword [ebx + 0x3a2c], 1
cmp dword [ebx + 0x3a28], 0
jne 0x403e9a
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403e9a
push str.7f108a28_9833_4b3b_b780_2c6b5fa5c062
push esi
call edi
test eax, eax
je 0x403f36
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x3a28], 1
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x403ee4
push dword [ebx + 0x10]
call fcn.004059c3
mov dword [ebx + 0x3a74], eax
test eax, eax
jne 0x403ee4
push dword [ebx + 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push esi
call fcn.00406552
cmp eax, 0xffffffff
je 0x403ee4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov eax, dword [ecx + eax*4 + 4]
mov dword [ebx + 0x3a74], eax
lea esi, [ebx + 0x10a4]
cmp word [esi], 0
je 0x403f36
push str.disk
push esi
call edi
test eax, eax
je 0x403f08
mov dword [ebx + 0x3a24], 1
jmp 0x403f36
push 0x44b3d8
push esi
call edi
test eax, eax
je 0x403f20
mov dword [ebx + 0x3a24], 2
jmp 0x403f36
push 0x44b3c8
push esi
call edi
test eax, eax
je 0x403f36
mov dword [ebx + 0x3a24], 3
xor esi, esi
cmp dword [ebx + 0x3a24], esi
je 0x4040d1
lea eax, [ebx + 0xc2c]
cmp word [eax], si
je 0x4040d1
cmp dword [ebx + 0x3a2c], esi
je 0x40400e
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 4], esi
jne 0x403fbe
push str.USBSTORDiskVen_
push eax
call fcn.0042580f
test eax, eax
je 0x403fbe
push 0x1fc
lea eax, [ebp - 0x258]
push esi
push eax
mov dword [ebp - 0x25c], esi
call fcn.0043fd94
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [0x4fd5c4]
push dword [ebx + 0x10]
mov ecx, dword [eax + 8]
call fcn.00405b69
test eax, eax
je 0x403fbe
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax + 0x840]
mov dword [ebx + 0x3a20], eax
lea esi, [ebx + 0x3a20]
cmp dword [esi], 0xffffffff
jne 0x403fd7
lea eax, [ebx + 0xc2c]
push eax
call fcn.00429f79
mov dword [esi], eax
push dword [esi]
mov ecx, dword [ebx + 0x3a24]
push dword [ecx*4 + 0x493014]
lea eax, [ebx + 0x1084]
push str._S_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebx + 0x1084]
push eax
push str.drive_s
push 1
call fcn.00445f0b
add esp, 0x1c
cmp dword [ebx + 0x3a28], 0
je 0x4040d1
mov eax, dword [ebx + 0x3a74]
test eax, eax
je 0x4040d1
lea ecx, [eax + 0x844]
push ecx
lea esi, [ebx + 0x3a20]
push esi
add eax, 0x428
push eax
call fcn.00429d7f
test eax, eax
jne 0x404073
mov eax, dword [ebx + 0x3a74]
lea ecx, [eax + 0x844]
push ecx
add eax, 0x840
push eax
lea eax, [ebx + 0xc2c]
push eax
call fcn.00424bab
mov eax, dword [ebx + 0x3a74]
mov eax, dword [eax + 0x840]
mov dword [esi], eax
cmp dword [ebx + 0x3a24], 1
jne 0x4040d1
mov edx, dword [ebp - 0x10]
and dword [ebp - 8], 0
cmp dword [edx + 0x400c], 0
jle 0x4040d1
add edx, 0xc
mov eax, dword [edx]
test eax, eax
je 0x4040bd
cmp dword [eax], 1
jne 0x4040bd
cmp dword [eax + 0x3a24], 0
je 0x4040bd
cmp dword [eax + 0x3a28], 0
jne 0x4040bd
mov ecx, dword [eax + 0x3a20]
test ecx, ecx
jl 0x4040bd
cmp ecx, dword [esi]
jne 0x4040bd
mov dword [ebx + 0x24], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add edx, 4
cmp ecx, dword [eax + 0x400c]
jl 0x40408f
lea esi, [ebx + 0xc2c]
cmp word [esi], 0
je 0x40417c
cmp dword [ebx + 0x3a80], 0
jne 0x40417c
push 0x44b900
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
je 0x40410c
push str.pci
push esi
call edi
test eax, eax
jne 0x404160
push str.root
push esi
call edi
test eax, eax
je 0x40412a
push 0x44b36c
lea eax, [ebx + 0x1f6c]
push eax
call edi
test eax, eax
jne 0x404160
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x44b918
lea esi, [ebx + 0x1e0e]
push esi
call edi
test eax, eax
je 0x404160
push 0x44b908
push esi
call edi
test eax, eax
je 0x404160
push 0x44b900
lea eax, [ebx + 0x1d8e]
push eax
call edi
test eax, eax
jne 0x40417c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4018]
neg eax
sbb eax, eax
push 0x2710
and eax, 0x64
push eax
push ebx
call fcn.0040324b
pop edi
pop esi
pop ebx
leave
ret 4