Function at 0x4035ec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1078
cmp dword [0x51adac], 4
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
jl 0x40361e
lea eax, [ebx + 0xe38]
push eax
push dword [ebx + 0x10]
push str.CDevList::PutDevProperties__u_...___s
push 4
call fcn.0044fe2e
add esp, 0x10
push esi
push edi
mov edi, dword [ebx + 0x10]
push 0
lea eax, [ebx + 0xe38]
push 0xc8
push eax
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], eax
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 + 0x3a74]
push eax
lea eax, [ebx + 0x3a70]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40368f
mov dword [ebx + 8], 1
mov eax, dword [ebx + 0x14]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrW]
xor esi, esi
cmp eax, esi
je 0x403734
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00401c56
mov dword [ebx + 0x28], eax
cmp eax, esi
je 0x4036f2
push str.ROOTVOLMGR_
add eax, 0xe38
push eax
call fcn.0042958c
test eax, eax
je 0x4036f2
mov eax, dword [ebx + 0x3b84]
cmp eax, esi
je 0x4036f2
push dword [eax + 0x83c]
mov ecx, dword [ebp - 0x14]
push dword [eax + 0x840]
call fcn.00401ecd
mov dword [ebx + 0x28], eax
cmp eax, esi
jne 0x4036f2
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x28], esi
jne 0x403740
push str.PCIVEN
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x403734
push str.USBROOT
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x403734
push str.STORAGEVOLUME
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x403734
push dword [ebx + 0x14]
mov ecx, dword [ebp - 0x14]
push 0x4551b0
call fcn.004046f4
mov dword [ebx + 0x28], eax
cmp dword [ebx + 0x28], esi
jne 0x403740
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x3b84], esi
je 0x403764
mov eax, dword [ebx + 0x28]
cmp eax, esi
je 0x403773
add eax, 0x1b38
push eax
lea eax, [ebx + 0x1b38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x403773
lea eax, [ebx + 0x1b38]
push eax
push dword [ebx + 0x10]
call fcn.0044f265
cmp dword [ebp - 8], 0xd
jne 0x403783
mov dword [ebx + 0x3a74], 0x2d
mov esi, dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Registry_PropertyW]
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x1cb8]
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 + 0x1d12]
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 + 0x1738]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xd
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
push 0x4554d8
lea eax, [ebx + 0x1738]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
lea eax, [ebx + 0x1738]
push eax
call fcn.004288f4
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x1838]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
push 0x4554d8
lea eax, [ebx + 0x1838]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x217c]
push eax
lea eax, [ebp - 0xc]
push eax
push 2
push dword [ebp - 4]
mov dword [ebp + 8], 0x5fe
call esi
lea ecx, [ebx + 0x217c]
push ecx
push dword [ebp + 8]
push eax
push str.CM_DRP_HARDWAREID_cret_u_uLen_u_s_s
push 3
call fcn.0044fe2e
add esp, 0x14
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0x7f
lea eax, [ebx + 0x1e92]
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 + 0x1ff0]
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 + 0x2074]
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 + 0x1bb8]
push edi
lea eax, [ebp - 0xc]
push eax
push 0xe
push dword [ebp - 4]
call esi
cmp dword [0x50e048], 5
jne 0x4038fb
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
call fcn.00410e53
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x2b7c]
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 + 0x1e12]
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 + 0x1f12]
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 0x40398f
cmp word [ebx + 0x1f12], ax
je 0x40398f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebx + 0x1f12]
push eax
call fcn.0043065e
test eax, eax
je 0x40398f
lea eax, [ebp - 0x38]
push eax
call fcn.0044cf81
push eax
lea eax, [ebx + 0x1f6c]
push eax
call fcn.0042fd0e
mov ecx, dword [0x510c48]
call fcn.004476c9
and dword [ebp - 0x868], 0
push 0x1fc
lea eax, [ebp - 0x864]
push 0
push eax
call fcn.00449c78
and dword [ebp - 0x260], 0
push 0x1fc
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.00449c78
mov ecx, dword [0x510c48]
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebx + 0x1d12]
push eax
call fcn.004475bc
mov dword [ebp - 8], eax
test eax, eax
jne 0x403a26
mov ecx, dword [0x510c48]
call fcn.0044780f
mov ecx, dword [0x510c48]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebx + 0x1d12]
push eax
call fcn.004475bc
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x403a7a
lea eax, [ebx + 0xa30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x868]
call fcn.0042bff0
mov ecx, dword [ebp - 0x10]
mov dword [ecx - 0x200], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x868]
call fcn.004134fb
push eax
call fcn.0042bff0
mov ecx, dword [ebp - 0x10]
inc dword [ebp - 4]
add dword [ebp - 0x10], 4
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x403a39
lea ecx, [ebx + 0x1d12]
lea eax, [ebx + 0x10a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [0x510c48]
call fcn.004476d1
push str.USBSTOR
lea eax, [ebx + 0x1ff0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x403ac5
push str.UASPStor
lea eax, [ebx + 0x1ff0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x403acf
mov dword [ebx + 0x3ac0], 1
cmp dword [0x51adac], 4
jl 0x403b26
lea eax, [ebx + 0x1e12]
push eax
lea eax, [ebx + 0x2b7c]
push eax
push edi
lea eax, [ebx + 0x1ff0]
push eax
lea eax, [ebx + 0x1f12]
push eax
lea eax, [ebx + 0x1e92]
push eax
lea eax, [ebx + 0x1838]
push eax
lea eax, [ebx + 0x1738]
push eax
lea eax, [ebx + 0x1cb8]
push eax
push dword [ebp - 0x18]
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.0044fe2e
add esp, 0x34
xor eax, eax
lea edi, [ebx + 0x1938]
mov word [edi], ax
lea eax, [ebx + 0x1638]
cmp word [eax], 0
jne 0x403b49
lea eax, [ebx + 0x1738]
cmp word [eax], 0
je 0x403b51
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 0x1838]
cmp word [eax], 0
je 0x403b9d
cmp word [edi], 0
push eax
push edi
je 0x403b97
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x403b9d
push 0x455ef0
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 0x455eec
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x403b9d
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebx + 0x3a74], 0
jne 0x403c5e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push str.FloppyDisk
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
je 0x403be6
push 0x455ec8
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
je 0x403be6
push 0x455eb8
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
jne 0x403c2c
and dword [ebp - 0x60], 0
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebx + 0x1f12]
push eax
call fcn.0044e521
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
jle 0x403c2c
lea eax, [ebx + 0xc30]
push eax
push 2
push dword [ebp + edi*4 - 0x60]
push dword [ebx + 0x10]
call fcn.0044e456
test eax, eax
jne 0x403c2c
inc edi
cmp edi, dword [ebp - 8]
jl 0x403c0d
push 0x455eb0
lea eax, [ebx + 0x1e92]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x403c5e
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebx + 0x3a78]
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 - 0x14]
call fcn.00401c56
mov dword [ebx + 0x28], eax
test eax, eax
je 0x403ca5
push str.ROOTVOLMGR_
add eax, 0xe38
push eax
call fcn.0042958c
test eax, eax
je 0x403ca5
mov eax, dword [ebx + 0x3b84]
test eax, eax
je 0x403ca5
push dword [eax + 0x83c]
mov ecx, dword [ebp - 0x14]
push dword [eax + 0x840]
call fcn.00401ecd
mov dword [ebx + 0x28], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x668], ax
lea eax, [ebp - 0x666]
push eax
call fcn.00449c78
push 0x14
pop ecx
push 0x3b0
lea eax, [ebp - 0xc18]
push 0
mov esi, str.SYSTEMCurrentControlSetControlClass_
lea edi, [ebp - 0xc68]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00449c78
add esp, 0x18
lea eax, [ebx + 0x1cb8]
push eax
lea eax, [ebp - 0xc68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x104
lea eax, [ebp - 0x668]
push eax
push str.InfPath
lea eax, [ebp - 0xc68]
push eax
push 0x80000002
call fcn.00428e72
test eax, eax
je 0x403d5d
push 0x5c
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
lea eax, [ebp - 0x668]
push eax
lea eax, [ebx + 0x3680]
je 0x403d49
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x403d5d
push 0x50e170
push str._sinf_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0xf
lea esi, [ebx + 0x337c]
push esi
lea eax, [ebx + 0x217c]
push eax
call fcn.00428b66
push 7
lea eax, [ebx + 0x343c]
push eax
lea eax, [ebx + 0x2b7c]
push eax
call fcn.00428b66
push 0x1c
lea eax, [ebx + 0x345c]
push 0
push eax
call fcn.00449c78
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrW]
add esp, 0xc
push str.VID_0000PID_
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x403e3f
cmp dword [esi], eax
je 0x403e3f
mov dword [ebp - 8], esi
push 0x455e30
push dword [esi]
call edi
push 0x454c5c
push dword [esi]
mov dword [ebp - 0x10], eax
call edi
push str.REV_
push dword [esi]
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 0x10], 0
mov esi, eax
je 0x403df0
cmp dword [ebp - 4], 0
je 0x403df0
test esi, esi
jne 0x403e00
mov esi, dword [ebp - 8]
add esi, 4
cmp dword [esi], 0
mov dword [ebp - 8], esi
jne 0x403dbd
jmp 0x403e3f
mov eax, dword [ebp - 0x10]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x345c]
push eax
call fcn.00449ce2
mov eax, dword [ebp - 4]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x3464]
push eax
call fcn.00449ce2
push 8
add esi, 0xa
lea eax, [ebx + 0x346c]
push esi
push eax
call fcn.00449ce2
add esp, 0x24
and dword [ebp - 0x28], 0
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebx + 0x1f12]
push eax
call fcn.00430772
push 0x10
lea eax, [ebp - 0x28]
push 0x47e048
push eax
call fcn.00449c35
add esp, 0xc
mov esi, 0x455538
test eax, eax
je 0x403e92
push 0x10
lea eax, [ebp - 0x28]
push 0x454490
push eax
call fcn.00449c35
add esp, 0xc
test eax, eax
jne 0x403f24
push str.Device_Parameters
push dword [ebp - 0x18]
lea eax, [ebp - 0x460]
push str.SystemCurrentControlSetEnum
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 - 0x460]
push eax
mov edi, 0x80000002
push edi
call fcn.00428e72
test eax, eax
je 0x403f29
push 0x208
lea eax, [ebp - 0x1078]
push eax
lea eax, [ebx + 0xfc8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x403f29
lea ecx, [ebp - 0x1078]
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.0044fe2e
add esp, 0x10
jmp 0x403f29
mov edi, 0x80000002
cmp word [ebx + 0xc30], 0
jne 0x403fa7
push str.Device_Parameters
push dword [ebp - 0x18]
lea eax, [ebp - 0xc68]
push str.SystemCurrentControlSetEnum
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 - 0xc68]
push eax
push edi
call fcn.00428e72
test eax, eax
jne 0x403f95
push 0x104
lea eax, [ebx + 0xc30]
push eax
push str.SymbolicLinkName
lea eax, [ebp - 0xc68]
push eax
push edi
call fcn.00428e72
test eax, eax
je 0x403f9f
push 0x5c
pop eax
mov word [ebx + 0xc32], ax
cmp word [ebx + 0xc30], 0
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
jne 0x404085
push str.USBVID_
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x404085
mov esi, 0x455dbc
lea edi, [ebp - 0x460]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3f6
lea eax, [ebp - 0x456]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00449c78
add esp, 0xc
push dword [ebp - 0x18]
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x23
push 0x5c
lea eax, [ebp - 0x460]
push eax
call fcn.0042a197
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x455db8
lea eax, [ebp - 0x460]
push eax
call edi
mov esi, str.a5dcbf10_6530_11d2_901f_00c04fb951ed
push esi
lea eax, [ebp - 0x460]
push eax
call edi
lea eax, [ebp - 0x460]
push eax
push esi
push str.SystemCurrentControlSetControlDeviceClasses
lea eax, [ebp - 0xc68]
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 - 0xc68]
push eax
push 0x80000002
call fcn.00428e72
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x404085
push 0x5c
pop eax
mov word [ebx + 0xc32], ax
push 0x455eb0
lea eax, [ebx + 0x1e92]
push eax
call edi
lea esi, [ebx + 0xc30]
cmp word [esi], 0
jne 0x4040c5
mov eax, dword [ebx + 0x3a74]
test eax, eax
je 0x4040b3
cmp eax, 0x15
je 0x4040b3
cmp eax, 0x2f
jne 0x4040c5
mov eax, dword [ebx + 0x830]
test eax, eax
je 0x4040c5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x404159
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 0x404159
push esi
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.global
lea eax, [ebp - 0x268]
push eax
call edi
test eax, eax
je 0x404117
xor ecx, ecx
mov word [eax], cx
push 0x104
lea eax, [ebx + 0x10a8]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x40414b
push esi
push str.devpath_invalid:__s
push 3
call fcn.0044fe2e
add esp, 0xc
xor eax, eax
mov word [esi], ax
jmp 0x404159
lea eax, [ebp - 0x268]
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 0x404238
push str.eec5ad98_8080_425f_922a_dabf3de3f69a
lea eax, [ebx + 0x1f12]
push eax
call edi
test eax, eax
jne 0x404238
push str.53f56307_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x404217
push str.7fccc86c_228a_40ad_8a58_f590af7bfdce
push esi
call edi
test eax, eax
jne 0x404217
push str.4d36e967_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1f12]
push eax
call edi
test eax, eax
jne 0x404217
push str.53f56308_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x4041fc
push str.4d36e965_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1f12]
push eax
call edi
test eax, eax
jne 0x4041fc
push str.53f56311_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x4041f0
push str.4d36e980_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1f12]
push eax
call edi
test eax, eax
je 0x40423f
mov dword [ebx + 0x3ab4], 3
jmp 0x404206
mov dword [ebx + 0x3ab4], 2
xor esi, esi
inc esi
mov dword [ebx + 0x3abc], esi
mov dword [ebx + 0x3ab8], esi
jmp 0x404242
xor esi, esi
lea eax, [ebx + 0xc30]
inc esi
push eax
mov dword [ebx + 0x3ab4], esi
call fcn.0044eaa6
test eax, eax
jne 0x404242
mov dword [ebx + 0x3abc], esi
jmp 0x404242
and dword [ebx + 0x3ab4], 0
xor esi, esi
inc esi
cmp dword [ebx + 0x3ab8], 0
jne 0x404273
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
jne 0x404273
push str.7f108a28_9833_4b3b_b780_2c6b5fa5c062
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
je 0x404308
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x3ab8], esi
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4042b0
push dword [ebx + 0x10]
call fcn.0040635d
mov dword [ebx + 0x3b84], eax
test eax, eax
jne 0x4042b0
push dword [ebx + 0x10]
lea eax, [ebx + 0xc30]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
call fcn.004071fa
mov dword [ebx + 0x3b84], eax
cmp word [ebx + 0x10a8], 0
je 0x404308
push str.disk
lea eax, [ebx + 0x10a8]
push eax
call edi
test eax, eax
je 0x4042d4
mov dword [ebx + 0x3ab4], esi
jmp 0x404308
push 0x455928
lea esi, [ebx + 0x10a8]
push esi
call edi
test eax, eax
je 0x4042f2
mov dword [ebx + 0x3ab4], 2
jmp 0x404308
push 0x455918
push esi
call edi
test eax, eax
je 0x404308
mov dword [ebx + 0x3ab4], 3
cmp dword [ebx + 0x3ab4], 0
je 0x4044ae
cmp word [ebx + 0xc30], 0
je 0x40456e
cmp dword [ebx + 0x3abc], 0
je 0x4043e7
mov eax, dword [ebp - 0x14]
xor esi, esi
cmp dword [eax + 4], esi
jne 0x404397
push str.USBSTORDiskVen_
lea eax, [ebx + 0xc30]
push eax
call fcn.0042958c
test eax, eax
je 0x404397
push 0x1fc
lea eax, [ebp - 0x25c]
push esi
push eax
mov dword [ebp - 0x260], esi
call fcn.00449c78
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov eax, dword [0x510c44]
push dword [ebx + 0x10]
mov ecx, dword [eax + 8]
call fcn.00406523
test eax, eax
je 0x404397
mov eax, dword [ebp - 0x260]
mov eax, dword [eax + 0x840]
mov dword [ebx + 0x3ab0], eax
lea esi, [ebx + 0x3ab0]
cmp dword [esi], 0xffffffff
jne 0x4043b0
lea eax, [ebx + 0xc30]
push eax
call fcn.0042f5de
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4043e7
push eax
mov eax, dword [ebx + 0x3ab4]
push dword [eax*4 + 0x4a5018]
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.0044fe2e
add esp, 0x1c
cmp dword [ebx + 0x3ab8], 0
je 0x4044ae
mov eax, dword [ebx + 0x3b84]
test eax, eax
je 0x4044ae
lea ecx, [eax + 0x844]
push ecx
lea esi, [ebx + 0x3ab0]
push esi
add eax, 0x428
push eax
call fcn.0042f3e4
test eax, eax
jne 0x40444c
mov eax, dword [ebx + 0x3b84]
lea ecx, [eax + 0x844]
push ecx
add eax, 0x840
push eax
lea eax, [ebx + 0xc30]
push eax
call fcn.00428958
mov eax, dword [ebx + 0x3b84]
mov eax, dword [eax + 0x840]
mov dword [esi], eax
cmp dword [ebx + 0x3ab4], 1
jne 0x4044ae
mov edx, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
cmp dword [edx + 0x400c], 0
jle 0x4044ae
lea eax, [edx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
test eax, eax
je 0x40449c
cmp dword [eax], 1
jne 0x40449c
cmp dword [eax + 0x3ab4], 0
je 0x40449c
cmp dword [eax + 0x3ab8], 0
jne 0x40449c
mov ecx, dword [eax + 0x3ab0]
test ecx, ecx
jl 0x40449c
cmp ecx, dword [esi]
jne 0x40449c
mov dword [ebx + 0x28], eax
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], 4
cmp eax, dword [edx + 0x400c]
jl 0x40446b
cmp word [ebx + 0xc30], 0
je 0x40456e
cmp dword [ebx + 0x3b90], 0
jne 0x404566
mov esi, 0x455eb0
push esi
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
je 0x4044ee
push str.pci
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
jne 0x40454a
push str.root
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
je 0x404512
push 0x4558bc
lea eax, [ebx + 0x1ff0]
push eax
call edi
test eax, eax
jne 0x40454a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x455ec8
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
je 0x40454a
push 0x455eb8
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
je 0x40454a
push esi
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
jne 0x404566
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x4020]
neg eax
sbb eax, eax
push 0x2710
and eax, 0x64
push eax
push ebx
call fcn.00403583
cmp word [ebx + 0xc30], 0
pop edi
pop esi
jne 0x404587
add ebx, 0x3b94
cmp dword [ebx], 0
jne 0x404587
push dword [ebp - 0x18]
call fcn.0044efb6
mov dword [ebx], eax
pop ebx
leave
ret 4