Function at 0x403297
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1074
cmp dword [0x506bac], 4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], ecx
jl 0x4032cb
lea eax, [ebx + 0xe34]
push eax
push dword [ebx + 0x10]
push str.CDevList::PutDevProperties__u_...___s
push 4
call fcn.004453fb
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 0x403337
mov dword [ebx + 8], 1
mov eax, dword [ebx + 0x14]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x40339d
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00401ad7
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x40339d
push str.PCIVEN
lea eax, [ebx + 0xe34]
push eax
call edi
test eax, eax
jne 0x40339d
push str.USBROOT
lea eax, [ebx + 0xe34]
push eax
call edi
test eax, eax
jne 0x40339d
push str.STORAGEVOLUME
lea eax, [ebx + 0xe34]
push eax
call edi
test eax, eax
jne 0x40339d
push dword [ebx + 0x14]
mov ecx, dword [ebp - 0x10]
push 0x449d34
call fcn.004042cc
mov dword [ebx + 0x24], eax
cmp dword [ebp - 8], 0xd
jne 0x4033a9
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 0x44a040
lea eax, [ebx + 0x1734]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
lea eax, [ebx + 0x1734]
push eax
call fcn.004247d3
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 0x44a040
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.004453fb
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 [0x4f9b48], 5
jne 0x403521
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
call fcn.0040deda
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 0x4035b5
cmp word [ebx + 0x1e8e], ax
je 0x4035b5
lea eax, [ebp - 0x34]
push eax
lea eax, [ebx + 0x1e8e]
push eax
call fcn.0042a754
test eax, eax
je 0x4035b5
lea eax, [ebp - 0x34]
push eax
call fcn.00443023
push eax
lea eax, [ebx + 0x1ee8]
push eax
call fcn.0042a00c
mov ecx, dword [0x4fc548]
call fcn.0043ce15
and dword [ebp - 0x864], 0
push 0x1fc
lea eax, [ebp - 0x860]
push 0
push eax
call fcn.0043f481
and dword [ebp - 0x25c], 0
push 0x1fc
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.0043f481
mov ecx, dword [0x4fc548]
add esp, 0x18
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x864]
push eax
lea eax, [ebx + 0x1c8e]
push eax
call fcn.0043cd08
mov dword [ebp - 8], eax
test eax, eax
jne 0x40364c
mov ecx, dword [0x4fc548]
call fcn.0043cf5b
mov ecx, dword [0x4fc548]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x864]
push eax
lea eax, [ebx + 0x1c8e]
push eax
call fcn.0043cd08
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x4036a0
lea eax, [ebx + 0xa2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x864]
call fcn.00427118
mov ecx, dword [ebp - 0x14]
mov dword [ecx - 0x200], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x864]
call fcn.00410512
push eax
call fcn.00427118
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 0x40365f
lea ecx, [ebx + 0x1c8e]
lea eax, [ebx + 0x10a4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [0x4fc548]
call fcn.0043ce1d
push str.USBSTOR
lea eax, [ebx + 0x1f6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4036eb
push str.UASPStor
lea eax, [ebx + 0x1f6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4036f5
mov dword [ebx + 0x3a30], 1
cmp dword [0x506bac], 4
jl 0x403750
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.004453fb
add esp, 0x34
xor eax, eax
lea edi, [ebx + 0x1934]
mov word [edi], ax
lea eax, [ebx + 0x1634]
cmp word [eax], 0
jne 0x403773
lea eax, [ebx + 0x1734]
cmp word [eax], 0
je 0x40377b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 0x1834]
cmp word [eax], 0
je 0x4037c7
cmp word [edi], 0
push eax
push edi
je 0x4037c1
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x4037c7
push 0x44a910
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 0x44a90c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x4037c7
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebx + 0x39e4], 0
jne 0x403888
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x44a8f4
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
je 0x403810
push 0x44a8e8
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
je 0x403810
push 0x44a8d8
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
jne 0x403856
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.004443f2
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
jle 0x403856
lea eax, [ebx + 0xc2c]
push eax
push 2
push dword [ebp + edi*4 - 0x5c]
push dword [ebx + 0x10]
call fcn.00444327
test eax, eax
jne 0x403856
inc edi
cmp edi, dword [ebp - 8]
jl 0x403837
push 0x44a8d0
lea eax, [ebx + 0x1e0e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x403888
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.00401ad7
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.0043f481
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.0043f481
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.00424d51
test eax, eax
je 0x40394e
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 0x40393a
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x40394e
push 0x4f9c70
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.00424a45
push 7
lea eax, [ebx + 0x33b8]
push eax
lea eax, [ebx + 0x2af8]
push eax
call fcn.00424a45
push 0x1c
lea eax, [ebx + 0x33d8]
push 0
push eax
call fcn.0043f481
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 0x403a34
cmp dword [esi], eax
je 0x403a34
mov dword [ebp - 8], esi
push 0x44a830
push dword [esi]
call edi
push 0x44a824
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 0x4039e5
cmp dword [ebp - 4], 0
je 0x4039e5
test esi, esi
jne 0x4039f5
mov esi, dword [ebp - 8]
add esi, 4
cmp dword [esi], 0
mov dword [ebp - 8], esi
jne 0x4039b2
jmp 0x403a34
mov eax, dword [ebp - 0x14]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x33d8]
push eax
call fcn.0043f4eb
mov eax, dword [ebp - 4]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x33e0]
push eax
call fcn.0043f4eb
push 8
add esi, 0xa
lea eax, [ebx + 0x33e8]
push esi
push eax
call fcn.0043f4eb
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.0042a868
push 0x10
lea eax, [ebp - 0x24]
push 0x44957c
push eax
call fcn.0043f43e
add esp, 0xc
mov esi, 0x44a08c
test eax, eax
je 0x403a87
push 0x10
lea eax, [ebp - 0x24]
push 0x4494ac
push eax
call fcn.0043f43e
add esp, 0xc
test eax, eax
jne 0x403b1d
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.00424d51
test eax, eax
je 0x403b22
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 0x403b22
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.004453fb
add esp, 0x10
jmp 0x403b22
mov edi, 0x80000002
cmp word [ebx + 0xc2c], 0
jne 0x403ba4
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.00424d51
test eax, eax
jne 0x403b92
push 0x104
lea eax, [ebx + 0xc2c]
push eax
push str.SymbolicLinkName
lea eax, [ebp - 0xc64]
push eax
push edi
call fcn.00424d51
test eax, eax
je 0x403b9c
push 0x5c
pop eax
mov word [ebx + 0xc2e], ax
cmp word [ebx + 0xc2c], 0
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
jne 0x403c8a
push str.USBVID_
lea eax, [ebx + 0xe34]
push eax
call edi
test eax, eax
je 0x403c8a
mov esi, 0x44a79c
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.0043f481
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.004253e2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44a798
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.00424d51
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x403c8a
push 0x5c
pop eax
mov word [ebx + 0xc2e], ax
push 0x44a8d0
lea eax, [ebx + 0x1e0e]
push eax
call edi
lea esi, [ebx + 0xc2c]
cmp word [esi], 0
jne 0x403cca
mov eax, dword [ebx + 0x39e4]
test eax, eax
je 0x403cb8
cmp eax, 0x15
je 0x403cb8
cmp eax, 0x2f
jne 0x403cca
mov eax, dword [ebx + 0x82c]
test eax, eax
je 0x403cca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x403d5e
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 0x403d5e
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 0x403d1c
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 0x403d50
push esi
push str.devpath_invalid:__s
push 3
call fcn.004453fb
add esp, 0xc
xor eax, eax
mov word [esi], ax
jmp 0x403d5e
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 0x403df6
push str.7fccc86c_228a_40ad_8a58_f590af7bfdce
push esi
call edi
test eax, eax
jne 0x403df6
push str.4d36e967_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e8e]
push eax
call edi
test eax, eax
jne 0x403df6
push str.53f56308_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403ddb
push str.4d36e965_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e8e]
push eax
call edi
test eax, eax
jne 0x403ddb
push str.53f56311_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403dcf
push str.4d36e980_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e8e]
push eax
call edi
test eax, eax
je 0x403e14
mov dword [ebx + 0x3a24], 3
jmp 0x403de5
mov dword [ebx + 0x3a24], 2
xor eax, eax
inc eax
mov dword [ebx + 0x3a2c], eax
mov dword [ebx + 0x3a28], eax
jmp 0x403e14
push esi
mov dword [ebx + 0x3a24], 1
call fcn.004449d7
test eax, eax
jne 0x403e14
mov dword [ebx + 0x3a2c], 1
cmp dword [ebx + 0x3a28], 0
jne 0x403e39
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403e39
push str.7f108a28_9833_4b3b_b780_2c6b5fa5c062
push esi
call edi
test eax, eax
je 0x403ed5
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x3a28], 1
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x403e83
push dword [ebx + 0x10]
call fcn.00405939
mov dword [ebx + 0x3a74], eax
test eax, eax
jne 0x403e83
push dword [ebx + 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push esi
call fcn.004064bf
cmp eax, 0xffffffff
je 0x403e83
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 0x403ed5
push str.disk
push esi
call edi
test eax, eax
je 0x403ea7
mov dword [ebx + 0x3a24], 1
jmp 0x403ed5
push 0x44a3a8
push esi
call edi
test eax, eax
je 0x403ebf
mov dword [ebx + 0x3a24], 2
jmp 0x403ed5
push 0x44a398
push esi
call edi
test eax, eax
je 0x403ed5
mov dword [ebx + 0x3a24], 3
xor esi, esi
cmp dword [ebx + 0x3a24], esi
je 0x404070
lea eax, [ebx + 0xc2c]
cmp word [eax], si
je 0x404070
cmp dword [ebx + 0x3a2c], esi
je 0x403fad
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 4], esi
jne 0x403f5d
push str.USBSTORDiskVen_
push eax
call fcn.0042549b
test eax, eax
je 0x403f5d
push 0x1fc
lea eax, [ebp - 0x258]
push esi
push eax
mov dword [ebp - 0x25c], esi
call fcn.0043f481
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [0x4fc544]
push dword [ebx + 0x10]
mov ecx, dword [eax + 8]
call fcn.00405ad6
test eax, eax
je 0x403f5d
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax + 0x840]
mov dword [ebx + 0x3a20], eax
lea esi, [ebx + 0x3a20]
cmp dword [esi], 0xffffffff
jne 0x403f76
lea eax, [ebx + 0xc2c]
push eax
call fcn.00429c05
mov dword [esi], eax
push dword [esi]
mov ecx, dword [ebx + 0x3a24]
push dword [ecx*4 + 0x492018]
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.004453fb
add esp, 0x1c
cmp dword [ebx + 0x3a28], 0
je 0x404070
mov eax, dword [ebx + 0x3a74]
test eax, eax
je 0x404070
lea ecx, [eax + 0x844]
push ecx
lea esi, [ebx + 0x3a20]
push esi
add eax, 0x428
push eax
call fcn.00429a0b
test eax, eax
jne 0x404012
mov eax, dword [ebx + 0x3a74]
lea ecx, [eax + 0x844]
push ecx
add eax, 0x840
push eax
lea eax, [ebx + 0xc2c]
push eax
call fcn.00424837
mov eax, dword [ebx + 0x3a74]
mov eax, dword [eax + 0x840]
mov dword [esi], eax
cmp dword [ebx + 0x3a24], 1
jne 0x404070
mov edx, dword [ebp - 0x10]
and dword [ebp - 8], 0
cmp dword [edx + 0x400c], 0
jle 0x404070
add edx, 0xc
mov eax, dword [edx]
test eax, eax
je 0x40405c
cmp dword [eax], 1
jne 0x40405c
cmp dword [eax + 0x3a24], 0
je 0x40405c
cmp dword [eax + 0x3a28], 0
jne 0x40405c
mov ecx, dword [eax + 0x3a20]
test ecx, ecx
jl 0x40405c
cmp ecx, dword [esi]
jne 0x40405c
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 0x40402e
lea esi, [ebx + 0xc2c]
cmp word [esi], 0
je 0x40411b
cmp dword [ebx + 0x3a80], 0
jne 0x40411b
push 0x44a8d0
lea eax, [ebx + 0x1e0e]
push eax
call edi
test eax, eax
je 0x4040ab
push str.pci
push esi
call edi
test eax, eax
jne 0x4040ff
push str.root
push esi
call edi
test eax, eax
je 0x4040c9
push 0x44a33c
lea eax, [ebx + 0x1f6c]
push eax
call edi
test eax, eax
jne 0x4040ff
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x44a8e8
lea esi, [ebx + 0x1e0e]
push esi
call edi
test eax, eax
je 0x4040ff
push 0x44a8d8
push esi
call edi
test eax, eax
je 0x4040ff
push 0x44a8d0
lea eax, [ebx + 0x1d8e]
push eax
call edi
test eax, eax
jne 0x40411b
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.004031ec
pop edi
pop esi
pop ebx
leave
ret 4