Function at 0x1002ed10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008252d
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x100abec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x500], eax
push 0x400
lea eax, [ebp - 0x4ec]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.100750b0
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10040670
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x25
push str.GetUSBVolumeCmd::execute
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4ec]
push str._s_t__d__d___INFO____s:_d__start_execute_n
push eax
call fcn.10008b40
lea ecx, [ebp - 0x4ec]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002edb1
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.100407c0
push 0x80
lea eax, [ebp - 0xec]
mov byte [ebp - 0x4ed], 0
push 0
push eax
call fcn.100750b0
add esp, 0x14
mov byte [ebp - 0x28], 0
xor edi, edi
xorps xmm0, xmm0
mov dword [ebp - 0x2c], edi
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x14], di
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 0x4f8], ecx
test eax, eax
je 0x1002ee85
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp edi, 0x80
jge 0x1002ee7f
test al, 1
je 0x1002ee6c
lea eax, [ecx + 0x41]
push eax
lea eax, [ebp - 0x2c]
push 0x10097fd4
push eax
call fcn.10018ab0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push str.._s
push eax
call fcn.10018ad0
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
call esi
mov ecx, dword [ebp - 0x4f8]
cmp eax, 2
jne 0x1002ee66
lea eax, [ecx + 0x41]
mov byte [ebp + edi - 0xec], al
inc edi
mov eax, dword [ebp - 0x4f4]
shr eax, 1
inc ecx
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 0x4f8], ecx
test eax, eax
jne 0x1002ee17
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x400
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.100750b0
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10040670
push edi
push 0x2b
push str.GetUSBVolumeCmd::execute
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4ec]
push str._s_t__d__d___INFO____s:_d__enum_usb_disk_with_count___d_n
push eax
call fcn.10008b40
lea ecx, [ebp - 0x4ec]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002eee4
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.100407c0
add esp, 8
cmp edi, 1
jge 0x1002ef19
lea ecx, [ebp + 0xc]
call fcn.10009d50
lea ecx, [ebp + 0x18]
call fcn.10009d50
xor al, al
jmp 0x1002f1d6
push 0x32
lea eax, [ebp - 0x6c]
mov word [ebp - 0x30], 0
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x38], xmm0
call fcn.100750b0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x4f4], ax
mov dword [ebp - 0x4f8], eax
nop word [eax + eax]
mov al, byte [ebp + eax - 0xec]
mov byte [ebp - 0x4ee], al
movsx eax, al
push eax
lea eax, [ebp - 0x38]
push str._c:_sn
push eax
call fcn.10018ad0
push 0x400
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.100750b0
add esp, 0x18
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10040670
lea eax, [ebp - 0x38]
push eax
push 0x37
push str.GetUSBVolumeCmd::execute
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4ec]
push str._s_t__d__d___INFO____s:_d__sn_file___s_n
push eax
call fcn.10008b40
lea ecx, [ebp - 0x4ec]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002efd1
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.100407c0
push 0x100986a0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4fc]
push eax
call fcn.10049eed
mov eax, dword [ebp - 0x4fc]
add esp, 0x14
test eax, eax
jne 0x1002f095
push 0x400
push eax
lea eax, [ebp - 0x4ec]
push eax
call fcn.100750b0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10040670
call fcn.10044f7f
push dword [eax]
call fcn.10050420
add esp, 0x10
push eax
push 0x3b
push str.GetUSBVolumeCmd::execute
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4ec]
push str._s_t__d__d___INFO____s:_d__fopen_s_sn_file_error___s___skip_this_volumn___n
push eax
call fcn.10008b40
lea eax, [ebp - 0x4ec]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002f077
sub eax, edx
push eax
lea eax, [ebp - 0x4ec]
push eax
call fcn.100407c0
add esp, 8
jmp 0x1002f150
push eax
lea eax, [ebp - 0x6c]
push 0x32
push eax
call fcn.1004a023
push 0x400
mov esi, eax
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.100750b0
add esp, 0x18
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10040670
mov eax, dword [ebp - 0x500]
add eax, 0x11
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x40
push str.GetUSBVolumeCmd::execute
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4ec]
push str._s_t__d__d___INFO____s:_d__readSn_is___s___Device_sn___s__n
push eax
call fcn.10008b40
lea ecx, [ebp - 0x4ec]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f112
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.100407c0
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x500]
add eax, 0x11
push eax
call fcn.10074190
add esp, 0x10
push dword [ebp - 0x4fc]
test eax, eax
jne 0x1002f167
call fcn.1004a0a5
add esp, 4
mov eax, dword [ebp - 0x4f8]
inc eax
mov dword [ebp - 0x4f8], eax
cmp eax, edi
jl 0x1002ef50
jmp 0x1002f189
mov al, byte [ebp - 0x4ee]
mov byte [ebp - 0x4f4], al
mov byte [ebp - 0x4f3], 0
call fcn.1004a0a5
add esp, 4
mov byte [ebp - 0x4ed], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 2
lea eax, [ebp - 0x4f4]
mov byte [ebp - 4], 2
push eax
push 0
sub esp, 0xc
lea eax, [ebp + 0x18]
mov ecx, esp
push eax
call fcn.10009cc0
call fcn.10023180
lea ecx, [ebp + 0xc]
call fcn.10009d50
lea ecx, [ebp + 0x18]
call fcn.10009d50
mov al, byte [ebp - 0x4ed]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10071677
mov esp, ebp
pop ebp
ret 0x1c