Function at 0x40d500
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3bc
push ebx
push esi
push edi
lea edi, [ebp - 0x3bc]
mov ecx, 0xef
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov byte [ebp - 0x208], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x20c], 0
mov dword [0x421c94], 0
mov eax, dword [str..C:]
mov dword [ebp - 0x270], eax
mov ecx, dword [0x41ed3c]
mov dword [ebp - 0x26c], ecx
mov ecx, 0x17
xor eax, eax
lea edi, [ebp - 0x268]
rep stosd dword es:[edi], eax
mov byte [ebp - 4], 0
jmp 0x40d584
mov dl, byte [ebp - 4]
add dl, 1
mov byte [ebp - 4], dl
mov eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0x14
jge 0x40d5a7
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov dword [ebp + ecx*4 - 0x2c4], 0
jmp 0x40d57b
push 0x78
push 0
lea edx, [ebp - 0x33c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x33c]
push eax
push 0x78
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov byte [ebp - 4], 0
jmp 0x40d5e1
mov cl, byte [ebp - 4]
add cl, 1
mov byte [ebp - 4], cl
mov edx, dword [ebp - 4]
and edx, 0xff
movsx eax, byte [ebp + edx*4 - 0x33c]
test eax, eax
je 0x40d6dc
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov dl, byte [ebp + ecx*4 - 0x33c]
push edx
call fcn.00410500
add esp, 4
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov byte [ebp + ecx*4 - 0x33c], al
mov edx, dword [ebp - 4]
and edx, 0xff
movsx eax, byte [ebp + edx*4 - 0x33c]
push eax
push str.._c:
lea ecx, [ebp - 0x270]
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
mov edx, dword [ebp - 4]
and edx, 0xff
movsx eax, byte [ebp + edx*4 - 0x33c]
cmp eax, 0x41
jge 0x40d685
mov ecx, dword [ebp - 4]
and ecx, 0xff
movsx edx, byte [ebp + ecx*4 - 0x33c]
push edx
push str..PHYSICALDRIVE_c
lea eax, [ebp - 0x270]
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
mov esi, esp
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0xffffffff
jne 0x40d6be
jmp 0x40d5d8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x274]
mov dword [ebp + edx*4 - 0x2c4], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40d5d8
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x344], 0x200
mov ecx, 5
mov esi, str.SecuTechUnikeyDrive
lea edi, [ebp - 0x368]
rep movsd dword es:[edi], dword [esi]
xor edx, edx
mov dword [ebp - 0x354], edx
mov dword [ebp - 0x350], edx
mov dword [ebp - 0x34c], edx
mov byte [ebp - 0x378], 0
xor eax, eax
mov dword [ebp - 0x377], eax
mov dword [ebp - 0x373], eax
mov dword [ebp - 0x36f], eax
mov word [ebp - 0x36b], ax
mov byte [ebp - 0x369], al
lea ecx, [ebp - 0x368]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x37c], eax
mov byte [ebp - 4], 0
jmp 0x40d762
mov dl, byte [ebp - 4]
add dl, 1
mov byte [ebp - 4], dl
mov eax, dword [ebp - 4]
and eax, 0xff
cmp eax, dword [ebp - 8]
jge 0x40d8a1
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp + edx*4 - 0x2c4]
push eax
call fcn.0040cec0
add esp, 8
mov ecx, dword [ebp - 0x37c]
push ecx
lea edx, [ebp - 0x200]
push edx
lea eax, [ebp - 0x368]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40d87c
mov ecx, dword [ebp - 0x208]
and ecx, 0xff
test ecx, ecx
jne 0x40d87a
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x421c94]
imul eax, eax, 0x140
mov ecx, dword [ebp + edx*4 - 0x2c4]
mov dword [eax + 0x421dcc], ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x421c94]
imul eax, eax, 0x140
mov cl, byte [ebp + edx*4 - 0x33c]
mov byte [eax + 0x421de2], cl
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x421c94]
imul eax, eax, 0x140
mov cl, byte [ebp + edx*4 - 0x33c]
mov byte [eax + 0x421de4], cl
mov edx, dword [0x421c94]
imul edx, edx, 0x140
mov byte [edx + 0x421de1], 0x57
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x340]
mov dl, byte [ebp + eax*4 - 0x33c]
mov byte [ecx], dl
mov eax, dword [ebp - 0x340]
add eax, 1
mov dword [ebp - 0x340], eax
mov ecx, dword [0x421c94]
add ecx, 1
mov dword [0x421c94], ecx
jmp 0x40d89c
mov edx, dword [ebp - 4]
and edx, 0xff
mov esi, esp
mov eax, dword [ebp + edx*4 - 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
jmp 0x40d759
mov eax, dword [ebp - 0x340]
pop edi
pop esi
pop ebx
add esp, 0x3bc
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret