Function at 0x40328f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1074
cmp dword [0x506fb4], 4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], ecx
jl 0x4032c3
lea eax, [ebx + 0xe34]
push eax
push dword [ebx + 0x10]
push str.CDevList::PutDevProperties__u_...___s
push 4
call fcn.004452a3
add esp, 0x10
mov eax, dword [ebx + 0x10]
push 0
push 0xc8
lea ecx, [ebx + 0xe34]
push ecx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_Device_IDW]
push 0
push dword [ebx + 0x10]
lea edi, [ebx + 0x14]
push edi
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 dword [ebp - 4]
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
mov eax, dword [edi]
test eax, eax
je 0x403390
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00401ad5
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x403390
push str.PCIVEN
lea eax, [ebx + 0xe34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x403390
push str.USBROOT
lea eax, [ebx + 0xe34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x403390
push str.STORAGEVOLUME
lea eax, [ebx + 0xe34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x403390
push dword [edi]
mov ecx, dword [ebp - 0x10]
push 0x449d24
call fcn.004042e4
mov dword [ebx + 0x24], eax
cmp dword [ebp - 8], 0xd
jne 0x40339c
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 0x44a030
lea eax, [ebx + 0x1734]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
lea eax, [ebx + 0x1734]
push eax
call fcn.004249c6
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 0x44a030
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.004452a3
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 [0x4f9f50], 5
jne 0x403514
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
call fcn.0040e1fe
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 0x4035a8
cmp word [ebx + 0x1e8e], ax
je 0x4035a8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebx + 0x1e8e]
push eax
call fcn.0042a9b7
test eax, eax
je 0x4035a8
lea eax, [ebp - 0x34]
push eax
call fcn.00442f1b
push eax
lea eax, [ebx + 0x1ee8]
push eax
call fcn.0042a26f
mov ecx, dword [0x4fc950]
call fcn.0043ce6e
and dword [ebp - 0x864], 0
push 0x1fc
lea eax, [ebp - 0x860]
push 0
push eax
call fcn.0043f4d8
and dword [ebp - 0x25c], 0
push 0x1fc
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.0043f4d8
mov ecx, dword [0x4fc950]
add esp, 0x18
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x864]
push eax
lea eax, [ebx + 0x1c8e]
push eax
call fcn.0043cd61
mov dword [ebp - 8], eax
test eax, eax
jne 0x40363f
mov ecx, dword [0x4fc950]
call fcn.0043cfb4
mov ecx, dword [0x4fc950]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x864]
push eax
lea eax, [ebx + 0x1c8e]
push eax
call fcn.0043cd61
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x403693
lea eax, [ebx + 0xa2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x864]
call fcn.0042737a
mov ecx, dword [ebp - 0x14]
mov dword [ecx - 0x200], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x864]
call fcn.00410738
push eax
call fcn.0042737a
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 0x403652
lea ecx, [ebx + 0x1c8e]
lea eax, [ebx + 0x10a4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [0x4fc950]
call fcn.0043ce76
push str.USBSTOR
lea eax, [ebx + 0x1f6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4036de
push str.UASPStor
lea eax, [ebx + 0x1f6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4036e8
mov dword [ebx + 0x3a30], 1
cmp dword [0x506fb4], 4
jl 0x403743
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.004452a3
add esp, 0x34
xor eax, eax
lea edi, [ebx + 0x1934]
mov word [edi], ax
lea eax, [ebx + 0x1634]
cmp word [eax], 0
jne 0x403766
lea eax, [ebx + 0x1734]
cmp word [eax], 0
je 0x40376e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 0x1834]
cmp word [eax], 0
je 0x4037ba
cmp word [edi], 0
push eax
push edi
je 0x4037b4
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x4037ba
push 0x44a900
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 0x44a8fc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x4037ba
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebx + 0x39e4], 0
jne 0x40387b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x44a8e4
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
je 0x403803
push 0x44a8d8
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
je 0x403803
push 0x44a8c8
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
jne 0x403849
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.004442a8
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
jle 0x403849
lea eax, [ebx + 0xc2c]
push eax
push 2
push dword [ebp + edi*4 - 0x5c]
push dword [ebx + 0x10]
call fcn.004441dd
test eax, eax
jne 0x403849
inc edi
cmp edi, dword [ebp - 8]
jl 0x40382a
push 0x44a8c0
lea eax, [ebx + 0x1e0e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40387b
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.00401ad5
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.0043f4d8
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.0043f4d8
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.00424f44
test eax, eax
je 0x403941
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 0x40392d
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x403941
push 0x4fa078
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.00424c38
push 7
lea eax, [ebx + 0x33b8]
push eax
lea eax, [ebx + 0x2af8]
push eax
call fcn.00424c38
push 0x1c
lea eax, [ebx + 0x33d8]
push 0
push eax
call fcn.0043f4d8
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 0x403a27
cmp dword [esi], eax
je 0x403a27
mov dword [ebp - 8], esi
push 0x44a820
push dword [esi]
call edi
push 0x44a814
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 0x4039d8
cmp dword [ebp - 4], 0
je 0x4039d8
test esi, esi
jne 0x4039e8
mov esi, dword [ebp - 8]
add esi, 4
cmp dword [esi], 0
mov dword [ebp - 8], esi
jne 0x4039a5
jmp 0x403a27
mov eax, dword [ebp - 0x14]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x33d8]
push eax
call fcn.0043f542
mov eax, dword [ebp - 4]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x33e0]
push eax
call fcn.0043f542
push 8
add esi, 0xa
lea eax, [ebx + 0x33e8]
push esi
push eax
call fcn.0043f542
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.0042aacb
push 0x10
lea eax, [ebp - 0x24]
push 0x449584
push eax
call fcn.0043f495
add esp, 0xc
mov esi, 0x44a07c
test eax, eax
je 0x403a7a
push 0x10
lea eax, [ebp - 0x24]
push 0x4494b4
push eax
call fcn.0043f495
add esp, 0xc
test eax, eax
jne 0x403b10
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.00424f44
test eax, eax
je 0x403b15
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 0x403b15
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.004452a3
add esp, 0x10
jmp 0x403b15
mov edi, 0x80000002
cmp word [ebx + 0xc2c], 0
jne 0x403b97
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.00424f44
test eax, eax
jne 0x403b85
push 0x104
lea eax, [ebx + 0xc2c]
push eax
push str.SymbolicLinkName
lea eax, [ebp - 0xc64]
push eax
push edi
call fcn.00424f44
test eax, eax
je 0x403b8f
push 0x5c
pop eax
mov word [ebx + 0xc2e], ax
cmp word [ebx + 0xc2c], 0
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
jne 0x403c7d
push str.USBVID_
lea eax, [ebx + 0xe34]
push eax
call edi
test eax, eax
je 0x403c7d
mov esi, 0x44a78c
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.0043f4d8
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.004255d5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44a788
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.00424f44
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x403c7d
push 0x5c
pop eax
mov word [ebx + 0xc2e], ax
push 0x44a8c0
lea eax, [ebx + 0x1e0e]
push eax
call edi
lea esi, [ebx + 0xc2c]
cmp word [esi], 0
jne 0x403cbd
mov eax, dword [ebx + 0x39e4]
test eax, eax
je 0x403cab
cmp eax, 0x15
je 0x403cab
cmp eax, 0x2f
jne 0x403cbd
mov eax, dword [ebx + 0x82c]
test eax, eax
je 0x403cbd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x403d51
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 0x403d51
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 0x403d0f
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 0x403d43
push esi
push str.devpath_invalid:__s
push 3
call fcn.004452a3
add esp, 0xc
xor eax, eax
mov word [esi], ax
jmp 0x403d51
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 0x403de9
push str.7fccc86c_228a_40ad_8a58_f590af7bfdce
push esi
call edi
test eax, eax
jne 0x403de9
push str.4d36e967_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e8e]
push eax
call edi
test eax, eax
jne 0x403de9
push str.53f56308_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403ddd
push str.4d36e965_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e8e]
push eax
call edi
test eax, eax
jne 0x403ddd
push str.53f56311_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403dc2
push str.4d36e980_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e8e]
push eax
call edi
test eax, eax
je 0x403e0a
mov dword [ebx + 0x3a24], 3
xor esi, esi
inc esi
mov dword [ebx + 0x3a2c], esi
mov dword [ebx + 0x3a28], esi
jmp 0x403e0d
mov dword [ebx + 0x3a24], 2
jmp 0x403dcc
xor esi, esi
lea eax, [ebx + 0xc2c]
inc esi
push eax
mov dword [ebx + 0x3a24], esi
call fcn.0044488d
test eax, eax
jne 0x403e0d
mov dword [ebx + 0x3a2c], esi
jmp 0x403e0d
xor esi, esi
inc esi
cmp dword [ebx + 0x3a28], 0
jne 0x403e3e
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
lea eax, [ebx + 0xc2c]
push eax
call edi
test eax, eax
jne 0x403e3e
push str.7f108a28_9833_4b3b_b780_2c6b5fa5c062
lea eax, [ebx + 0xc2c]
push eax
call edi
test eax, eax
je 0x403ed6
mov dword [ebx + 0x3a28], esi
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x403e84
push dword [ebx + 0x10]
call fcn.00405951
mov dword [ebx + 0x3a74], eax
test eax, eax
jne 0x403e84
push dword [ebx + 0x10]
mov ecx, dword [esi + 8]
lea eax, [ebx + 0xc2c]
push eax
call fcn.004068f8
cmp eax, 0xffffffff
je 0x403e84
mov ecx, dword [esi + 8]
mov eax, dword [ecx + eax*4 + 4]
mov dword [ebx + 0x3a74], eax
lea esi, [ebx + 0x10a4]
cmp word [esi], 0
je 0x403ed6
push str.disk
push esi
call edi
test eax, eax
je 0x403ea8
mov dword [ebx + 0x3a24], 1
jmp 0x403ed6
push 0x44a398
push esi
call edi
test eax, eax
je 0x403ec0
mov dword [ebx + 0x3a24], 2
jmp 0x403ed6
push 0x44a388
push esi
call edi
test eax, eax
je 0x403ed6
mov dword [ebx + 0x3a24], 3
cmp dword [ebx + 0x3a24], 0
je 0x40407b
cmp word [ebx + 0xc2c], 0
je 0x404133
cmp dword [ebx + 0x3a28], 0
je 0x403f57
mov eax, dword [ebx + 0x3a74]
test eax, eax
je 0x403f57
lea ecx, [eax + 0x844]
push ecx
lea esi, [ebx + 0x3a20]
push esi
add eax, 0x428
push eax
call fcn.00429c6e
test eax, eax
jne 0x40401b
mov eax, dword [ebx + 0x3a74]
lea ecx, [eax + 0x844]
push ecx
add eax, 0x840
push eax
lea eax, [ebx + 0xc2c]
push eax
call fcn.00424a2a
mov eax, dword [ebx + 0x3a74]
mov eax, dword [eax + 0x840]
mov dword [esi], eax
jmp 0x40401b
cmp dword [ebx + 0x3a2c], 0
je 0x40401b
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp dword [eax + 4], esi
jne 0x403fcb
push str.USBSTORDiskVen_
lea eax, [ebx + 0xc2c]
push eax
call fcn.0042568e
test eax, eax
je 0x403fcb
push 0x1fc
lea eax, [ebp - 0x258]
push esi
push eax
mov dword [ebp - 0x25c], esi
call fcn.0043f4d8
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [0x4fc94c]
push dword [ebx + 0x10]
mov ecx, dword [eax + 8]
call fcn.00405af8
test eax, eax
je 0x403fcb
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax + 0x840]
mov dword [ebx + 0x3a20], eax
lea esi, [ebx + 0x3a20]
cmp dword [esi], 0xffffffff
jne 0x403fe4
lea eax, [ebx + 0xc2c]
push eax
call fcn.00429e68
mov dword [esi], eax
push dword [esi]
mov ecx, dword [ebx + 0x3a24]
push dword [ecx*4 + 0x49201c]
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.004452a3
add esp, 0x1c
xor ecx, ecx
cmp dword [ebx + 0x3a28], ecx
je 0x40407b
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x400c], ecx
mov dword [ebp - 8], ecx
jle 0x40407b
lea esi, [edx + 0xc]
jmp 0x40403a
xor ecx, ecx
mov eax, dword [esi]
cmp eax, ecx
je 0x40406a
cmp dword [eax], 1
jne 0x40406a
cmp dword [eax + 0x3a24], ecx
je 0x40406a
cmp dword [eax + 0x3a28], ecx
jne 0x40406a
mov ecx, dword [eax + 0x3a20]
test ecx, ecx
jl 0x40406a
cmp ecx, dword [ebx + 0x3a20]
jne 0x40406a
mov dword [ebx + 0x24], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add esi, 4
cmp eax, dword [edx + 0x400c]
jl 0x404038
cmp word [ebx + 0xc2c], 0
je 0x404133
cmp dword [ebx + 0x3a80], 0
jne 0x404133
mov esi, 0x44a8c0
push esi
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
je 0x4040bb
push str.pci
lea eax, [ebx + 0xc2c]
push eax
call edi
test eax, eax
jne 0x404117
push str.root
lea eax, [ebx + 0xc2c]
push eax
call edi
test eax, eax
je 0x4040df
push 0x44a32c
lea eax, [ebx + 0x1f6c]
push eax
call edi
test eax, eax
jne 0x404117
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x44a8d8
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
je 0x404117
push 0x44a8c8
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
je 0x404117
push esi
lea eax, [ebx + 0x1d8e]
push eax
call edi
test eax, eax
jne 0x404133
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.004031e4
pop edi
pop esi
pop ebx
leave
ret 4