Function at 0x4c9a74
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], ecx
test dl, dl
je 0x4c9a9a
add esp, 0xfffffff0
call fcn.00403ebc
mov byte [ebp - 1], dl
mov edi, eax
xor eax, eax
push ebp
push 0x4c9e1e
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.00403b28
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0x69445652
mov dword [edi + 0x14], 0x46756e64
mov dword [0x597df0], edi
xor ebx, ebx
imul esi, ebx, 0xb
xor eax, eax
mov dword [edi + esi*8 + 0x6d288], eax
mov dword [edi + esi*8 + 0x6d290], 0xffffffff
xor eax, eax
mov dword [edi + esi*8 + 0x6d294], eax
mov dword [edi + esi*8 + 0x6d298], 0
mov dword [edi + esi*8 + 0x6d29c], 0
lea eax, [ebp - 0x108]
lea edx, [ebx + 0x41]
call fcn.00404b48
lea eax, [ebp - 0x108]
mov edx, 0x4c9e50
call fcn.00404c28
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x104]
mov ecx, 0xff
call fcn.00404bfc
lea edx, [ebp - 0x104]
lea eax, [edi + esi*8 + 0x6d2a0]
mov cl, 0x3f
call fcn.00403024
inc ebx
cmp ebx, 0x1a
jne 0x4c9ad1
xor ebx, ebx
lea eax, [ebp - 0x10c]
lea edx, [ebx + 0x41]
call fcn.00404b48
lea eax, [ebp - 0x10c]
mov edx, 0x4c9e64
call fcn.00404c28
mov eax, dword [ebp - 0x10c]
call fcn.00404e18
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4c9b98
mov edx, ebx
mov eax, edi
call fcn.004ce0f4
inc ebx
cmp ebx, 0x1a
jne 0x4c9b5b
mov dl, 1
mov eax, dword [0x467934]
call fcn.00467a8c
mov dword [edi + 0x515c], eax
mov dl, 1
mov eax, dword [0x4c9a04]
call fcn.004ce8cc
mov dword [edi + 0x11a6c8], eax
xor ebx, ebx
xor esi, esi
mov dl, 1
mov eax, dword [0x467934]
call fcn.00467a8c
imul edx, ebx, 0x64
lea edx, [edi + edx*8]
mov dword [edx + esi*4 + 0x1c], eax
inc esi
cmp esi, 0xc8
jne 0x4c9bc6
inc ebx
cmp ebx, 0x1a
jne 0x4c9bc4
xor ebx, ebx
xor eax, eax
mov dword [edi + ebx*4 + 0x6db78], eax
xor eax, eax
mov dword [edi + ebx*4 + 0x6dbe0], eax
inc ebx
cmp ebx, 0x1a
jne 0x4c9bed
xor ebx, ebx
xor eax, eax
mov dword [edi + ebx*8 + 0x6b288], eax
mov dword [edi + ebx*8 + 0x6b28c], 0xffffffff
inc ebx
cmp ebx, 0x400
jne 0x4c9c07
xor ebx, ebx
xor esi, esi
imul edx, ebx, 0xd48
lea edx, [edi + edx*8]
mov eax, esi
shl eax, 4
add eax, esi
xor ecx, ecx
mov dword [edx + eax*8 + 0x6dcc8], ecx
imul edx, ebx, 0xd48
lea edx, [edi + edx*8]
xor ecx, ecx
mov dword [edx + eax*8 + 0x6dccc], ecx
inc esi
cmp esi, 0xc8
jne 0x4c9c28
inc ebx
cmp ebx, 0x1a
jne 0x4c9c26
xor ebx, ebx
mov eax, ebx
add eax, eax
lea eax, [eax + eax*4]
mov dword [edi + eax*8 + 0x5168], 0xffffffff
mov dword [edi + eax*8 + 0x5178], 0xffffffff
xor edx, edx
mov dword [edi + eax*8 + 0x516c], edx
xor edx, edx
mov dword [edi + eax*8 + 0x5174], edx
xor edx, edx
mov dword [edi + eax*8 + 0x5170], edx
xor edx, edx
mov dword [edi + eax*8 + 0x517c], edx
mov dword [edi + eax*8 + 0x51a8], 0
mov dword [edi + eax*8 + 0x51ac], 0
mov dword [edi + eax*8 + 0x51b0], 0xffffffff
inc ebx
cmp ebx, 0x1a
jne 0x4c9c64
xor ebx, ebx
xor esi, esi
imul edx, ebx, 0x7d0
lea edx, [edi + edx*8]
mov eax, esi
add eax, eax
lea eax, [eax + eax*4]
mov dword [edx + eax*8 + 0x5988], 0xffffffff
imul edx, ebx, 0x7d0
lea edx, [edi + edx*8]
mov dword [edx + eax*8 + 0x5998], 0xffffffff
imul edx, ebx, 0x7d0
lea edx, [edi + edx*8]
xor ecx, ecx
mov dword [edx + eax*8 + 0x598c], ecx
imul edx, ebx, 0x7d0
lea edx, [edi + edx*8]
xor ecx, ecx
mov dword [edx + eax*8 + 0x5994], ecx
imul edx, ebx, 0x7d0
lea edx, [edi + edx*8]
xor ecx, ecx
mov dword [edx + eax*8 + 0x5990], ecx
imul edx, ebx, 0x7d0
lea edx, [edi + edx*8]
xor ecx, ecx
mov dword [edx + eax*8 + 0x599c], ecx
imul edx, ebx, 0x7d0
lea edx, [edi + edx*8]
mov dword [edx + eax*8 + 0x59c8], 0
mov dword [edx + eax*8 + 0x59cc], 0
imul edx, ebx, 0x7d0
lea edx, [edi + edx*8]
mov dword [edx + eax*8 + 0x59d0], 0xffffffff
inc esi
cmp esi, 0xc8
jne 0x4c9cd0
inc ebx
cmp ebx, 0x1a
jne 0x4c9cce
mov dl, 1
mov eax, dword [0x467934]
call fcn.00467a8c
mov dword [edi + 0x5160], eax
mov dl, 1
mov eax, dword [0x4c9994]
call fcn.004ce438
mov dword [edi + 0x11a6cc], eax
xor edx, edx
mov eax, edi
call fcn.004ca090
xor ecx, ecx
mov dl, 1
mov eax, dword [0x43ba40]
call fcn.0043d42c
mov ebx, eax
mov dword [edi + 0x18], ebx
mov eax, ebx
mov edx, 0x4e20
call fcn.0043d5c4
push edi
push 0x4c9e68
mov eax, dword [edi + 0x18]
call fcn.0043d5d4
mov eax, dword [edi + 0x18]
mov dl, 1
call fcn.0043d5b4
mov eax, dword [edi + 0x11a6cc]
call fcn.00421860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9e25
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.0040498c
ret