Function at 0x1002a5c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a3cd
mov eax, dword fs:[0]
push eax
sub esp, 0xd1c
mov eax, dword [0x100a049c]
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 - 0xd28], eax
push 0x400
lea eax, [ebp - 0x514]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
call fcn.1003b0a0
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 - 0x2c]
push eax
lea eax, [ebp - 0x514]
push str._s_t__d__d___INFO____s:_d__start_execute_n
push eax
call fcn.10007a40
lea ecx, [ebp - 0x514]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a661
sub ecx, edx
lea eax, [ebp - 0x514]
push ecx
push eax
call fcn.1003b1f0
push 0x80
lea eax, [ebp - 0x114]
mov byte [ebp - 0xd15], 0
push 0
push eax
call fcn.10050650
add esp, 0x14
mov byte [ebp - 0x14], 0
xor edi, edi
xorps xmm0, xmm0
mov dword [ebp - 0x18], edi
movq qword [ebp - 0x24], xmm0
mov word [ebp - 0x1c], di
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0xd1c], eax
mov dword [ebp - 0xd20], ecx
test eax, eax
je 0x1002a735
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp edi, 0x80
jge 0x1002a72f
test al, 1
je 0x1002a71c
lea eax, [ecx + 0x41]
push eax
lea eax, [ebp - 0x18]
push 0x1008ec6c
push eax
call fcn.10016360
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push str.._s
push eax
call fcn.10016380
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
call esi
mov ecx, dword [ebp - 0xd20]
cmp eax, 2
jne 0x1002a716
lea eax, [ecx + 0x41]
mov byte [ebp + edi - 0x114], al
inc edi
mov eax, dword [ebp - 0xd1c]
shr eax, 1
inc ecx
mov dword [ebp - 0xd1c], eax
mov dword [ebp - 0xd20], ecx
test eax, eax
jne 0x1002a6c7
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x400
lea eax, [ebp - 0x514]
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
call fcn.1003b0a0
push edi
push 0x2b
push str.GetUSBVolumeCmd::execute
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x514]
push str._s_t__d__d___INFO____s:_d__enum_usb_disk_with_count___d_n
push eax
call fcn.10007a40
lea ecx, [ebp - 0x514]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a794
sub ecx, edx
lea eax, [ebp - 0x514]
push ecx
push eax
call fcn.1003b1f0
add esp, 8
cmp edi, 1
jge 0x1002a7c9
lea ecx, [ebp + 0xc]
call fcn.10008c50
lea ecx, [ebp + 0x18]
call fcn.10008c50
xor al, al
jmp 0x1002aa8c
push 0x32
lea eax, [ebp - 0x94]
mov word [ebp - 0x30], 0
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x38], xmm0
call fcn.10050650
add esp, 0xc
xor eax, eax
mov word [ebp - 0xd1c], ax
mov dword [ebp - 0xd20], eax
nop dword [eax]
mov al, byte [ebp + eax - 0x114]
mov byte [ebp - 0xd16], al
movsx eax, al
push eax
lea eax, [ebp - 0x38]
push str._c:_sn
push eax
call fcn.10016380
push 0x400
lea eax, [ebp - 0x514]
push 0
push eax
call fcn.10050650
add esp, 0x18
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
call fcn.1003b0a0
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 - 0x2c]
push eax
lea eax, [ebp - 0x514]
push str._s_t__d__d___INFO____s:_d__sn_file___s_n
push eax
call fcn.10007a40
lea ecx, [ebp - 0x514]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a881
sub ecx, edx
lea eax, [ebp - 0x514]
push ecx
push eax
call fcn.1003b1f0
push 0x1008f338
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xd24]
push eax
call fcn.1005e6f0
mov eax, dword [ebp - 0xd24]
add esp, 0x14
test eax, eax
jne 0x1002a945
push 0x400
push eax
lea eax, [ebp - 0x914]
push eax
call fcn.10050650
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x4c]
movups xmmword [ebp - 0x4c], xmm0
call fcn.1003b0a0
call fcn.1005984c
push dword [eax]
call fcn.10063d82
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 - 0x4c]
push eax
lea eax, [ebp - 0x914]
push str._s_t__d__d___INFO____s:_d__fopen_s_sn_file_error___s___skip_this_volumn___n
push eax
call fcn.10007a40
lea eax, [ebp - 0x914]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002a927
sub eax, edx
push eax
lea eax, [ebp - 0x914]
push eax
call fcn.1003b1f0
add esp, 8
jmp 0x1002aa06
push eax
lea eax, [ebp - 0x94]
push 0x32
push eax
call fcn.1005e826
push 0x400
mov esi, eax
lea eax, [ebp - 0xd14]
push 0
push eax
call fcn.10050650
add esp, 0x18
mov dword [ebp - 0x50], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x60]
movups xmmword [ebp - 0x60], xmm0
call fcn.1003b0a0
mov eax, dword [ebp - 0xd28]
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 - 0x60]
push eax
lea eax, [ebp - 0xd14]
push str._s_t__d__d___INFO____s:_d__readSn_is___s___Device_sn___s__n
push eax
call fcn.10007a40
lea ecx, [ebp - 0xd14]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a9c5
sub ecx, edx
lea eax, [ebp - 0xd14]
push ecx
push eax
call fcn.1003b1f0
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0xd28]
add eax, 0x11
push eax
call fcn.1004f8b0
add esp, 0x10
push dword [ebp - 0xd24]
test eax, eax
jne 0x1002aa1d
call fcn.1005e8a8
add esp, 4
mov eax, dword [ebp - 0xd20]
inc eax
mov dword [ebp - 0xd20], eax
cmp eax, edi
jl 0x1002a800
jmp 0x1002aa3f
mov al, byte [ebp - 0xd16]
mov byte [ebp - 0xd1c], al
mov byte [ebp - 0xd1b], 0
call fcn.1005e8a8
add esp, 4
mov byte [ebp - 0xd15], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push 2
lea eax, [ebp - 0xd1c]
mov byte [ebp - 4], 2
push eax
push 0
sub esp, 0xc
lea eax, [ebp + 0x18]
mov ecx, esp
push eax
call fcn.10008bb0
call fcn.10020280
lea ecx, [ebp + 0xc]
call fcn.10008c50
lea ecx, [ebp + 0x18]
call fcn.10008c50
mov al, byte [ebp - 0xd15]
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.1004ccd9
mov esp, ebp
pop ebp
ret 0x1c