Function at 0x500dfc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x50110a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x5010d8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x105
lea eax, [ebp - 0x121]
push eax
lea eax, [ebp - 0x128]
mov edx, ebx
call fcn.004054cc
lea eax, [ebp - 0x128]
mov edx, 0x501124
call fcn.004055b0
mov eax, dword [ebp - 0x128]
call fcn.00405774
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x501053
lea eax, [ebp - 0x121]
call fcn.0040b190
mov ecx, eax
lea edx, [ebp - 0x121]
mov eax, esi
call fcn.004053d4
mov eax, dword [esi]
call fcn.004055a4
test eax, eax
jle 0x500f10
lea edx, [ebp - 0x12c]
mov eax, dword [esi]
call fcn.0040fe3c
mov edx, dword [ebp - 0x12c]
mov eax, esi
call fcn.00405338
mov eax, dword [esi]
movzx eax, byte [eax]
call fcn.004034c4
push eax
mov eax, esi
call fcn.004057d4
pop edx
mov byte [eax], dl
lea eax, [ebp - 0x130]
mov edx, ebx
call fcn.004054cc
lea eax, [ebp - 0x130]
mov edx, 0x501124
call fcn.004055b0
mov eax, dword [ebp - 0x130]
call fcn.00405774
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp al, 4
jne 0x50101a
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00500cb0
movzx eax, byte [ebp - 9]
sub al, 1
jb 0x500f67
je 0x500fb1
dec al
je 0x500fe6
jmp 0x50104c
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00500d80
push dword [esi]
push 0x501130
push dword [ebp - 8]
push 0x501140
mov eax, ebx
call fcn.004034c4
mov edx, eax
lea eax, [ebp - 0x134]
call fcn.004054cc
push dword [ebp - 0x134]
push 0x50114c
mov eax, esi
mov edx, 6
call fcn.00405678
jmp 0x50104c
push dword [ebp - 4]
push 0x501158
mov eax, ebx
call fcn.004034c4
mov edx, eax
lea eax, [ebp - 0x138]
call fcn.004054cc
push dword [ebp - 0x138]
push 0x50114c
mov eax, esi
mov edx, 4
call fcn.00405678
jmp 0x50104c
push dword [esi]
push 0x501158
mov eax, ebx
call fcn.004034c4
mov edx, eax
lea eax, [ebp - 0x13c]
call fcn.004054cc
push dword [ebp - 0x13c]
push 0x50114c
mov eax, esi
mov edx, 4
call fcn.00405678
jmp 0x50104c
push dword [esi]
push 0x501158
mov eax, ebx
call fcn.004034c4
mov edx, eax
lea eax, [ebp - 0x140]
call fcn.004054cc
push dword [ebp - 0x140]
push 0x50114c
mov eax, esi
mov edx, 4
call fcn.00405678
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
jmp 0x5010c1
mov edx, 0x50115c
lea eax, [ebp - 0x144]
call fcn.00403950
mov eax, ebx
call fcn.004034c4
mov edx, eax
lea eax, [ebp - 0x148]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x148]
lea eax, [ebp - 0x144]
mov cl, 2
call fcn.00403920
lea edx, [ebp - 0x144]
lea eax, [ebp - 0x150]
call fcn.00403950
mov edx, 0x501160
lea eax, [ebp - 0x150]
mov cl, 4
call fcn.00403920
lea edx, [ebp - 0x150]
mov eax, esi
call fcn.00405548
mov dword [edi], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5010df
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetErrorMode
ret