Function at 0x40e2c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.0041d940
push ebx
push esi
push edi
lea edi, [ebp - 0x1190]
mov ecx, 0x464
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 eax, dword [str..C:]
mov dword [ebp - 0x1070], eax
mov ecx, dword [0x4268bc]
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 0x40e33e
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 0x40e361
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov dword [ebp + ecx*4 - 0x10c8], 0
jmp 0x40e335
push 0x78
push 0
lea edx, [ebp - 0x1144]
push edx
call fcn.0041d210
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x1144]
push eax
push 0x78
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp esi, esp
call fcn.0041cdce
mov byte [ebp - 4], 0
jmp 0x40e39b
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 - 0x1144]
test eax, eax
je 0x40e4a2
mov cl, byte [ebp - 0x1074]
mov byte [ebp - 0x106c], cl
mov edx, dword [ebp - 4]
and edx, 0xff
mov al, byte [ebp + edx*4 - 0x1144]
push eax
call fcn.00410510
add esp, 4
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov byte [ebp + ecx*4 - 0x1144], al
mov edx, dword [ebp - 4]
and edx, 0xff
movsx eax, byte [ebp + edx*4 - 0x1144]
push eax
push str.._c:
lea ecx, [ebp - 0x1070]
push ecx
call fcn.0041d5e4
add esp, 0xc
mov edx, dword [ebp - 4]
and edx, 0xff
movsx eax, byte [ebp + edx*4 - 0x1144]
cmp eax, 0x41
jge 0x40e44b
mov ecx, dword [ebp - 4]
and ecx, 0xff
movsx edx, byte [ebp + ecx*4 - 0x1144]
push edx
push str..PHYSICALDRIVE_c
lea eax, [ebp - 0x1070]
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 - 0x1070]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.0041cdce
mov dword [ebp - 0x1078], eax
cmp dword [ebp - 0x1078], 0xffffffff
jne 0x40e484
jmp 0x40e392
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1078]
mov dword [ebp + edx*4 - 0x10c8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40e392
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x114c], 0
mov dword [ebp - 0x1150], 0
mov byte [ebp - 4], 0
jmp 0x40e4cf
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 0x40e623
lea ecx, [ebp - 0x1008]
push ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp + edx*4 - 0x10c8]
push eax
call fcn.0040ced0
add esp, 8
push 0x10
lea ecx, [ebp - 0x1000]
push ecx
push 0x4291b0
call fcn.0041d970
add esp, 0xc
test eax, eax
jne 0x40e5fe
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp + edx*4 - 0x10c8]
mov dword [0x42d768], eax
mov ecx, dword [0x42d74c]
mov dword [ebp - 0x1078], ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp + edx*4 - 0x10c8]
mov dword [0x42d74c], eax
lea ecx, [ebp - 0x1150]
push ecx
push 0x1f
call fcn.00404d40
mov dword [ebp - 0x114c], eax
mov edx, dword [ebp - 0x1078]
mov dword [0x42d74c], edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x140
mov ecx, dword [ebp - 0x1150]
cmp ecx, dword [eax + 0x42b094]
jne 0x40e5dd
mov edx, dword [ebp - 4]
and edx, 0xff
mov al, byte [ebp + edx*4 - 0x1144]
mov byte [ebp - 0x10cc], al
mov ecx, dword [ebp - 0x1148]
add ecx, 1
mov dword [ebp - 0x1148], ecx
mov edx, dword [ebp + 0xc]
mov al, byte [ebp - 0x10cc]
mov byte [edx], al
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov esi, esp
mov edx, dword [ebp + ecx*4 - 0x10c8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.0041cdce
jmp 0x40e623
mov eax, dword [ebp - 4]
and eax, 0xff
mov esi, esp
mov ecx, dword [ebp + eax*4 - 0x10c8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.0041cdce
jmp 0x40e61e
mov edx, dword [ebp - 4]
and edx, 0xff
mov esi, esp
mov eax, dword [ebp + edx*4 - 0x10c8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.0041cdce
jmp 0x40e4c6
mov eax, dword [ebp - 0x1148]
pop edi
pop esi
pop ebx
add esp, 0x1190
cmp ebp, esp
call fcn.0041cdce
mov esp, ebp
pop ebp
ret