Function at 0x403284
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1074
cmp dword [0x50da14], 4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xc], ecx
jl 0x4032b8
lea eax, [ebx + 0xe38]
push eax
push dword [ebx + 0x10]
push str.CDevList::PutDevProperties__u_...___s
push 4
call fcn.004487a4
add esp, 0x10
mov edi, dword [ebx + 0x10]
push 0
push 0xc8
lea eax, [ebx + 0xe38]
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 eax, [ebx + 0x39e8]
push eax
lea eax, [ebx + 0x39e4]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
mov dword [ebp - 8], eax
test eax, eax
jne 0x403324
mov dword [ebx + 8], 1
mov eax, dword [ebx + 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x4033bd
mov ecx, dword [ebp - 0xc]
push eax
call fcn.00401acd
mov dword [ebx + 0x28], eax
test eax, eax
je 0x40337a
push str.ROOTVOLMGR_
add eax, 0xe38
push eax
call fcn.00426e06
test eax, eax
je 0x40337a
mov eax, dword [ebx + 0x3a78]
test eax, eax
je 0x40337a
push dword [eax + 0x83c]
mov ecx, dword [ebp - 0xc]
push dword [eax + 0x840]
call fcn.00401cdb
mov dword [ebx + 0x28], eax
cmp dword [ebx + 0x28], 0
jne 0x4033bd
push str.PCIVEN
lea edi, [ebx + 0xe38]
push edi
call esi
test eax, eax
jne 0x4033bd
push str.USBROOT
push edi
call esi
test eax, eax
jne 0x4033bd
push str.STORAGEVOLUME
push edi
call esi
test eax, eax
jne 0x4033bd
push dword [ebx + 0x14]
mov ecx, dword [ebp - 0xc]
push 0x44d0ac
call fcn.0040434a
mov dword [ebx + 0x28], eax
cmp dword [ebp - 8], 0xd
jne 0x4033cd
mov dword [ebx + 0x39e8], 0x2d
mov esi, dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Registry_PropertyW]
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x1c38]
push eax
lea eax, [ebp - 0x10]
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 + 0x1c92]
push eax
lea eax, [ebp - 0x10]
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 + 0x1738]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xd
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
push 0x44d3b0
lea eax, [ebx + 0x1738]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
lea eax, [ebx + 0x1738]
push eax
call fcn.0042613e
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x1838]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
push 0x44d3b0
lea eax, [ebx + 0x1838]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x20fc]
push eax
lea eax, [ebp - 0x10]
push eax
push 2
push dword [ebp - 4]
mov dword [ebp + 8], 0x5fe
call esi
lea ecx, [ebx + 0x20fc]
push ecx
push dword [ebp + 8]
push eax
push str.CM_DRP_HARDWAREID_cret_u_uLen_u_s_s
push 3
call fcn.004487a4
add esp, 0x14
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0x7f
lea eax, [ebx + 0x1e12]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push 8
push dword [ebp - 4]
call esi
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x1f70]
push eax
lea eax, [ebp - 0x10]
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 + 0x1ff4]
push eax
lea eax, [ebp - 0x10]
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 + 0x1b38]
push edi
lea eax, [ebp - 0x10]
push eax
push 0xe
push dword [ebp - 4]
call esi
cmp dword [0x500aa8], 5
jne 0x403545
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
call fcn.0040f35d
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x2afc]
push eax
lea eax, [ebp - 0x10]
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 + 0x1d92]
push eax
lea eax, [ebp - 0x10]
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 + 0x1e92]
push eax
lea eax, [ebp - 0x10]
push eax
push 9
push dword [ebp - 4]
mov dword [ebp + 8], 0x53
call esi
test eax, eax
jne 0x4035d9
cmp word [ebx + 0x1e92], ax
je 0x4035d9
lea eax, [ebp - 0x34]
push eax
lea eax, [ebx + 0x1e92]
push eax
call fcn.0042c2fd
test eax, eax
je 0x4035d9
lea eax, [ebp - 0x34]
push eax
call fcn.00445dcf
push eax
lea eax, [ebx + 0x1eec]
push eax
call fcn.0042bb5c
mov ecx, dword [0x503500]
call fcn.004406b7
and dword [ebp - 0x864], 0
push 0x1fc
lea eax, [ebp - 0x860]
push 0
push eax
call fcn.00442d2f
and dword [ebp - 0x25c], 0
push 0x1fc
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.00442d2f
mov ecx, dword [0x503500]
add esp, 0x18
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x864]
push eax
lea eax, [ebx + 0x1c92]
push eax
call fcn.004405aa
mov dword [ebp - 8], eax
test eax, eax
jne 0x403670
mov ecx, dword [0x503500]
call fcn.004407fd
mov ecx, dword [0x503500]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x864]
push eax
lea eax, [ebx + 0x1c92]
push eax
call fcn.004405aa
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x4036c4
lea eax, [ebx + 0xa30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x864]
call fcn.00428c34
mov ecx, dword [ebp - 0x14]
mov dword [ecx - 0x200], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x864]
call fcn.00411987
push eax
call fcn.00428c34
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 0x403683
lea ecx, [ebx + 0x1c92]
lea eax, [ebx + 0x10a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [0x503500]
call fcn.004406bf
push str.USBSTOR
lea eax, [ebx + 0x1f70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40370f
push str.UASPStor
lea eax, [ebx + 0x1f70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x403719
mov dword [ebx + 0x3a34], 1
cmp dword [0x50da14], 4
jl 0x403774
lea eax, [ebx + 0x1d92]
push eax
lea eax, [ebx + 0x2afc]
push eax
push edi
lea eax, [ebx + 0x1f70]
push eax
lea eax, [ebx + 0x1e92]
push eax
lea eax, [ebx + 0x1e12]
push eax
lea eax, [ebx + 0x1838]
push eax
lea eax, [ebx + 0x1738]
push eax
lea eax, [ebx + 0x1c38]
push eax
lea eax, [ebx + 0xe38]
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.004487a4
add esp, 0x34
xor eax, eax
lea edi, [ebx + 0x1938]
mov word [edi], ax
lea eax, [ebx + 0x1638]
cmp word [eax], 0
jne 0x403797
lea eax, [ebx + 0x1738]
cmp word [eax], 0
je 0x40379f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 0x1838]
cmp word [eax], 0
je 0x4037eb
cmp word [edi], 0
push eax
push edi
je 0x4037e5
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x4037eb
push 0x44dd28
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebx + 0x1838]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44dd24
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x4037eb
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebx + 0x39e8], 0
jne 0x4038ac
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push str.FloppyDisk
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x403834
push 0x44dd00
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x403834
push 0x44dcf0
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
jne 0x40387a
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 + 0x1e92]
push eax
call fcn.0044724f
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
jle 0x40387a
lea eax, [ebx + 0xc30]
push eax
push 2
push dword [ebp + edi*4 - 0x5c]
push dword [ebx + 0x10]
call fcn.00447184
test eax, eax
jne 0x40387a
inc edi
cmp edi, dword [ebp - 8]
jl 0x40385b
push 0x44dce8
lea eax, [ebx + 0x1e12]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4038ac
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebx + 0x39ec]
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 - 0xc]
call fcn.00401acd
mov dword [ebx + 0x28], eax
test eax, eax
je 0x4038f3
push str.ROOTVOLMGR_
add eax, 0xe38
push eax
call fcn.00426e06
test eax, eax
je 0x4038f3
mov eax, dword [ebx + 0x3a78]
test eax, eax
je 0x4038f3
push dword [eax + 0x83c]
mov ecx, dword [ebp - 0xc]
push dword [eax + 0x840]
call fcn.00401cdb
mov dword [ebx + 0x28], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x664], ax
lea eax, [ebp - 0x662]
push eax
call fcn.00442d2f
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.00442d2f
add esp, 0x18
lea eax, [ebx + 0x1c38]
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.004266bc
test eax, eax
je 0x4039ab
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 + 0x3600]
je 0x403997
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4039ab
push 0x500bd0
push str._sinf_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0xf
lea esi, [ebx + 0x32fc]
push esi
lea eax, [ebx + 0x20fc]
push eax
call fcn.004263b0
push 7
lea eax, [ebx + 0x33bc]
push eax
lea eax, [ebx + 0x2afc]
push eax
call fcn.004263b0
push 0x1c
lea eax, [ebx + 0x33dc]
push 0
push eax
call fcn.00442d2f
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrW]
add esp, 0xc
push str.VID_0000PID_
lea eax, [ebx + 0xe38]
push eax
call edi
test eax, eax
jne 0x403a91
cmp dword [esi], eax
je 0x403a91
mov dword [ebp - 8], esi
push 0x44dc68
push dword [esi]
call edi
push 0x44dc5c
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 0x403a42
cmp dword [ebp - 4], 0
je 0x403a42
test esi, esi
jne 0x403a52
mov esi, dword [ebp - 8]
add esi, 4
cmp dword [esi], 0
mov dword [ebp - 8], esi
jne 0x403a0f
jmp 0x403a91
mov eax, dword [ebp - 0x14]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x33dc]
push eax
call fcn.00442d99
mov eax, dword [ebp - 4]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x33e4]
push eax
call fcn.00442d99
push 8
add esi, 0xa
lea eax, [ebx + 0x33ec]
push esi
push eax
call fcn.00442d99
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 + 0x1e92]
push eax
call fcn.0042c411
push 0x10
lea eax, [ebp - 0x24]
push 0x471918
push eax
call fcn.00442cec
add esp, 0xc
mov esi, 0x44d3fc
test eax, eax
je 0x403ae4
push 0x10
lea eax, [ebp - 0x24]
push 0x44c4c0
push eax
call fcn.00442cec
add esp, 0xc
test eax, eax
jne 0x403b7a
push str.Device_Parameters
lea eax, [ebx + 0xe38]
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 + 0xfc8]
push eax
push str.PortName
lea eax, [ebp - 0x45c]
push eax
mov edi, 0x80000002
push edi
call fcn.004266bc
test eax, eax
je 0x403b7f
push 0x208
lea eax, [ebp - 0x1074]
push eax
lea eax, [ebx + 0xfc8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x403b7f
lea ecx, [ebp - 0x1074]
lea eax, [ebx + 0x13b0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 0x13b0]
push eax
lea eax, [ebx + 0xfc8]
push eax
push str.PortName_s_KernelName_s
push 3
call fcn.004487a4
add esp, 0x10
jmp 0x403b7f
mov edi, 0x80000002
cmp word [ebx + 0xc30], 0
jne 0x403c01
push str.Device_Parameters
lea eax, [ebx + 0xe38]
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 + 0xc30]
push eax
push str.SymbolicName
lea eax, [ebp - 0xc64]
push eax
push edi
call fcn.004266bc
test eax, eax
jne 0x403bef
push 0x104
lea eax, [ebx + 0xc30]
push eax
push str.SymbolicLinkName
lea eax, [ebp - 0xc64]
push eax
push edi
call fcn.004266bc
test eax, eax
je 0x403bf9
push 0x5c
pop eax
mov word [ebx + 0xc32], ax
cmp word [ebx + 0xc30], 0
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
jne 0x403ce7
push str.USBVID_
lea eax, [ebx + 0xe38]
push eax
call edi
test eax, eax
je 0x403ce7
mov esi, 0x44dbd4
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.00442d2f
add esp, 0xc
lea eax, [ebx + 0xe38]
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.00426d4d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44dbd0
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 + 0xc30]
push eax
push str.SymbolicLink
lea eax, [ebp - 0xc64]
push eax
push 0x80000002
call fcn.004266bc
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x403ce7
push 0x5c
pop eax
mov word [ebx + 0xc32], ax
push 0x44dce8
lea eax, [ebx + 0x1e12]
push eax
call edi
lea esi, [ebx + 0xc30]
cmp word [esi], 0
jne 0x403d27
mov eax, dword [ebx + 0x39e8]
test eax, eax
je 0x403d15
cmp eax, 0x15
je 0x403d15
cmp eax, 0x2f
jne 0x403d27
mov eax, dword [ebx + 0x830]
test eax, eax
je 0x403d27
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x403dbb
push 0x104
lea eax, [ebx + 0x10a8]
push eax
lea eax, [ebx + 0xc38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x403dbb
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 0x403d79
xor ecx, ecx
mov word [eax], cx
push 0x104
lea eax, [ebx + 0x10a8]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x403dad
push esi
push str.devpath_invalid:__s
push 3
call fcn.004487a4
add esp, 0xc
xor eax, eax
mov word [esi], ax
jmp 0x403dbb
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.6AC27878_A6FA_4155_BA85_F98F491D4F33
push esi
call edi
test eax, eax
jne 0x403e9a
push str.eec5ad98_8080_425f_922a_dabf3de3f69a
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
jne 0x403e9a
push str.53f56307_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403e79
push str.7fccc86c_228a_40ad_8a58_f590af7bfdce
push esi
call edi
test eax, eax
jne 0x403e79
push str.4d36e967_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
jne 0x403e79
push str.53f56308_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403e5e
push str.4d36e965_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
jne 0x403e5e
push str.53f56311_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403e52
push str.4d36e980_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
je 0x403ea1
mov dword [ebx + 0x3a28], 3
jmp 0x403e68
mov dword [ebx + 0x3a28], 2
xor esi, esi
inc esi
mov dword [ebx + 0x3a30], esi
mov dword [ebx + 0x3a2c], esi
jmp 0x403ea4
xor esi, esi
lea eax, [ebx + 0xc30]
inc esi
push eax
mov dword [ebx + 0x3a28], esi
call fcn.004477d4
test eax, eax
jne 0x403ea4
mov dword [ebx + 0x3a30], esi
jmp 0x403ea4
and dword [ebx + 0x3a28], 0
xor esi, esi
inc esi
cmp dword [ebx + 0x3a2c], 0
jne 0x403ed5
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
jne 0x403ed5
push str.7f108a28_9833_4b3b_b780_2c6b5fa5c062
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
je 0x403f79
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x3a2c], esi
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x403f21
push dword [ebx + 0x10]
call fcn.00405d8e
mov dword [ebx + 0x3a78], eax
test eax, eax
jne 0x403f21
push dword [ebx + 0x10]
lea eax, [ebx + 0xc30]
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
call fcn.0040691f
cmp eax, 0xffffffff
je 0x403f21
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
mov eax, dword [ecx + eax*4 + 4]
mov dword [ebx + 0x3a78], eax
cmp word [ebx + 0x10a8], 0
je 0x403f79
push str.disk
lea eax, [ebx + 0x10a8]
push eax
call edi
test eax, eax
je 0x403f45
mov dword [ebx + 0x3a28], esi
jmp 0x403f79
push 0x44d73c
lea esi, [ebx + 0x10a8]
push esi
call edi
test eax, eax
je 0x403f63
mov dword [ebx + 0x3a28], 2
jmp 0x403f79
push 0x44d72c
push esi
call edi
test eax, eax
je 0x403f79
mov dword [ebx + 0x3a28], 3
cmp dword [ebx + 0x3a28], 0
je 0x40411f
cmp word [ebx + 0xc30], 0
je 0x4041d7
cmp dword [ebx + 0x3a30], 0
je 0x404058
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp dword [eax + 4], esi
jne 0x404008
push str.USBSTORDiskVen_
lea eax, [ebx + 0xc30]
push eax
call fcn.00426e06
test eax, eax
je 0x404008
push 0x1fc
lea eax, [ebp - 0x258]
push esi
push eax
mov dword [ebp - 0x25c], esi
call fcn.00442d2f
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [0x5034fc]
push dword [ebx + 0x10]
mov ecx, dword [eax + 8]
call fcn.00405f34
test eax, eax
je 0x404008
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax + 0x840]
mov dword [ebx + 0x3a24], eax
lea esi, [ebx + 0x3a24]
cmp dword [esi], 0xffffffff
jne 0x404021
lea eax, [ebx + 0xc30]
push eax
call fcn.0042b755
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x404058
push eax
mov eax, dword [ebx + 0x3a28]
push dword [eax*4 + 0x498018]
lea esi, [ebx + 0x1088]
push str._S_i
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
push str.drive_s
push 1
call fcn.004487a4
add esp, 0x1c
cmp dword [ebx + 0x3a2c], 0
je 0x40411f
mov eax, dword [ebx + 0x3a78]
test eax, eax
je 0x40411f
lea ecx, [eax + 0x844]
push ecx
lea esi, [ebx + 0x3a24]
push esi
add eax, 0x428
push eax
call fcn.0042b55b
test eax, eax
jne 0x4040bd
mov eax, dword [ebx + 0x3a78]
lea ecx, [eax + 0x844]
push ecx
add eax, 0x840
push eax
lea eax, [ebx + 0xc30]
push eax
call fcn.004261a2
mov eax, dword [ebx + 0x3a78]
mov eax, dword [eax + 0x840]
mov dword [esi], eax
cmp dword [ebx + 0x3a28], 1
jne 0x40411f
mov edx, dword [ebp - 0xc]
and dword [ebp - 0x14], 0
cmp dword [edx + 0x400c], 0
jle 0x40411f
lea eax, [edx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
test eax, eax
je 0x40410d
cmp dword [eax], 1
jne 0x40410d
cmp dword [eax + 0x3a28], 0
je 0x40410d
cmp dword [eax + 0x3a2c], 0
jne 0x40410d
mov ecx, dword [eax + 0x3a24]
test ecx, ecx
jl 0x40410d
cmp ecx, dword [esi]
jne 0x40410d
mov dword [ebx + 0x28], eax
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 4
cmp eax, dword [edx + 0x400c]
jl 0x4040dc
cmp word [ebx + 0xc30], 0
je 0x4041d7
cmp dword [ebx + 0x3a84], 0
jne 0x4041d7
mov esi, 0x44dce8
push esi
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x40415f
push str.pci
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
jne 0x4041bb
push str.root
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
je 0x404183
push 0x44d6d0
lea eax, [ebx + 0x1f70]
push eax
call edi
test eax, eax
jne 0x4041bb
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x44dd00
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x4041bb
push 0x44dcf0
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x4041bb
push esi
lea eax, [ebx + 0x1d92]
push eax
call edi
test eax, eax
jne 0x4041d7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4020]
neg eax
sbb eax, eax
push 0x2710
and eax, 0x64
push eax
push ebx
call fcn.0040321b
pop edi
pop esi
pop ebx
leave
ret 4