Function at 0x496f7c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004050d8
xor eax, eax
push ebp
push 0x497195
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404ef0
test eax, eax
jne 0x496fd7
mov eax, dword [ebp - 8]
call fcn.00404c1c
jmp 0x497165
lea eax, [ebp - 0xc]
mov edx, 0xff
call fcn.00405274
mov eax, dword [ebp - 0xc]
call fcn.004050e8
push eax
push 0xff
call sub.kernel32.dll_GetLogicalDriveStringsA
mov dl, 1
mov eax, dword [0x415a5c]
call fcn.00403d38
mov esi, eax
mov ebx, 1
mov eax, dword [ebp - 0xc]
call fcn.004050e8
mov edi, eax
jmp 0x49703d
mov edx, dword [ebp - 0xc]
test al, al
jne 0x49703c
lea eax, [ebp - 0x1c]
mov edx, edi
call fcn.00404e0c
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0xc]
call fcn.00405140
lea edi, [eax + ebx]
inc ebx
mov eax, dword [ebp - 0xc]
mov al, byte [eax + ebx - 1]
test al, al
jne 0x497016
mov edx, dword [ebp - 0xc]
cmp byte [edx + ebx], 0
jne 0x497016
lea eax, [ebp - 0x20]
mov edx, edi
call fcn.00404e0c
mov edx, dword [ebp - 0x20]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00405274
lea eax, [ebp - 0x14]
mov edx, pe_nt_image_headers32
call fcn.00405274
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jb 0x49714c
inc eax
mov dword [ebp - 0x18], eax
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
mov ecx, 2
mov edx, 1
call fcn.00405148
push pe_nt_image_headers32
mov eax, dword [ebp - 0x14]
call fcn.004050e8
push eax
mov eax, dword [ebp - 0x10]
call fcn.004050e8
push eax
call sub.kernel32.dll_QueryDosDeviceA
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00433658
test al, al
je 0x497142
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004050e8
mov edx, eax
lea eax, [ebp - 0x12c]
call fcn.0040387c
lea edx, [ebp - 0x12c]
lea eax, [ebp - 0x2c]
call fcn.00404e78
lea eax, [ebp - 0x2c]
mov edx, 0x4971ac
call fcn.00404ef8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
pop ecx
call fcn.0043362c
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00405274
mov eax, esi
call fcn.00403d68
jmp 0x497165
inc ebx
dec dword [ebp - 0x18]
jne 0x497092
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00405274
mov eax, esi
call fcn.00403d68
mov eax, dword [ebp - 8]
call fcn.00404c1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49719c
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.00404c40
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404c40
lea eax, [ebp - 4]
call fcn.00404c1c
ret