Function at 0x1002a690
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a68d
mov eax, dword fs:[0]
push eax
sub esp, 0xd1c
mov eax, dword [0x100a249c]
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.10050780
add esp, 0xc
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
call fcn.1003b200
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.10007a20
lea ecx, [ebp - 0x514]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a731
sub ecx, edx
lea eax, [ebp - 0x514]
push ecx
push eax
call fcn.1003b350
push 0x80
lea eax, [ebp - 0x114]
mov byte [ebp - 0xd15], 0
push 0
push eax
call fcn.10050780
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 0x1002a805
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp edi, 0x80
jge 0x1002a7ff
test al, 1
je 0x1002a7ec
lea eax, [ecx + 0x41]
push eax
lea eax, [ebp - 0x18]
push 0x1008fc6c
push eax
call fcn.100164c0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push str.._s
push eax
call fcn.100164e0
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
call esi
mov ecx, dword [ebp - 0xd20]
cmp eax, 2
jne 0x1002a7e6
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 0x1002a797
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x400
lea eax, [ebp - 0x514]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
call fcn.1003b200
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.10007a20
lea ecx, [ebp - 0x514]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a864
sub ecx, edx
lea eax, [ebp - 0x514]
push ecx
push eax
call fcn.1003b350
add esp, 8
cmp edi, 1
jge 0x1002a899
lea ecx, [ebp + 0xc]
call fcn.10008c30
lea ecx, [ebp + 0x18]
call fcn.10008c30
xor al, al
jmp 0x1002ab5c
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.10050780
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.100164e0
push 0x400
lea eax, [ebp - 0x514]
push 0
push eax
call fcn.10050780
add esp, 0x18
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
call fcn.1003b200
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.10007a20
lea ecx, [ebp - 0x514]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a951
sub ecx, edx
lea eax, [ebp - 0x514]
push ecx
push eax
call fcn.1003b350
push 0x10090338
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xd24]
push eax
call fcn.1005e820
mov eax, dword [ebp - 0xd24]
add esp, 0x14
test eax, eax
jne 0x1002aa15
push 0x400
push eax
lea eax, [ebp - 0x914]
push eax
call fcn.10050780
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x4c]
movups xmmword [ebp - 0x4c], xmm0
call fcn.1003b200
call fcn.1005997c
push dword [eax]
call fcn.10063eb2
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.10007a20
lea eax, [ebp - 0x914]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002a9f7
sub eax, edx
push eax
lea eax, [ebp - 0x914]
push eax
call fcn.1003b350
add esp, 8
jmp 0x1002aad6
push eax
lea eax, [ebp - 0x94]
push 0x32
push eax
call fcn.1005e956
push 0x400
mov esi, eax
lea eax, [ebp - 0xd14]
push 0
push eax
call fcn.10050780
add esp, 0x18
mov dword [ebp - 0x50], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x60]
movups xmmword [ebp - 0x60], xmm0
call fcn.1003b200
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.10007a20
lea ecx, [ebp - 0xd14]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002aa95
sub ecx, edx
lea eax, [ebp - 0xd14]
push ecx
push eax
call fcn.1003b350
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0xd28]
add eax, 0x11
push eax
call fcn.1004f9e0
add esp, 0x10
push dword [ebp - 0xd24]
test eax, eax
jne 0x1002aaed
call fcn.1005e9d8
add esp, 4
mov eax, dword [ebp - 0xd20]
inc eax
mov dword [ebp - 0xd20], eax
cmp eax, edi
jl 0x1002a8d0
jmp 0x1002ab0f
mov al, byte [ebp - 0xd16]
mov byte [ebp - 0xd1c], al
mov byte [ebp - 0xd1b], 0
call fcn.1005e9d8
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.10008b90
call fcn.100204d0
lea ecx, [ebp + 0xc]
call fcn.10008c30
lea ecx, [ebp + 0x18]
call fcn.10008c30
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.1004ce09
mov esp, ebp
pop ebp
ret 0x1c