Function at 0x1002a420
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a20d
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.10050540
add esp, 0xc
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
call fcn.1003afa0
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 0x1002a4c1
sub ecx, edx
lea eax, [ebp - 0x514]
push ecx
push eax
call fcn.1003b0f0
push 0x80
lea eax, [ebp - 0x114]
mov byte [ebp - 0xd15], 0
push 0
push eax
call fcn.10050540
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 0x1002a595
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp edi, 0x80
jge 0x1002a58f
test al, 1
je 0x1002a57c
lea eax, [ecx + 0x41]
push eax
lea eax, [ebp - 0x18]
push 0x1008ec6c
push eax
call fcn.10016340
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push str.._s
push eax
call fcn.10016360
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
call esi
mov ecx, dword [ebp - 0xd20]
cmp eax, 2
jne 0x1002a576
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 0x1002a527
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x400
lea eax, [ebp - 0x514]
push 0
push eax
call fcn.10050540
add esp, 0xc
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
call fcn.1003afa0
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 0x1002a5f4
sub ecx, edx
lea eax, [ebp - 0x514]
push ecx
push eax
call fcn.1003b0f0
add esp, 8
cmp edi, 1
jge 0x1002a629
lea ecx, [ebp + 0xc]
call fcn.10008c50
lea ecx, [ebp + 0x18]
call fcn.10008c50
xor al, al
jmp 0x1002a8ec
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.10050540
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.10016360
push 0x400
lea eax, [ebp - 0x514]
push 0
push eax
call fcn.10050540
add esp, 0x18
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
call fcn.1003afa0
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 0x1002a6e1
sub ecx, edx
lea eax, [ebp - 0x514]
push ecx
push eax
call fcn.1003b0f0
push 0x1008f338
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xd24]
push eax
call fcn.1005e5e0
mov eax, dword [ebp - 0xd24]
add esp, 0x14
test eax, eax
jne 0x1002a7a5
push 0x400
push eax
lea eax, [ebp - 0x914]
push eax
call fcn.10050540
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x4c]
movups xmmword [ebp - 0x4c], xmm0
call fcn.1003afa0
call fcn.1005973c
push dword [eax]
call fcn.10063c72
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 0x1002a787
sub eax, edx
push eax
lea eax, [ebp - 0x914]
push eax
call fcn.1003b0f0
add esp, 8
jmp 0x1002a866
push eax
lea eax, [ebp - 0x94]
push 0x32
push eax
call fcn.1005e716
push 0x400
mov esi, eax
lea eax, [ebp - 0xd14]
push 0
push eax
call fcn.10050540
add esp, 0x18
mov dword [ebp - 0x50], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x60]
movups xmmword [ebp - 0x60], xmm0
call fcn.1003afa0
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 0x1002a825
sub ecx, edx
lea eax, [ebp - 0xd14]
push ecx
push eax
call fcn.1003b0f0
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0xd28]
add eax, 0x11
push eax
call fcn.1004f7a0
add esp, 0x10
push dword [ebp - 0xd24]
test eax, eax
jne 0x1002a87d
call fcn.1005e798
add esp, 4
mov eax, dword [ebp - 0xd20]
inc eax
mov dword [ebp - 0xd20], eax
cmp eax, edi
jl 0x1002a660
jmp 0x1002a89f
mov al, byte [ebp - 0xd16]
mov byte [ebp - 0xd1c], al
mov byte [ebp - 0xd1b], 0
call fcn.1005e798
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.10020240
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.1004cbc7
mov esp, ebp
pop ebp
ret 0x1c