Function at 0x10032be0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040318
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x1004f0d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x624], ecx
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea eax, [ebp - 0x217]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x608], 0
mov dword [ebp - 0x60c], 0xffffffff
mov byte [ebp - 0x114], 0
push 0x103
push 0
lea ecx, [ebp - 0x113]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov dword [ebp - 0x60c], eax
cmp dword [ebp - 0x60c], 0xffffffff
jne 0x10032d08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x608], eax
push str.CEnumUsbDevice::InitUsbDevice
lea ecx, [ebp - 0x248]
call fcn.10001d10
mov dword [ebp - 4], 0
push str.MusicUsbDeviceMgr.txt
lea ecx, [ebp - 0x2a8]
call fcn.10001d10
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x608]
push eax
push str.Install_KwService_Error:_d
lea ecx, [ebp - 0x248]
push ecx
push 0
lea edx, [ebp - 0x2a8]
push edx
call dword [sym.imp.KwLog.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a8]
call fcn.100033c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.100033c0
xor eax, eax
jmp 0x10033114
lea eax, [ebp - 0x114]
push eax
call sub.MSVCR120.dll_strlen
add esp, 4
sub eax, 1
mov dword [ebp - 0x610], eax
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0x114]
cmp eax, 0x5c
jne 0x10032d8a
mov ecx, 1
shl ecx, 0
movsx edx, byte [ebp + ecx - 0x114]
cmp edx, 0x5c
jne 0x10032d8a
mov eax, 1
shl eax, 1
movsx ecx, byte [ebp + eax - 0x114]
cmp ecx, 0x3f
jne 0x10032d8a
mov edx, 1
imul eax, edx, 3
movsx ecx, byte [ebp + eax - 0x114]
cmp ecx, 0x5c
jne 0x10032d8a
mov edx, dword [ebp - 0x610]
movsx eax, byte [ebp + edx - 0x114]
cmp eax, 0x5c
je 0x10032e0a
mov dword [ebp - 0x608], 0xa1
push str.CEnumUsbDevice::InitUsbDevice
lea ecx, [ebp - 0x260]
call fcn.10001d10
mov dword [ebp - 4], 2
push str.MusicUsbDeviceMgr.txt
lea ecx, [ebp - 0x2f0]
call fcn.10001d10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
push ecx
push str.FindFirstVolume_FindNextVolume_returned_a_bad_path:__s_n
lea edx, [ebp - 0x260]
push edx
push 0
lea eax, [ebp - 0x2f0]
push eax
call dword [sym.imp.KwLog.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2f0]
call fcn.100033c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.100033c0
jmp 0x100330f5
mov ecx, dword [ebp - 0x610]
mov dword [ebp - 0x614], ecx
cmp dword [ebp - 0x614], 0x104
jae 0x10032e24
jmp 0x10032e29
call fcn.1003b978
mov edx, dword [ebp - 0x614]
mov byte [ebp + edx - 0x114], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
mov ecx, 1
shl ecx, 2
lea edx, [ebp + ecx - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov dword [ebp - 0x61c], eax
mov eax, dword [ebp - 0x610]
mov byte [ebp + eax - 0x114], 0x5c
cmp dword [ebp - 0x61c], 0
jne 0x10032efc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x608], eax
push str.CEnumUsbDevice::InitUsbDevice
lea ecx, [ebp - 0x278]
call fcn.10001d10
mov dword [ebp - 4], 4
push str.MusicUsbDeviceMgr.txt
lea ecx, [ebp - 0x290]
call fcn.10001d10
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x608]
push ecx
push str.QueryDosDeviceW_failed_with_error_code__d_n
lea edx, [ebp - 0x278]
push edx
push 0
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KwLog.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x290]
call fcn.100033c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.100033c0
jmp 0x100330f5
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.10001d10
mov dword [ebp - 4], 6
lea edx, [ebp - 0x2d8]
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.100267f0
add esp, 8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2d8]
call fcn.100033c0
lea ecx, [ebp - 0x230]
call fcn.1001d220
movzx ecx, al
test ecx, ecx
jne 0x1003300b
lea edx, [ebp - 0x230]
push edx
call fcn.10026950
add esp, 4
movzx eax, al
test eax, eax
je 0x1003300b
lea ecx, [ebp - 0x600]
call fcn.100147a0
push 2
push 0
lea ecx, [ebp - 0x320]
push ecx
lea ecx, [ebp - 0x230]
call fcn.10021d40
mov dword [ebp - 0x618], eax
mov edx, dword [ebp - 0x618]
mov dword [ebp - 0x620], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x620]
push eax
lea ecx, [ebp - 0x600]
push ecx
call fcn.10027340
add esp, 8
mov byte [ebp - 0x601], al
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x320]
call fcn.100033c0
lea edx, [ebp - 0x230]
push edx
call dword [sym.imp.KwLib.dll_int___cdecl_KwLib::Dir::IsCanCreateFile_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 4
test eax, eax
jne 0x10032ff1
mov dword [ebp - 0x338], 3
mov byte [ebp - 0x601], 0
movzx eax, byte [ebp - 0x601]
test eax, eax
je 0x1003300b
lea ecx, [ebp - 0x600]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10020ad0
push 0x104
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x60c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
jne 0x100330de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x608], eax
cmp dword [ebp - 0x608], 0x12
je 0x100330c0
push str.CEnumUsbDevice::InitUsbDevice
lea ecx, [ebp - 0x2c0]
call fcn.10001d10
mov byte [ebp - 4], 0xa
push str.MusicUsbDeviceMgr.txt
lea ecx, [ebp - 0x308]
call fcn.10001d10
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x608]
push ecx
push str.FindNextVolume_failed_with_error_code__d_n
lea edx, [ebp - 0x2c0]
push edx
push 0
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KwLog.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x308]
call fcn.100033c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c0]
call fcn.100033c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.100033c0
jmp 0x100330f5
mov dword [ebp - 0x608], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.100033c0
jmp 0x100330f5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.100033c0
jmp 0x10032d08
mov ecx, dword [ebp - 0x60c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov dword [ebp - 0x60c], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.10021ce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003b334
mov esp, ebp
pop ebp
ret 4