Function at 0x403436
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1078
cmp dword [0x515894], 4
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
jl 0x403468
lea eax, [ebx + 0xe38]
push eax
push dword [ebx + 0x10]
push str.CDevList::PutDevProperties__u_...___s
push 4
call fcn.0044c79b
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 0x4034d9
mov dword [ebx + 8], 1
mov eax, dword [ebx + 0x14]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x403572
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00401afc
mov dword [ebx + 0x28], eax
test eax, eax
je 0x40352f
push str.ROOTVOLMGR_
add eax, 0xe38
push eax
call fcn.0042838f
test eax, eax
je 0x40352f
mov eax, dword [ebx + 0x3b04]
test eax, eax
je 0x40352f
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 0x403572
push str.PCIVEN
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x403572
push str.USBROOT
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x403572
push str.STORAGEVOLUME
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x403572
push dword [ebx + 0x14]
mov ecx, dword [ebp - 0x14]
push 0x451138
call fcn.00404506
mov dword [ebx + 0x28], eax
cmp dword [ebp - 8], 0xd
jne 0x40357e
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 0x451448
lea eax, [ebx + 0x1738]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
lea eax, [ebx + 0x1738]
push eax
call fcn.004276f7
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 0x451448
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.0044c79b
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 [0x508708], 5
jne 0x4036f6
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
call fcn.00410277
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 0x40378a
cmp word [ebx + 0x1e92], ax
je 0x40378a
lea eax, [ebp - 0x38]
push eax
lea eax, [ebx + 0x1e92]
push eax
call fcn.0042e8ca
test eax, eax
je 0x40378a
lea eax, [ebp - 0x38]
push eax
call fcn.00449d5f
push eax
lea eax, [ebx + 0x1eec]
push eax
call fcn.0042e01c
mov ecx, dword [0x50b374]
call fcn.004444fc
and dword [ebp - 0x868], 0
push 0x1fc
lea eax, [ebp - 0x864]
push 0
push eax
call fcn.00446b72
and dword [ebp - 0x260], 0
push 0x1fc
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.00446b72
mov ecx, dword [0x50b374]
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebx + 0x1c92]
push eax
call fcn.004443ef
mov dword [ebp - 8], eax
test eax, eax
jne 0x403821
mov ecx, dword [0x50b374]
call fcn.00444642
mov ecx, dword [0x50b374]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebx + 0x1c92]
push eax
call fcn.004443ef
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x403875
lea eax, [ebx + 0xa30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x868]
call fcn.0042a955
mov ecx, dword [ebp - 0x10]
mov dword [ecx - 0x200], eax
mov eax, dword [ebp - 4]
push dword [ebp + eax*4 - 0x868]
call fcn.004128e5
push eax
call fcn.0042a955
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 0x403834
lea ecx, [ebx + 0x1c92]
lea eax, [ebx + 0x10a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [0x50b374]
call fcn.00444504
push str.USBSTOR
lea eax, [ebx + 0x1f70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4038c0
push str.UASPStor
lea eax, [ebx + 0x1f70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4038ca
mov dword [ebx + 0x3a40], 1
cmp dword [0x515894], 4
jl 0x403921
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.0044c79b
add esp, 0x34
xor eax, eax
lea edi, [ebx + 0x1938]
mov word [edi], ax
lea eax, [ebx + 0x1638]
cmp word [eax], 0
jne 0x403944
lea eax, [ebx + 0x1738]
cmp word [eax], 0
je 0x40394c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 0x1838]
cmp word [eax], 0
je 0x403998
cmp word [edi], 0
push eax
push edi
je 0x403992
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x403998
push 0x451e80
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 0x451e7c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x403998
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebx + 0x39f4], 0
jne 0x403a59
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push str.FloppyDisk
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x4039e1
push 0x451e58
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x4039e1
push 0x451e48
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
jne 0x403a27
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.0044b27a
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
jle 0x403a27
lea eax, [ebx + 0xc30]
push eax
push 2
push dword [ebp + edi*4 - 0x60]
push dword [ebx + 0x10]
call fcn.0044b1af
test eax, eax
jne 0x403a27
inc edi
cmp edi, dword [ebp - 8]
jl 0x403a08
push 0x451e40
lea eax, [ebx + 0x1e12]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x403a59
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 0x403aa0
push str.ROOTVOLMGR_
add eax, 0xe38
push eax
call fcn.0042838f
test eax, eax
je 0x403aa0
mov eax, dword [ebx + 0x3b04]
test eax, eax
je 0x403aa0
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.00446b72
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.00446b72
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.00427c75
test eax, eax
je 0x403b58
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 0x403b44
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x403b58
push 0x508830
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.00427969
push 7
lea eax, [ebx + 0x33bc]
push eax
lea eax, [ebx + 0x2afc]
push eax
call fcn.00427969
push 0x1c
lea eax, [ebx + 0x33dc]
push 0
push eax
call fcn.00446b72
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 0x403c3a
cmp dword [esi], eax
je 0x403c3a
mov dword [ebp - 8], esi
push 0x451dc0
push dword [esi]
call edi
push 0x451db4
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 0x403beb
cmp dword [ebp - 4], 0
je 0x403beb
test esi, esi
jne 0x403bfb
mov esi, dword [ebp - 8]
add esi, 4
cmp dword [esi], 0
mov dword [ebp - 8], esi
jne 0x403bb8
jmp 0x403c3a
mov eax, dword [ebp - 0x10]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x33dc]
push eax
call fcn.00446bdc
mov eax, dword [ebp - 4]
add eax, 0xa
push 8
push eax
lea eax, [ebx + 0x33e4]
push eax
call fcn.00446bdc
push 8
add esi, 0xa
lea eax, [ebx + 0x33ec]
push esi
push eax
call fcn.00446bdc
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.0042e9de
push 0x10
lea eax, [ebp - 0x28]
push 0x479008
push eax
call fcn.00446b2f
add esp, 0xc
mov esi, 0x4514a8
test eax, eax
je 0x403c8d
push 0x10
lea eax, [ebp - 0x28]
push 0x450480
push eax
call fcn.00446b2f
add esp, 0xc
test eax, eax
jne 0x403d1f
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.00427c75
test eax, eax
je 0x403d24
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 0x403d24
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.0044c79b
add esp, 0x10
jmp 0x403d24
mov edi, 0x80000002
cmp word [ebx + 0xc30], 0
jne 0x403da2
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.00427c75
test eax, eax
jne 0x403d90
push 0x104
lea eax, [ebx + 0xc30]
push eax
push str.SymbolicLinkName
lea eax, [ebp - 0xc68]
push eax
push edi
call fcn.00427c75
test eax, eax
je 0x403d9a
push 0x5c
pop eax
mov word [ebx + 0xc32], ax
cmp word [ebx + 0xc30], 0
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
jne 0x403e80
push str.USBVID_
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x403e80
mov esi, 0x451d2c
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.00446b72
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.00428f49
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x451d28
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.00427c75
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x403e80
push 0x5c
pop eax
mov word [ebx + 0xc32], ax
push 0x451e40
lea eax, [ebx + 0x1e12]
push eax
call edi
lea esi, [ebx + 0xc30]
cmp word [esi], 0
jne 0x403ec0
mov eax, dword [ebx + 0x39f4]
test eax, eax
je 0x403eae
cmp eax, 0x15
je 0x403eae
cmp eax, 0x2f
jne 0x403ec0
mov eax, dword [ebx + 0x830]
test eax, eax
je 0x403ec0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x403f54
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 0x403f54
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 0x403f12
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 0x403f46
push esi
push str.devpath_invalid:__s
push 3
call fcn.0044c79b
add esp, 0xc
xor eax, eax
mov word [esi], ax
jmp 0x403f54
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 0x404033
push str.eec5ad98_8080_425f_922a_dabf3de3f69a
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
jne 0x404033
push str.53f56307_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x404012
push str.7fccc86c_228a_40ad_8a58_f590af7bfdce
push esi
call edi
test eax, eax
jne 0x404012
push str.4d36e967_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
jne 0x404012
push str.53f56308_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403ff7
push str.4d36e965_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
jne 0x403ff7
push str.53f56311_b6bf_11d0_94f2_00a0c91efb8b
push esi
call edi
test eax, eax
jne 0x403feb
push str.4d36e980_e325_11ce_bfc1_08002be10318
lea eax, [ebx + 0x1e92]
push eax
call edi
test eax, eax
je 0x40403a
mov dword [ebx + 0x3a34], 3
jmp 0x404001
mov dword [ebx + 0x3a34], 2
xor esi, esi
inc esi
mov dword [ebx + 0x3a3c], esi
mov dword [ebx + 0x3a38], esi
jmp 0x40403d
xor esi, esi
lea eax, [ebx + 0xc30]
inc esi
push eax
mov dword [ebx + 0x3a34], esi
call fcn.0044b7ff
test eax, eax
jne 0x40403d
mov dword [ebx + 0x3a3c], esi
jmp 0x40403d
and dword [ebx + 0x3a34], 0
xor esi, esi
inc esi
cmp dword [ebx + 0x3a38], 0
jne 0x40406e
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
jne 0x40406e
push str.7f108a28_9833_4b3b_b780_2c6b5fa5c062
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
je 0x4040fb
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x3a38], esi
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4040a9
push dword [ebx + 0x10]
call fcn.0040615b
lea esi, [ebx + 0x3b04]
mov dword [esi], eax
test eax, eax
jne 0x4040a9
push dword [ebx + 0x10]
lea eax, [ebx + 0xc30]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
call fcn.00406f79
mov dword [esi], eax
lea esi, [ebx + 0x10a8]
cmp word [esi], 0
je 0x4040fb
push str.disk
push esi
call edi
test eax, eax
je 0x4040cd
mov dword [ebx + 0x3a34], 1
jmp 0x4040fb
push 0x451898
push esi
call edi
test eax, eax
je 0x4040e5
mov dword [ebx + 0x3a34], 2
jmp 0x4040fb
push 0x451888
push esi
call edi
test eax, eax
je 0x4040fb
mov dword [ebx + 0x3a34], 3
cmp dword [ebx + 0x3a34], 0
je 0x4042a1
cmp word [ebx + 0xc30], 0
je 0x404361
cmp dword [ebx + 0x3a3c], 0
je 0x4041da
mov eax, dword [ebp - 0x14]
xor esi, esi
cmp dword [eax + 4], esi
jne 0x40418a
push str.USBSTORDiskVen_
lea eax, [ebx + 0xc30]
push eax
call fcn.0042838f
test eax, eax
je 0x40418a
push 0x1fc
lea eax, [ebp - 0x25c]
push esi
push eax
mov dword [ebp - 0x260], esi
call fcn.00446b72
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov eax, dword [0x50b370]
push dword [ebx + 0x10]
mov ecx, dword [eax + 8]
call fcn.00406302
test eax, eax
je 0x40418a
mov eax, dword [ebp - 0x260]
mov eax, dword [eax + 0x840]
mov dword [ebx + 0x3a30], eax
lea esi, [ebx + 0x3a30]
cmp dword [esi], 0xffffffff
jne 0x4041a3
lea eax, [ebx + 0xc30]
push eax
call fcn.0042dc15
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4041da
push eax
mov eax, dword [ebx + 0x3a34]
push dword [eax*4 + 0x4a0018]
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.0044c79b
add esp, 0x1c
cmp dword [ebx + 0x3a38], 0
je 0x4042a1
mov eax, dword [ebx + 0x3b04]
test eax, eax
je 0x4042a1
lea ecx, [eax + 0x844]
push ecx
lea esi, [ebx + 0x3a30]
push esi
add eax, 0x428
push eax
call fcn.0042da1b
test eax, eax
jne 0x40423f
mov eax, dword [ebx + 0x3b04]
lea ecx, [eax + 0x844]
push ecx
add eax, 0x840
push eax
lea eax, [ebx + 0xc30]
push eax
call fcn.0042775b
mov eax, dword [ebx + 0x3b04]
mov eax, dword [eax + 0x840]
mov dword [esi], eax
cmp dword [ebx + 0x3a34], 1
jne 0x4042a1
mov edx, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
cmp dword [edx + 0x400c], 0
jle 0x4042a1
lea eax, [edx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
test eax, eax
je 0x40428f
cmp dword [eax], 1
jne 0x40428f
cmp dword [eax + 0x3a34], 0
je 0x40428f
cmp dword [eax + 0x3a38], 0
jne 0x40428f
mov ecx, dword [eax + 0x3a30]
test ecx, ecx
jl 0x40428f
cmp ecx, dword [esi]
jne 0x40428f
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 0x40425e
cmp word [ebx + 0xc30], 0
je 0x404361
cmp dword [ebx + 0x3b10], 0
jne 0x404359
mov esi, 0x451e40
push esi
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x4042e1
push str.pci
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
jne 0x40433d
push str.root
lea eax, [ebx + 0xc30]
push eax
call edi
test eax, eax
je 0x404305
push 0x45182c
lea eax, [ebx + 0x1f70]
push eax
call edi
test eax, eax
jne 0x40433d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x451e58
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x40433d
push 0x451e48
lea eax, [ebx + 0x1e12]
push eax
call edi
test eax, eax
je 0x40433d
push esi
lea eax, [ebx + 0x1d92]
push eax
call edi
test eax, eax
jne 0x404359
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.004033cd
cmp word [ebx + 0xc30], 0
pop edi
pop esi
jne 0x40437a
add ebx, 0x3b14
cmp dword [ebx], 0
jne 0x40437a
push dword [ebp - 0x18]
call fcn.0044bc80
mov dword [ebx], eax
pop ebx
leave
ret 4