Function at 0x1002f500
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084ddd
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x100a94c0]
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.10056430
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10041020
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.10008e00
lea ecx, [ebp - 0x4ec]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f5a1
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.10041170
push 0x80
lea eax, [ebp - 0xec]
mov byte [ebp - 0x4ed], 0
push 0
push eax
call fcn.10056430
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 0x1002f675
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp edi, 0x80
jge 0x1002f66f
test al, 1
je 0x1002f65c
lea eax, [ecx + 0x41]
push eax
lea eax, [ebp - 0x2c]
push 0x10096100
push eax
call fcn.10019500
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push str.._s
push eax
call fcn.10019520
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
call esi
mov ecx, dword [ebp - 0x4f8]
cmp eax, 2
jne 0x1002f656
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 0x1002f607
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x400
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.10056430
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10041020
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.10008e00
lea ecx, [ebp - 0x4ec]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f6d4
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.10041170
add esp, 8
cmp edi, 1
jge 0x1002f709
lea ecx, [ebp + 0xc]
call fcn.1000a040
lea ecx, [ebp + 0x18]
call fcn.1000a040
xor al, al
jmp 0x1002f9c6
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.10056430
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.10019520
push 0x400
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.10056430
add esp, 0x18
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10041020
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.10008e00
lea ecx, [ebp - 0x4ec]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f7c1
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.10041170
push 0x100967c8
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4fc]
push eax
call fcn.100666d6
mov eax, dword [ebp - 0x4fc]
add esp, 0x14
test eax, eax
jne 0x1002f885
push 0x400
push eax
lea eax, [ebp - 0x4ec]
push eax
call fcn.10056430
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10041020
call fcn.1005fa60
push dword [eax]
call fcn.1006cfce
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.10008e00
lea eax, [ebp - 0x4ec]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002f867
sub eax, edx
push eax
lea eax, [ebp - 0x4ec]
push eax
call fcn.10041170
add esp, 8
jmp 0x1002f940
push eax
lea eax, [ebp - 0x6c]
push 0x32
push eax
call fcn.1006681b
push 0x400
mov esi, eax
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.10056430
add esp, 0x18
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10041020
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.10008e00
lea ecx, [ebp - 0x4ec]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f902
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.10041170
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x500]
add eax, 0x11
push eax
call fcn.100556c0
add esp, 0x10
push dword [ebp - 0x4fc]
test eax, eax
jne 0x1002f957
call fcn.1006694b
add esp, 4
mov eax, dword [ebp - 0x4f8]
inc eax
mov dword [ebp - 0x4f8], eax
cmp eax, edi
jl 0x1002f740
jmp 0x1002f979
mov al, byte [ebp - 0x4ee]
mov byte [ebp - 0x4f4], al
mov byte [ebp - 0x4f3], 0
call fcn.1006694b
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.10009f80
call fcn.10023bb0
lea ecx, [ebp + 0xc]
call fcn.1000a040
lea ecx, [ebp + 0x18]
call fcn.1000a040
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.10052d76
mov esp, ebp
pop ebp
ret 0x1c