Function at 0x1002a820
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007aa5d
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x100a2d20]
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.1006d400
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.1003b3d0
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.10007cc0
lea ecx, [ebp - 0x4ec]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a8c1
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.1003b520
push 0x80
lea eax, [ebp - 0xec]
mov byte [ebp - 0x4ed], 0
push 0
push eax
call fcn.1006d400
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 0x1002a995
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp edi, 0x80
jge 0x1002a98f
test al, 1
je 0x1002a97c
lea eax, [ecx + 0x41]
push eax
lea eax, [ebp - 0x2c]
push 0x1008fafc
push eax
call fcn.10016820
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push str.._s
push eax
call fcn.10016840
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
call esi
mov ecx, dword [ebp - 0x4f8]
cmp eax, 2
jne 0x1002a976
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 0x1002a927
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x400
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.1006d400
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.1003b3d0
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.10007cc0
lea ecx, [ebp - 0x4ec]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a9f4
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.1003b520
add esp, 8
cmp edi, 1
jge 0x1002aa29
lea ecx, [ebp + 0xc]
call fcn.10008ec0
lea ecx, [ebp + 0x18]
call fcn.10008ec0
xor al, al
jmp 0x1002ace6
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.1006d400
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.10016840
push 0x400
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.1006d400
add esp, 0x18
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.1003b3d0
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.10007cc0
lea ecx, [ebp - 0x4ec]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002aae1
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.1003b520
push 0x100901c8
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4fc]
push eax
call fcn.10044b80
mov eax, dword [ebp - 0x4fc]
add esp, 0x14
test eax, eax
jne 0x1002aba5
push 0x400
push eax
lea eax, [ebp - 0x4ec]
push eax
call fcn.1006d400
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.1003b3d0
call fcn.1003fcdf
push dword [eax]
call fcn.1004a267
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.10007cc0
lea eax, [ebp - 0x4ec]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002ab87
sub eax, edx
push eax
lea eax, [ebp - 0x4ec]
push eax
call fcn.1003b520
add esp, 8
jmp 0x1002ac60
push eax
lea eax, [ebp - 0x6c]
push 0x32
push eax
call fcn.10044cb6
push 0x400
mov esi, eax
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.1006d400
add esp, 0x18
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.1003b3d0
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.10007cc0
lea ecx, [ebp - 0x4ec]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ac22
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
call fcn.1003b520
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x500]
add eax, 0x11
push eax
call fcn.1006c4e0
add esp, 0x10
push dword [ebp - 0x4fc]
test eax, eax
jne 0x1002ac77
call fcn.10044d38
add esp, 4
mov eax, dword [ebp - 0x4f8]
inc eax
mov dword [ebp - 0x4f8], eax
cmp eax, edi
jl 0x1002aa60
jmp 0x1002ac99
mov al, byte [ebp - 0x4ee]
mov byte [ebp - 0x4f4], al
mov byte [ebp - 0x4f3], 0
call fcn.10044d38
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.10008e30
call fcn.10020780
lea ecx, [ebp + 0xc]
call fcn.10008ec0
lea ecx, [ebp + 0x18]
call fcn.10008ec0
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.100699c7
mov esp, ebp
pop ebp
ret 0x1c