Function at 0x4035cd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe78
cmp dword [0x51cdd4], 4
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
jl 0x4035ff
lea eax, [ebx + 0xe3c]
push eax
push dword [ebx + 0x14]
push str.CDevList::PutDevProperties__u_...___s
push 4
call fcn.00451479
add esp, 0x10
push esi
push edi
mov edi, dword [ebx + 0x14]
push 0
lea eax, [ebx + 0xe3c]
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 + 0x14]
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_Parent]
push 0
push dword [ebx + 0x14]
lea esi, [ebx + 0x1c]
push esi
call dword [sym.imp.CFGMGR32.dll_CM_Get_Child]
push 0
push dword [esi]
lea eax, [ebx + 0x20]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_Sibling]
push 0
push edi
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 0x3a74]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40366d
mov dword [ebx + 0xc], 1
mov eax, dword [ebx + 0x18]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrW]
xor esi, esi
cmp eax, esi
je 0x403712
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00401c46
mov dword [ebx + 0x2c], eax
cmp eax, esi
je 0x4036d0
push str.ROOTVOLMGR_
add eax, 0xe3c
push eax
call fcn.00429dfe
test eax, eax
je 0x4036d0
mov eax, dword [ebx + 0x3bc4]
cmp eax, esi
je 0x4036d0
push dword [eax + 0x83c]
mov ecx, dword [ebp - 0x14]
push dword [eax + 0x840]
call fcn.00401eb7
mov dword [ebx + 0x2c], eax
cmp eax, esi
jne 0x4036d0
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x2c], esi
jne 0x40371e
push str.PCIVEN
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x403712
push str.USBROOT
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x403712
push str.STORAGEVOLUME
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x403712
push dword [ebx + 0x18]
mov ecx, dword [ebp - 0x14]
push 0x4561e0
call fcn.0040474e
mov dword [ebx + 0x2c], eax
cmp dword [ebx + 0x2c], esi
jne 0x40371e
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x3bc4], esi
je 0x403742
mov eax, dword [ebx + 0x2c]
cmp eax, esi
je 0x403751
add eax, 0x1b3c
push eax
lea eax, [ebx + 0x1b3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x403751
lea eax, [ebx + 0x1b3c]
push eax
push dword [ebx + 0x14]
call fcn.004507f5
cmp dword [ebp - 8], 0xd
jne 0x40375e
mov dword [ebx + 8], 0x2d
mov esi, dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Registry_PropertyW]
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x1cbc]
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 + 0x1d16]
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 + 0x173c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xd
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
push 0x456508
lea eax, [ebx + 0x173c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
lea eax, [ebx + 0x173c]
push eax
call fcn.0042914a
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x183c]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
push 0x456508
lea eax, [ebx + 0x183c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x2180]
push eax
lea eax, [ebp - 0xc]
push eax
push 2
push dword [ebp - 4]
mov dword [ebp + 8], 0x5fe
call esi
lea ecx, [ebx + 0x2180]
push ecx
push dword [ebp + 8]
push eax
push str.CM_DRP_HARDWAREID_cret_u_uLen_u_s_s
push 3
call fcn.00451479
add esp, 0x14
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0x7f
lea eax, [ebx + 0x1e96]
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 + 0x1ff4]
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 + 0x2078]
push eax
lea eax, [ebp - 0xc]
push eax
push 5
push dword [ebx + 0x18]
mov dword [ebp + 8], 0x7f
call esi
push 0
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], edi
lea edi, [ebx + 0x1bbc]
push edi
lea eax, [ebp - 0xc]
push eax
push 0xe
push dword [ebp - 4]
call esi
cmp dword [0x510068], 5
jne 0x4038d6
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
call fcn.004117fd
push 0
lea ecx, [ebp + 8]
push ecx
lea eax, [ebx + 0x2b80]
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 + 0x1e16]
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 + 0x1f16]
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 0x40396a
cmp word [ebx + 0x1f16], ax
je 0x40396a
lea eax, [ebp - 0x38]
push eax
lea eax, [ebx + 0x1f16]
push eax
call fcn.004301f3
test eax, eax
je 0x40396a
lea eax, [ebp - 0x38]
push eax
call fcn.0044e486
push eax
lea eax, [ebx + 0x1f70]
push eax
call fcn.00430c2f
mov ecx, dword [0x512c68]
call fcn.00448baf
and dword [ebp - 0x868], 0
push 0x1fc
lea eax, [ebp - 0x864]
push 0
push eax
call fcn.0044b15e
and dword [ebp - 0x260], 0
push 0x1fc
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.0044b15e
mov ecx, dword [0x512c68]
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebx + 0x1d16]
push eax
call fcn.00448aa2
mov dword [ebp - 8], eax
test eax, eax
jne 0x403a01
mov ecx, dword [0x512c68]
call fcn.00448cf5
mov ecx, dword [0x512c68]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebx + 0x1d16]
push eax
call fcn.00448aa2
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x403a59
lea eax, [ebx + 0xa34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x868]
call fcn.0042c86f
mov ecx, dword [ebp - 0x10]
mov dword [ecx - 0x200], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x868]
call fcn.00413fac
push eax
call fcn.0042c86f
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 0x403a14
cmp dword [ebp - 8], 0
je 0x403a74
lea eax, [ebx + 0xc34]
cmp word [eax], 0
jne 0x403a74
push dword [ebx + 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebx + 0x1d16]
lea eax, [ebx + 0x10ac]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [0x512c68]
call fcn.00448bb7
push 0x4564f8
lea eax, [ebx + 0x1ff4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x403b28
push str.UASPStor
lea eax, [ebx + 0x1ff4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x403b28
push 0x456f80
lea eax, [ebx + 0x1e96]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x403b32
lea eax, [ebx + 0xc34]
push eax
lea ecx, [ebp - 0x888]
call fcn.0040fdc1
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x888]
call fcn.0040f939
test eax, eax
je 0x403b1b
lea eax, [ebp - 0x260]
push eax
lea eax, [ebx + 0x3ac4]
push eax
mov dword [ebx + 0x3ac0], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x888]
call fcn.0040f3b6
jmp 0x403b32
mov dword [ebx + 0x3ac0], 1
cmp dword [0x51cdd4], 4
jl 0x403b89
lea eax, [ebx + 0x1e16]
push eax
lea eax, [ebx + 0x2b80]
push eax
push edi
lea eax, [ebx + 0x1ff4]
push eax
lea eax, [ebx + 0x1f16]
push eax
lea eax, [ebx + 0x1e96]
push eax
lea eax, [ebx + 0x183c]
push eax
lea eax, [ebx + 0x173c]
push eax
lea eax, [ebx + 0x1cbc]
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.00451479
add esp, 0x34
xor eax, eax
lea edi, [ebx + 0x193c]
mov word [edi], ax
lea eax, [ebx + 0x163c]
cmp word [eax], 0
jne 0x403bac
lea eax, [ebx + 0x173c]
cmp word [eax], 0
je 0x403bb4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 0x183c]
cmp word [eax], 0
je 0x403c00
cmp word [edi], 0
push eax
push edi
je 0x403bfa
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x403c00
push 0x456f20
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebx + 0x183c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x456f1c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x403c00
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebx + 8], 0
jne 0x403cbe
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push str.FloppyDisk
lea eax, [ebx + 0x1e96]
push eax
call edi
test eax, eax
je 0x403c46
push 0x456ef8
lea eax, [ebx + 0x1e96]
push eax
call edi
test eax, eax
je 0x403c46
push 0x456ee8
lea eax, [ebx + 0x1e96]
push eax
call edi
test eax, eax
jne 0x403c8c
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 + 0x1f16]
push eax
call fcn.0044fa28
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
jle 0x403c8c
lea eax, [ebx + 0xc34]
push eax
push 2
push dword [ebp + edi*4 - 0x60]
push dword [ebx + 0x14]
call fcn.0044f95d
test eax, eax
jne 0x403c8c
inc edi
cmp edi, dword [ebp - 8]
jl 0x403c6d
push 0x456ee0
lea eax, [ebx + 0x1e96]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x403cbe
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebx + 0x3a78]
push eax
push 0
push 0x1f
push dword [ebx + 0x14]
mov dword [ebp + 8], 0x38
call esi
push dword [ebx + 0x18]
mov ecx, dword [ebp - 0x14]
call fcn.00401c46
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x403d05
push str.ROOTVOLMGR_
add eax, 0xe3c
push eax
call fcn.00429dfe
test eax, eax
je 0x403d05
mov eax, dword [ebx + 0x3bc4]
test eax, eax
je 0x403d05
push dword [eax + 0x83c]
mov ecx, dword [ebp - 0x14]
push dword [eax + 0x840]
call fcn.00401eb7
mov dword [ebx + 0x2c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x668], ax
lea eax, [ebp - 0x666]
push eax
call fcn.0044b15e
push 0x14
pop ecx
push 0x3b0
lea eax, [ebp - 0xe28]
push 0
mov esi, str.SYSTEMCurrentControlSetControlClass_
lea edi, [ebp - 0xe78]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0044b15e
add esp, 0x18
lea eax, [ebx + 0x1cbc]
push eax
lea eax, [ebp - 0xe78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x104
lea eax, [ebp - 0x668]
push eax
push str.InfPath
lea eax, [ebp - 0xe78]
push eax
push 0x80000002
call fcn.004296c8
test eax, eax
je 0x403dbd
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 + 0x3684]
je 0x403da9
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x403dbd
push 0x510190
push str._sinf_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0xf
lea esi, [ebx + 0x3380]
push esi
lea eax, [ebx + 0x2180]
push eax
call fcn.004293bc
push 7
lea eax, [ebx + 0x3440]
push eax
lea eax, [ebx + 0x2b80]
push eax
call fcn.004293bc
push 0x1c
lea eax, [ebx + 0x3460]
push 0
push eax
call fcn.0044b15e
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 0x403e9f
cmp dword [esi], eax
je 0x403e9f
mov dword [ebp - 8], esi
push 0x456e60
push dword [esi]
call edi
push 0x455c8c
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 0x403e50
cmp dword [ebp - 4], 0
je 0x403e50
test esi, esi
jne 0x403e60
mov esi, dword [ebp - 8]
add esi, 4
cmp dword [esi], 0
mov dword [ebp - 8], esi
jne 0x403e1d
jmp 0x403e9f
mov eax, dword [ebp - 0x10]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x3460]
push eax
call fcn.0044b1c8
mov eax, dword [ebp - 4]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x3468]
push eax
call fcn.0044b1c8
push 8
add esi, 0xa
lea eax, [ebx + 0x3470]
push esi
push eax
call fcn.0044b1c8
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 + 0x1f16]
push eax
call fcn.00430307
push 0x10
lea eax, [ebp - 0x28]
push 0x47f998
push eax
call fcn.0044b11b
add esp, 0xc
mov esi, 0x456568
test eax, eax
je 0x403ef2
push 0x10
lea eax, [ebp - 0x28]
push 0x4554ac
push eax
call fcn.0044b11b
add esp, 0xc
test eax, eax
jne 0x403f84
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 + 0xfcc]
push eax
push str.PortName
lea eax, [ebp - 0x460]
push eax
mov edi, 0x80000002
push edi
call fcn.004296c8
test eax, eax
je 0x403f89
push 0x208
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebx + 0xfcc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x403f89
lea ecx, [ebp - 0xa78]
lea eax, [ebx + 0x13b4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 0x13b4]
push eax
lea eax, [ebx + 0xfcc]
push eax
push str.PortName_s_KernelName_s
push 3
call fcn.00451479
add esp, 0x10
jmp 0x403f89
mov edi, 0x80000002
cmp word [ebx + 0xc34], 0
jne 0x404007
push str.Device_Parameters
push dword [ebp - 0x18]
lea eax, [ebp - 0xe78]
push str.SystemCurrentControlSetEnum
push esi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x104
lea eax, [ebx + 0xc34]
push eax
push str.SymbolicName
lea eax, [ebp - 0xe78]
push eax
push edi
call fcn.004296c8
test eax, eax
jne 0x403ff5
push 0x104
lea eax, [ebx + 0xc34]
push eax
push str.SymbolicLinkName
lea eax, [ebp - 0xe78]
push eax
push edi
call fcn.004296c8
test eax, eax
je 0x403fff
push 0x5c
pop eax
mov word [ebx + 0xc36], ax
cmp word [ebx + 0xc34], 0
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
jne 0x4040e5
push str.USBVID_
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4040e5
mov esi, 0x456dec
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.0044b15e
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.0042aa09
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x456de8
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 - 0xe78]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x104
lea eax, [ebx + 0xc34]
push eax
push str.SymbolicLink
lea eax, [ebp - 0xe78]
push eax
push 0x80000002
call fcn.004296c8
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4040e5
push 0x5c
pop eax
mov word [ebx + 0xc36], ax
push 0x456ee0
lea eax, [ebx + 0x1e96]
push eax
call edi
lea esi, [ebx + 0xc34]
cmp word [esi], 0
jne 0x404122
mov eax, dword [ebx + 8]
test eax, eax
je 0x404110
cmp eax, 0x15
je 0x404110
cmp eax, 0x2f
jne 0x404122
mov eax, dword [ebx + 0x834]
test eax, eax
je 0x404122
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x4041b6
push 0x104
lea eax, [ebx + 0x10ac]
push eax
lea eax, [ebx + 0xc3c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4041b6
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 0x404174
xor ecx, ecx
mov word [eax], cx
push 0x104
lea eax, [ebx + 0x10ac]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4041a8
push esi
push str.devpath_invalid:__s
push 3
call fcn.00451479
add esp, 0xc
xor eax, eax
mov word [esi], ax
jmp 0x4041b6
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 0x404295
push str.eec5ad98_8080_425f_922a_dabf3de3f69a
lea eax, [ebx + 0x1f16]
push eax
call edi
test eax, eax
jne 0x404295
push str.53f56307_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x404274
push str.7fccc86c_228a_40ad_8a58_f590af7bfdce
push esi
call edi
test eax, eax
jne 0x404274
push str.4d36e967_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1f16]
push eax
call edi
test eax, eax
jne 0x404274
push str.53f56308_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x404259
push str.4d36e965_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1f16]
push eax
call edi
test eax, eax
jne 0x404259
push str.53f56311_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x40424d
push str.4d36e980_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1f16]
push eax
call edi
test eax, eax
je 0x40429c
mov dword [ebx + 0x3ab4], 3
jmp 0x404263
mov dword [ebx + 0x3ab4], 2
xor esi, esi
inc esi
mov dword [ebx + 0x3abc], esi
mov dword [ebx + 0x3ab8], esi
jmp 0x40429f
xor esi, esi
lea eax, [ebx + 0xc34]
inc esi
push eax
mov dword [ebx + 0x3ab4], esi
call fcn.0044ffb9
test eax, eax
jne 0x40429f
mov dword [ebx + 0x3abc], esi
jmp 0x40429f
and dword [ebx + 0x3ab4], 0
xor esi, esi
inc esi
cmp dword [ebx + 0x3ab8], 0
jne 0x4042d0
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
lea eax, [ebx + 0xc34]
push eax
call edi
test eax, eax
jne 0x4042d0
push str.7f108a28_9833_4b3b_b780_2c6b5fa5c062
lea eax, [ebx + 0xc34]
push eax
call edi
test eax, eax
je 0x404365
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x3ab8], esi
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40430d
push dword [ebx + 0x14]
call fcn.004063eb
mov dword [ebx + 0x3bc4], eax
test eax, eax
jne 0x40430d
push dword [ebx + 0x14]
lea eax, [ebx + 0xc34]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
call fcn.00407341
mov dword [ebx + 0x3bc4], eax
cmp word [ebx + 0x10ac], 0
je 0x404365
push str.disk
lea eax, [ebx + 0x10ac]
push eax
call edi
test eax, eax
je 0x404331
mov dword [ebx + 0x3ab4], esi
jmp 0x404365
push 0x456958
lea esi, [ebx + 0x10ac]
push esi
call edi
test eax, eax
je 0x40434f
mov dword [ebx + 0x3ab4], 2
jmp 0x404365
push 0x456948
push esi
call edi
test eax, eax
je 0x404365
mov dword [ebx + 0x3ab4], 3
cmp dword [ebx + 0x3ab4], 0
je 0x40450b
cmp word [ebx + 0xc34], 0
je 0x4045cb
cmp dword [ebx + 0x3abc], 0
je 0x404444
mov eax, dword [ebp - 0x14]
xor esi, esi
cmp dword [eax + 4], esi
jne 0x4043f4
push str.USBSTORDiskVen_
lea eax, [ebx + 0xc34]
push eax
call fcn.00429dfe
test eax, eax
je 0x4043f4
push 0x1fc
lea eax, [ebp - 0x25c]
push esi
push eax
mov dword [ebp - 0x260], esi
call fcn.0044b15e
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov eax, dword [0x512c64]
push dword [ebx + 0x14]
mov ecx, dword [eax + 8]
call fcn.004065b1
test eax, eax
je 0x4043f4
mov eax, dword [ebp - 0x260]
mov eax, dword [eax + 0x840]
mov dword [ebx + 0x3ab0], eax
lea esi, [ebx + 0x3ab0]
cmp dword [esi], 0xffffffff
jne 0x40440d
lea eax, [ebx + 0xc34]
push eax
call fcn.00430534
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x404444
push eax
mov eax, dword [ebx + 0x3ab4]
push dword [eax*4 + 0x4a701c]
lea esi, [ebx + 0x108c]
push str._S_i
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
push str.drive_s
push 1
call fcn.00451479
add esp, 0x1c
cmp dword [ebx + 0x3ab8], 0
je 0x40450b
mov eax, dword [ebx + 0x3bc4]
test eax, eax
je 0x40450b
lea ecx, [eax + 0x844]
push ecx
lea esi, [ebx + 0x3ab0]
push esi
add eax, 0x428
push eax
call fcn.0043033a
test eax, eax
jne 0x4044a9
mov eax, dword [ebx + 0x3bc4]
lea ecx, [eax + 0x844]
push ecx
add eax, 0x840
push eax
lea eax, [ebx + 0xc34]
push eax
call fcn.004291ae
mov eax, dword [ebx + 0x3bc4]
mov eax, dword [eax + 0x840]
mov dword [esi], eax
cmp dword [ebx + 0x3ab4], 1
jne 0x40450b
mov edx, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
cmp dword [edx + 0x400c], 0
jle 0x40450b
lea eax, [edx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
test eax, eax
je 0x4044f9
cmp dword [eax], 1
jne 0x4044f9
cmp dword [eax + 0x3ab4], 0
je 0x4044f9
cmp dword [eax + 0x3ab8], 0
jne 0x4044f9
mov ecx, dword [eax + 0x3ab0]
test ecx, ecx
jl 0x4044f9
cmp ecx, dword [esi]
jne 0x4044f9
mov dword [ebx + 0x2c], eax
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], 4
cmp eax, dword [edx + 0x400c]
jl 0x4044c8
cmp word [ebx + 0xc34], 0
je 0x4045cb
cmp dword [ebx + 0x3bd0], 0
jne 0x4045c3
mov esi, 0x456ee0
push esi
lea eax, [ebx + 0x1e96]
push eax
call edi
test eax, eax
je 0x40454b
push str.pci
lea eax, [ebx + 0xc34]
push eax
call edi
test eax, eax
jne 0x4045a7
push str.root
lea eax, [ebx + 0xc34]
push eax
call edi
test eax, eax
je 0x40456f
push 0x4568ec
lea eax, [ebx + 0x1ff4]
push eax
call edi
test eax, eax
jne 0x4045a7
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x456ef8
lea eax, [ebx + 0x1e96]
push eax
call edi
test eax, eax
je 0x4045a7
push 0x456ee8
lea eax, [ebx + 0x1e96]
push eax
call edi
test eax, eax
je 0x4045a7
push esi
lea eax, [ebx + 0x1e16]
push eax
call edi
test eax, eax
jne 0x4045c3
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.00403564
cmp word [ebx + 0xc34], 0
pop edi
pop esi
jne 0x4045e4
add ebx, 0x3bd4
cmp dword [ebx], 0
jne 0x4045e4
push dword [ebp - 0x18]
call fcn.004504ce
mov dword [ebx], eax
pop ebx
leave
ret 4