Function at 0x402b9a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x402e69
cmp dword [ebx], 1
jne 0x402e69
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
dec eax
cmp esi, eax
mov dword [ebp + 8], eax
jl 0x402bd2
mov eax, esi
jmp 0x402e6b
lea edi, [ebx + 0x10a8]
cmp word [edi], 0
jne 0x402c57
cmp word [ebx + 0xc30], 0
je 0x402c51
push 0x104
push edi
lea eax, [ebx + 0xc38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x402c51
push 0x45339c
lea eax, [ebx + 0xc30]
push eax
call fcn.00428a12
test eax, eax
je 0x402c51
lea eax, [ebx + 0xc30]
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x453148
push 0x45339c
lea eax, [ebp - 0x23c]
push eax
call fcn.00429755
push 0x104
push edi
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp word [edi], 0
je 0x402c6e
push edi
call fcn.0042b1c6
mov edi, dword [ebp + 0xc]
mov dword [edi + esi*4], eax
inc esi
cmp esi, dword [ebp + 8]
jl 0x402c71
jmp 0x402bcb
mov edi, dword [ebp + 0xc]
lea eax, [ebx + 0x13b0]
cmp word [eax], 0
je 0x402c90
push eax
call fcn.0042b1c6
mov dword [edi + esi*4], eax
inc esi
cmp esi, dword [ebp + 8]
jge 0x402bcb
lea eax, [ebx + 0x1330]
cmp word [eax], 0
je 0x402caf
push eax
call fcn.0042b1c6
mov dword [edi + esi*4], eax
inc esi
cmp esi, dword [ebp + 8]
jge 0x402bcb
cmp dword [ebx + 0x82c], 0
jne 0x402cd2
mov ecx, dword [ebp - 4]
push 0x200
lea eax, [ebx + 0x2c]
push eax
push dword [ebx + 0x10]
call fcn.00401684
mov dword [ebx + 0x82c], eax
and dword [ebp - 8], 0
cmp dword [ebx + 0x82c], 0
jle 0x402bcb
lea eax, [ebx + 0x2c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
test edi, edi
je 0x402e4e
lea eax, [edi + 0x13b0]
cmp word [eax], 0
je 0x402d0f
push eax
call fcn.0042b1c6
mov ecx, dword [ebp + 0xc]
mov dword [ecx + esi*4], eax
inc esi
lea eax, [ebx + 0x1f70]
push str.USBSTOR
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402d3f
push str.UASPStor
lea eax, [ebx + 0x1f70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x402e4e
mov dword [ebx + 0x3a40], 1
cmp dword [edi + 0x3a30], 0xffffffff
je 0x402e4e
and dword [ebp - 0x1c4], 0
push 0x18c
lea eax, [ebp - 0x1c0]
push 0
push eax
call fcn.00448216
mov ecx, dword [0x50d7ec]
add esp, 0xc
lea eax, [ebp - 0x1c4]
push eax
push edi
call fcn.00401fe3
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
mov dword [ebp + 0x10], eax
jle 0x402e4e
mov eax, dword [ebp + eax*4 - 0x1c4]
test eax, eax
je 0x402e3e
lea edx, [eax + 0x930]
cmp word [edx], 0
je 0x402df4
and dword [ebp - 0x34], 0
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
push 0xa
lea eax, [ebp - 0x34]
push eax
push edx
call fcn.00427f39
xor edi, edi
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x402df4
push dword [ebp + edi*4 - 0x34]
call fcn.0042b1c6
mov ecx, dword [ebp + 0xc]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp + 8]
jge 0x402bcb
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x402dd5
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + eax*4 - 0x1c4]
lea eax, [edi + 0x630]
cmp word [eax], 0
je 0x402e20
push eax
call fcn.0042b1c6
mov ecx, dword [ebp + 0xc]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp + 8]
jge 0x402bcb
add edi, 0x428
je 0x402e3e
push edi
call fcn.0042b1c6
mov ecx, dword [ebp + 0xc]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp + 8]
jge 0x402bcb
mov eax, dword [ebp + 0x10]
inc eax
cmp eax, dword [ebp - 4]
mov dword [ebp + 0x10], eax
jl 0x402d97
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp + 0x14], 4
cmp eax, dword [ebx + 0x82c]
jl 0x402ce9
jmp 0x402bcb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10