Function at 0x40348f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1078
cmp dword [0x5168ac], 4
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
jl 0x4034c1
lea eax, [ebx + 0xe38]
push eax
push dword [ebx + 0x10]
push str.CDevList::PutDevProperties__u_...___s
push 4
call fcn.0044d31e
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 esi, [ebx + 0x39f4]
push esi
lea eax, [ebx + 0x39f0]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
mov dword [ebp - 8], eax
test eax, eax
jne 0x403532
mov dword [ebx + 8], 1
mov eax, dword [ebx + 0x14]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x4035cb
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00401afc
mov dword [ebx + 0x28], eax
test eax, eax
je 0x403588
push str.ROOTVOLMGR_
add eax, 0xe38
push eax
call fcn.00428778
test eax, eax
je 0x403588
mov eax, dword [ebx + 0x3b04]
test eax, eax
je 0x403588
push dword [eax + 0x83c]
mov ecx, dword [ebp - 0x14]
push dword [eax + 0x840]
call fcn.00401d6a
mov dword [ebx + 0x28], eax
cmp dword [ebx + 0x28], 0
jne 0x4035cb
push str.PCIVEN
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x4035cb
push str.USBROOT
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x4035cb
push str.STORAGEVOLUME
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x4035cb
push dword [ebx + 0x14]
mov ecx, dword [ebp - 0x14]
push 0x452148
call fcn.0040455f
mov dword [ebx + 0x28], eax
cmp dword [ebp - 8], 0xd
jne 0x4035d7
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 + 0x1c38]
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 + 0x1c92]
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 0x452470
lea eax, [ebx + 0x1738]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
lea eax, [ebx + 0x1738]
push eax
call fcn.00427ae0
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 0x452470
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 - 0xc]
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.0044d31e
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 - 0xc]
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 - 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 + 0x1ff4]
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 + 0x1b38]
push edi
lea eax, [ebp - 0xc]
push eax
push 0xe
push dword [ebp - 4]
call esi
cmp dword [0x509b18], 5
jne 0x40374f
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
call fcn.00410568
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x2afc]
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 + 0x1d92]
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 + 0x1e92]
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 0x4037e3
cmp word [ebx + 0x1e92], ax
je 0x4037e3
lea eax, [ebp - 0x38]
push eax
lea eax, [ebx + 0x1e92]
push eax
call fcn.0042f05e
test eax, eax
je 0x4037e3
lea eax, [ebp - 0x38]
push eax
call fcn.0044a8ce
push eax
lea eax, [ebx + 0x1eec]
push eax
call fcn.0042e7b0
mov ecx, dword [0x50c790]
call fcn.0044514e
and dword [ebp - 0x868], 0
push 0x1fc
lea eax, [ebp - 0x864]
push 0
push eax
call fcn.004476fd
and dword [ebp - 0x260], 0
push 0x1fc
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.004476fd
mov ecx, dword [0x50c790]
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebx + 0x1c92]
push eax
call fcn.00445041
mov dword [ebp - 8], eax
test eax, eax
jne 0x40387a
mov ecx, dword [0x50c790]
call fcn.00445294
mov ecx, dword [0x50c790]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebx + 0x1c92]
push eax
call fcn.00445041
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x4038ce
lea eax, [ebx + 0xa30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x868]
call fcn.0042ae93
mov ecx, dword [ebp - 0x10]
mov dword [ecx - 0x200], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x868]
call fcn.00412c0a
push eax
call fcn.0042ae93
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 0x40388d
lea ecx, [ebx + 0x1c92]
lea eax, [ebx + 0x10a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [0x50c790]
call fcn.00445156
push str.USBSTOR
lea eax, [ebx + 0x1f70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x403919
push str.UASPStor
lea eax, [ebx + 0x1f70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x403923
mov dword [ebx + 0x3a40], 1
cmp dword [0x5168ac], 4
jl 0x40397a
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
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.0044d31e
add esp, 0x34
xor eax, eax
lea edi, [ebx + 0x1938]
mov word [edi], ax
lea eax, [ebx + 0x1638]
cmp word [eax], 0
jne 0x40399d
lea eax, [ebx + 0x1738]
cmp word [eax], 0
je 0x4039a5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 0x1838]
cmp word [eax], 0
je 0x4039f1
cmp word [edi], 0
push eax
push edi
je 0x4039eb
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x4039f1
push 0x452ea8
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 0x452ea4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x4039f1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebx + 0x39f4], 0
jne 0x403ab2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push str.FloppyDisk
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x403a3a
push 0x452e80
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x403a3a
push 0x452e70
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
jne 0x403a80
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 + 0x1e92]
push eax
call fcn.0044bdfd
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
jle 0x403a80
lea eax, [ebx + 0xc30]
push eax
push 2
push dword [ebp + edi*4 - 0x60]
push dword [ebx + 0x10]
call fcn.0044bd31
test eax, eax
jne 0x403a80
inc edi
cmp edi, dword [ebp - 8]
jl 0x403a61
push 0x452e68
lea eax, [ebx + 0x1e12]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x403ab2
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebx + 0x39f8]
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.00401afc
mov dword [ebx + 0x28], eax
test eax, eax
je 0x403af9
push str.ROOTVOLMGR_
add eax, 0xe38
push eax
call fcn.00428778
test eax, eax
je 0x403af9
mov eax, dword [ebx + 0x3b04]
test eax, eax
je 0x403af9
push dword [eax + 0x83c]
mov ecx, dword [ebp - 0x14]
push dword [eax + 0x840]
call fcn.00401d6a
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.004476fd
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.004476fd
add esp, 0x18
lea eax, [ebx + 0x1c38]
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.0042805e
test eax, eax
je 0x403bb1
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 + 0x3600]
je 0x403b9d
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x403bb1
push 0x509c40
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.00427d52
push 7
lea eax, [ebx + 0x33bc]
push eax
lea eax, [ebx + 0x2afc]
push eax
call fcn.00427d52
push 0x1c
lea eax, [ebx + 0x33dc]
push 0
push eax
call fcn.004476fd
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 0x403c93
cmp dword [esi], eax
je 0x403c93
mov dword [ebp - 8], esi
push 0x452de8
push dword [esi]
call edi
push 0x452ddc
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 0x403c44
cmp dword [ebp - 4], 0
je 0x403c44
test esi, esi
jne 0x403c54
mov esi, dword [ebp - 8]
add esi, 4
cmp dword [esi], 0
mov dword [ebp - 8], esi
jne 0x403c11
jmp 0x403c93
mov eax, dword [ebp - 0x10]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x33dc]
push eax
call fcn.00447767
mov eax, dword [ebp - 4]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x33e4]
push eax
call fcn.00447767
push 8
add esi, 0xa
lea eax, [ebx + 0x33ec]
push esi
push eax
call fcn.00447767
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 + 0x1e92]
push eax
call fcn.0042f172
push 0x10
lea eax, [ebp - 0x28]
push 0x47a178
push eax
call fcn.004476ba
add esp, 0xc
mov esi, 0x4524d0
test eax, eax
je 0x403ce6
push 0x10
lea eax, [ebp - 0x28]
push 0x451490
push eax
call fcn.004476ba
add esp, 0xc
test eax, eax
jne 0x403d78
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.0042805e
test eax, eax
je 0x403d7d
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 0x403d7d
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.0044d31e
add esp, 0x10
jmp 0x403d7d
mov edi, 0x80000002
cmp word [ebx + 0xc30], 0
jne 0x403dfb
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.0042805e
test eax, eax
jne 0x403de9
push 0x104
lea eax, [ebx + 0xc30]
push eax
push str.SymbolicLinkName
lea eax, [ebp - 0xc68]
push eax
push edi
call fcn.0042805e
test eax, eax
je 0x403df3
push 0x5c
pop eax
mov word [ebx + 0xc32], ax
cmp word [ebx + 0xc30], 0
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
jne 0x403ed9
push str.USBVID_
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x403ed9
mov esi, 0x452d54
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.004476fd
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.00429332
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x452d50
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.0042805e
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x403ed9
push 0x5c
pop eax
mov word [ebx + 0xc32], ax
push 0x452e68
lea eax, [ebx + 0x1e12]
push eax
call edi
lea esi, [ebx + 0xc30]
cmp word [esi], 0
jne 0x403f19
mov eax, dword [ebx + 0x39f4]
test eax, eax
je 0x403f07
cmp eax, 0x15
je 0x403f07
cmp eax, 0x2f
jne 0x403f19
mov eax, dword [ebx + 0x830]
test eax, eax
je 0x403f19
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x403fad
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 0x403fad
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 0x403f6b
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 0x403f9f
push esi
push str.devpath_invalid:__s
push 3
call fcn.0044d31e
add esp, 0xc
xor eax, eax
mov word [esi], ax
jmp 0x403fad
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 0x40408c
push str.eec5ad98_8080_425f_922a_dabf3de3f69a
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
jne 0x40408c
push str.53f56307_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x40406b
push str.7fccc86c_228a_40ad_8a58_f590af7bfdce
push esi
call edi
test eax, eax
jne 0x40406b
push str.4d36e967_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
jne 0x40406b
push str.53f56308_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x404050
push str.4d36e965_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
jne 0x404050
push str.53f56311_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x404044
push str.4d36e980_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
je 0x404093
mov dword [ebx + 0x3a34], 3
jmp 0x40405a
mov dword [ebx + 0x3a34], 2
xor esi, esi
inc esi
mov dword [ebx + 0x3a3c], esi
mov dword [ebx + 0x3a38], esi
jmp 0x404096
xor esi, esi
lea eax, [ebx + 0xc30]
inc esi
push eax
mov dword [ebx + 0x3a34], esi
call fcn.0044c382
test eax, eax
jne 0x404096
mov dword [ebx + 0x3a3c], esi
jmp 0x404096
and dword [ebx + 0x3a34], 0
xor esi, esi
inc esi
cmp dword [ebx + 0x3a38], 0
jne 0x4040c7
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
jne 0x4040c7
push str.7f108a28_9833_4b3b_b780_2c6b5fa5c062
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
je 0x404154
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x3a38], esi
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x404102
push dword [ebx + 0x10]
call fcn.004061f7
lea esi, [ebx + 0x3b04]
mov dword [esi], eax
test eax, eax
jne 0x404102
push dword [ebx + 0x10]
lea eax, [ebx + 0xc30]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
call fcn.0040705f
mov dword [esi], eax
lea esi, [ebx + 0x10a8]
cmp word [esi], 0
je 0x404154
push str.disk
push esi
call edi
test eax, eax
je 0x404126
mov dword [ebx + 0x3a34], 1
jmp 0x404154
push 0x4528c0
push esi
call edi
test eax, eax
je 0x40413e
mov dword [ebx + 0x3a34], 2
jmp 0x404154
push 0x4528b0
push esi
call edi
test eax, eax
je 0x404154
mov dword [ebx + 0x3a34], 3
cmp dword [ebx + 0x3a34], 0
je 0x4042fa
cmp word [ebx + 0xc30], 0
je 0x4043ba
cmp dword [ebx + 0x3a3c], 0
je 0x404233
mov eax, dword [ebp - 0x14]
xor esi, esi
cmp dword [eax + 4], esi
jne 0x4041e3
push str.USBSTORDiskVen_
lea eax, [ebx + 0xc30]
push eax
call fcn.00428778
test eax, eax
je 0x4041e3
push 0x1fc
lea eax, [ebp - 0x25c]
push esi
push eax
mov dword [ebp - 0x260], esi
call fcn.004476fd
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov eax, dword [0x50c78c]
push dword [ebx + 0x10]
mov ecx, dword [eax + 8]
call fcn.004063cf
test eax, eax
je 0x4041e3
mov eax, dword [ebp - 0x260]
mov eax, dword [eax + 0x840]
mov dword [ebx + 0x3a30], eax
lea esi, [ebx + 0x3a30]
cmp dword [esi], 0xffffffff
jne 0x4041fc
lea eax, [ebx + 0xc30]
push eax
call fcn.0042e3a9
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x404233
push eax
mov eax, dword [ebx + 0x3a34]
push dword [eax*4 + 0x4a1018]
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.0044d31e
add esp, 0x1c
cmp dword [ebx + 0x3a38], 0
je 0x4042fa
mov eax, dword [ebx + 0x3b04]
test eax, eax
je 0x4042fa
lea ecx, [eax + 0x844]
push ecx
lea esi, [ebx + 0x3a30]
push esi
add eax, 0x428
push eax
call fcn.0042e1af
test eax, eax
jne 0x404298
mov eax, dword [ebx + 0x3b04]
lea ecx, [eax + 0x844]
push ecx
add eax, 0x840
push eax
lea eax, [ebx + 0xc30]
push eax
call fcn.00427b44
mov eax, dword [ebx + 0x3b04]
mov eax, dword [eax + 0x840]
mov dword [esi], eax
cmp dword [ebx + 0x3a34], 1
jne 0x4042fa
mov edx, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
cmp dword [edx + 0x400c], 0
jle 0x4042fa
lea eax, [edx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
test eax, eax
je 0x4042e8
cmp dword [eax], 1
jne 0x4042e8
cmp dword [eax + 0x3a34], 0
je 0x4042e8
cmp dword [eax + 0x3a38], 0
jne 0x4042e8
mov ecx, dword [eax + 0x3a30]
test ecx, ecx
jl 0x4042e8
cmp ecx, dword [esi]
jne 0x4042e8
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 0x4042b7
cmp word [ebx + 0xc30], 0
je 0x4043ba
cmp dword [ebx + 0x3b10], 0
jne 0x4043b2
mov esi, 0x452e68
push esi
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x40433a
push str.pci
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
jne 0x404396
push str.root
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
je 0x40435e
push 0x452854
lea eax, [ebx + 0x1f70]
push eax
call edi
test eax, eax
jne 0x404396
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x452e80
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x404396
push 0x452e70
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x404396
push esi
lea eax, [ebx + 0x1d92]
push eax
call edi
test eax, eax
jne 0x4043b2
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.00403426
cmp word [ebx + 0xc30], 0
pop edi
pop esi
jne 0x4043d3
add ebx, 0x3b14
cmp dword [ebx], 0
jne 0x4043d3
push dword [ebp - 0x18]
call fcn.0044c803
mov dword [ebx], eax
pop ebx
leave
ret 4