Function at 0x1002f340
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100849ed
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.10056280
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10040e60
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.10008e20
lea ecx, [ebp - 0x4ec]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f3e1
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.10040fb0
push 0x80
lea eax, [ebp - 0xec]
mov byte [ebp - 0x4ed], 0
push 0
push eax
call fcn.10056280
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 0x1002f4b5
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp edi, 0x80
jge 0x1002f4af
test al, 1
je 0x1002f49c
lea eax, [ecx + 0x41]
push eax
lea eax, [ebp - 0x2c]
push 0x10096100
push eax
call fcn.10019420
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push str.._s
push eax
call fcn.10019440
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
call esi
mov ecx, dword [ebp - 0x4f8]
cmp eax, 2
jne 0x1002f496
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 0x1002f447
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x400
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10040e60
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.10008e20
lea ecx, [ebp - 0x4ec]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f514
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.10040fb0
add esp, 8
cmp edi, 1
jge 0x1002f549
lea ecx, [ebp + 0xc]
call fcn.1000a060
lea ecx, [ebp + 0x18]
call fcn.1000a060
xor al, al
jmp 0x1002f806
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.10056280
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.10019440
push 0x400
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.10056280
add esp, 0x18
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10040e60
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.10008e20
lea ecx, [ebp - 0x4ec]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f601
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.10040fb0
push 0x100967c8
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4fc]
push eax
call fcn.10066526
mov eax, dword [ebp - 0x4fc]
add esp, 0x14
test eax, eax
jne 0x1002f6c5
push 0x400
push eax
lea eax, [ebp - 0x4ec]
push eax
call fcn.10056280
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10040e60
call fcn.1005f8b0
push dword [eax]
call fcn.1006ce1e
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.10008e20
lea eax, [ebp - 0x4ec]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002f6a7
sub eax, edx
push eax
lea eax, [ebp - 0x4ec]
push eax
call fcn.10040fb0
add esp, 8
jmp 0x1002f780
push eax
lea eax, [ebp - 0x6c]
push 0x32
push eax
call fcn.1006666b
push 0x400
mov esi, eax
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.10056280
add esp, 0x18
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.10040e60
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.10008e20
lea ecx, [ebp - 0x4ec]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f742
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.10040fb0
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x500]
add eax, 0x11
push eax
call fcn.10055510
add esp, 0x10
push dword [ebp - 0x4fc]
test eax, eax
jne 0x1002f797
call fcn.1006679b
add esp, 4
mov eax, dword [ebp - 0x4f8]
inc eax
mov dword [ebp - 0x4f8], eax
cmp eax, edi
jl 0x1002f580
jmp 0x1002f7b9
mov al, byte [ebp - 0x4ee]
mov byte [ebp - 0x4f4], al
mov byte [ebp - 0x4f3], 0
call fcn.1006679b
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.10009fa0
call fcn.100239e0
lea ecx, [ebp + 0xc]
call fcn.1000a060
lea ecx, [ebp + 0x18]
call fcn.1000a060
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.10052bc3
mov esp, ebp
pop ebp
ret 0x1c