Function at 0x40cff0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1188
call fcn.0041d230
push ebx
push esi
push edi
lea edi, [ebp - 0x1188]
mov ecx, 0x462
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov byte [ebp - 0x1008], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1007]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x100c], 0
mov dword [0x421c94], 0
mov eax, dword [str..C:]
mov dword [ebp - 0x1070], eax
mov ecx, dword [0x41ed3c]
mov dword [ebp - 0x106c], ecx
mov ecx, 0x17
xor eax, eax
lea edi, [ebp - 0x1068]
rep stosd dword es:[edi], eax
mov byte [ebp - 4], 0
jmp 0x40d078
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 0x40d09b
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov dword [ebp + ecx*4 - 0x10c4], 0
jmp 0x40d06f
push 0x78
push 0
lea edx, [ebp - 0x113c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x113c]
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 0x40d0d5
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 - 0x113c]
test eax, eax
je 0x40d1d0
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov dl, byte [ebp + ecx*4 - 0x113c]
push edx
call fcn.00410500
add esp, 4
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov byte [ebp + ecx*4 - 0x113c], al
mov edx, dword [ebp - 4]
and edx, 0xff
movsx eax, byte [ebp + edx*4 - 0x113c]
push eax
push str.._c:
lea ecx, [ebp - 0x1070]
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
mov edx, dword [ebp - 4]
and edx, 0xff
movsx eax, byte [ebp + edx*4 - 0x113c]
cmp eax, 0x41
jge 0x40d179
mov ecx, dword [ebp - 4]
and ecx, 0xff
movsx edx, byte [ebp + ecx*4 - 0x113c]
push edx
push str..PHYSICALDRIVE_c
lea eax, [ebp - 0x1070]
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 - 0x1070]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x1074], eax
cmp dword [ebp - 0x1074], 0xffffffff
jne 0x40d1b2
jmp 0x40d0cc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1074]
mov dword [ebp + edx*4 - 0x10c4], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40d0cc
mov dword [ebp - 0x1140], 0
mov dword [ebp - 0x1144], 0
mov dword [ebp - 0x1148], 0
mov byte [ebp - 4], 0
jmp 0x40d1fd
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 0x40d4da
lea ecx, [ebp - 0x1008]
push ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp + edx*4 - 0x10c4]
push eax
call fcn.0040cec0
add esp, 8
push 0x10
lea ecx, [ebp - 0x1000]
push ecx
push 0x421174
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40d31e
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp + edx*4 - 0x10c4]
mov dword [0x4244a8], eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [0x421c94]
imul edx, edx, 0x140
mov eax, dword [ebp + ecx*4 - 0x10c4]
mov dword [edx + 0x421dcc], eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [0x421c94]
imul edx, edx, 0x140
mov al, byte [ebp + ecx*4 - 0x113c]
mov byte [edx + 0x421de2], al
mov ecx, dword [0x42448c]
mov dword [ebp - 0x1074], ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp + edx*4 - 0x10c4]
mov dword [0x42448c], eax
lea ecx, [ebp - 0x1144]
push ecx
push 0x1f
call fcn.00404db0
mov dword [ebp - 0x1148], eax
mov edx, dword [ebp - 0x1074]
mov dword [0x42448c], edx
mov eax, dword [0x421c94]
imul eax, eax, 0x140
mov ecx, dword [ebp - 0x1144]
mov dword [eax + 0x421dd4], ecx
mov edx, dword [ebp - 0x1140]
add edx, 1
mov dword [ebp - 0x1140], edx
mov eax, dword [0x421c94]
add eax, 1
mov dword [0x421c94], eax
jmp 0x40d4d5
push 0x10
lea ecx, [ebp - 0x1000]
push ecx
push 0x42118c
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40d3ea
mov edx, dword [0x42448c]
mov dword [ebp - 0x1074], edx
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp + eax*4 - 0x10c4]
mov dword [0x42448c], ecx
lea edx, [ebp - 0x1144]
push edx
push 0x1f
call fcn.00404db0
mov dword [ebp - 0x1148], eax
mov eax, dword [ebp - 0x1074]
mov dword [0x42448c], eax
cmp dword [0x421c94], 1
jb 0x40d3c6
mov ecx, dword [0x421c94]
sub ecx, 1
imul ecx, ecx, 0x140
mov edx, dword [ebp - 0x1144]
cmp edx, dword [ecx + 0x421dd4]
jne 0x40d3c6
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [0x421c94]
sub ecx, 1
imul ecx, ecx, 0x140
mov dl, byte [ebp + eax*4 - 0x113c]
mov byte [ecx + 0x421de4], dl
mov eax, dword [ebp - 4]
and eax, 0xff
mov esi, esp
mov ecx, dword [ebp + eax*4 - 0x10c4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
jmp 0x40d4d5
push 0x10
lea edx, [ebp - 0x1000]
push edx
push 0x4211a4
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40d4b6
mov eax, dword [0x42448c]
mov dword [ebp - 0x1074], eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp + ecx*4 - 0x10c4]
mov dword [0x42448c], edx
lea eax, [ebp - 0x1144]
push eax
push 0x1f
call fcn.00404db0
mov dword [ebp - 0x1148], eax
mov ecx, dword [ebp - 0x1074]
mov dword [0x42448c], ecx
cmp dword [0x421c94], 1
jb 0x40d494
mov edx, dword [0x421c94]
sub edx, 1
imul edx, edx, 0x140
mov eax, dword [ebp - 0x1144]
cmp eax, dword [edx + 0x421dd4]
jne 0x40d494
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [0x421c94]
sub edx, 1
imul edx, edx, 0x140
mov al, byte [ebp + ecx*4 - 0x113c]
mov byte [edx + 0x421de3], al
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov esi, esp
mov edx, dword [ebp + ecx*4 - 0x10c4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
jmp 0x40d4d5
mov eax, dword [ebp - 4]
and eax, 0xff
mov esi, esp
mov ecx, dword [ebp + eax*4 - 0x10c4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
jmp 0x40d1f4
mov eax, dword [ebp - 0x1140]
pop edi
pop esi
pop ebx
add esp, 0x1188
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret