Function at 0x40d510
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 [0x42af54], 0
mov eax, dword [str..C:]
mov dword [ebp - 0x270], eax
mov ecx, dword [0x4268bc]
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 0x40d594
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 0x40d5b7
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov dword [ebp + ecx*4 - 0x2c4], 0
jmp 0x40d58b
push 0x78
push 0
lea edx, [ebp - 0x33c]
push edx
call fcn.0041d210
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 fcn.0041cdce
mov byte [ebp - 4], 0
jmp 0x40d5f1
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 0x40d6ec
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov dl, byte [ebp + ecx*4 - 0x33c]
push edx
call fcn.00410510
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 fcn.0041d5e4
add esp, 0xc
mov edx, dword [ebp - 4]
and edx, 0xff
movsx eax, byte [ebp + edx*4 - 0x33c]
cmp eax, 0x41
jge 0x40d695
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 fcn.0041d5e4
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 fcn.0041cdce
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0xffffffff
jne 0x40d6ce
jmp 0x40d5e8
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 0x40d5e8
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 fcn.0041d0a0
add esp, 4
mov dword [ebp - 0x37c], eax
mov byte [ebp - 4], 0
jmp 0x40d772
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 0x40d8b1
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.0040ced0
add esp, 8
mov ecx, dword [ebp - 0x37c]
push ecx
lea edx, [ebp - 0x200]
push edx
lea eax, [ebp - 0x368]
push eax
call fcn.0041d970
add esp, 0xc
test eax, eax
jne 0x40d88c
mov ecx, dword [ebp - 0x208]
and ecx, 0xff
test ecx, ecx
jne 0x40d88a
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x42af54]
imul eax, eax, 0x140
mov ecx, dword [ebp + edx*4 - 0x2c4]
mov dword [eax + 0x42b08c], ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x42af54]
imul eax, eax, 0x140
mov cl, byte [ebp + edx*4 - 0x33c]
mov byte [eax + 0x42b0a2], cl
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x42af54]
imul eax, eax, 0x140
mov cl, byte [ebp + edx*4 - 0x33c]
mov byte [eax + 0x42b0a4], cl
mov edx, dword [0x42af54]
imul edx, edx, 0x140
mov byte [edx + 0x42b0a1], 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 [0x42af54]
add ecx, 1
mov dword [0x42af54], ecx
jmp 0x40d8ac
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 fcn.0041cdce
jmp 0x40d769
mov eax, dword [ebp - 0x340]
pop edi
pop esi
pop ebx
add esp, 0x3bc
cmp ebp, esp
call fcn.0041cdce
mov esp, ebp
pop ebp
ret