Function at 0x46f480
Capabilities:
Get disk information

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, dword [esp + 0x128]
push edi
lea ebp, [esi + esi*4]
shl ebp, 5
add ebp, esi
lea ebp, [ebp + ebp*2]
shl ebp, 2
mov eax, dword [ebp + 0x4f295c]
push eax
call fcn.00433640
add esp, 4
test eax, eax
jne 0x46f6f9
lea ecx, [ebp + 0x4f29c8]
lea edx, [ebp + 0x4f2a60]
push ecx
lea eax, [ebp + 0x4f2a5c]
push edx
lea ecx, [ebp + 0x4f2a58]
push eax
mov eax, dword [ebp + 0x4f295c]
lea edx, [ebp + 0x4f29c4]
push ecx
push edx
push eax
call fcn.00433cf0
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x46f6d8
lea ecx, [ebp + 0x4f29d4]
lea edx, [ebp + 0x4f2fd8]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x4f2f58]
push edx
lea ecx, [ebp + 0x4f2a70]
push eax
lea edx, [ebp + 0x4f2a6c]
push ecx
mov ecx, dword [ebp + 0x4f295c]
lea eax, [ebp + 0x4f2a68]
lea edi, [ebp + 0x4f2a64]
push edx
push eax
push edi
push ecx
call fcn.00436fc0
mov ebx, eax
add esp, 0x38
test ebx, ebx
jne 0x46f6d8
mov dword [esp + 0x10], eax
mov eax, dword [edi]
test eax, eax
jle 0x46f604
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x4f295c]
push ecx
push edx
push eax
call fcn.00438a70
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x46f6d8
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [edi + ecx]
cmp edi, edx
jge 0x46f5e5
lea eax, [esi + esi*4]
shl eax, 5
add eax, esi
lea ecx, [edi + eax*2]
add eax, ecx
lea esi, [eax*4 + 0x4f2dcc]
mov ecx, dword [ebp + 0x4f295c]
lea edx, [esi - 0x318]
push edx
push 0
push 0
push 0
lea eax, [esi - 0x18c]
push esi
push eax
push edi
push ecx
call fcn.00438bc0
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x46f5de
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc edi
add eax, edx
add esi, 4
cmp edi, eax
jl 0x46f5a1
mov esi, dword [esp + 0x12c]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x4f2a64]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x46f551
test ebx, ebx
jne 0x46f6d8
lea edi, [ebp + 0x4f28d8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x18
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x49f898
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x24]
and ecx, 3
lea eax, [ebp + 0x4f2a74]
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp + 0x4f2a95]
lea ecx, [esp + 0x28]
push esi
lea edi, [ebp + 0x4f2ab0]
push ecx
push edx
push edi
push 0x21
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x46f699
mov byte [ebp + 0x4f2a74], al
mov byte [esi], al
mov dword [edi], 0xffffffff
mov ecx, dword [0x4ff0b4]
mov edx, dword [esp + 0x12c]
push ecx
lea eax, [ebp + 0x4f29d8]
push edx
push eax
call fcn.0046ed00
add esp, 0xc
mov dword [ebp + 0x4f29c0], 1
mov dword [ebp + 0x4f29b8], 0
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
mov dword [ebp + 0x4f29c0], 2
pop edi
mov dword [ebp + 0x4f29b8], 0
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
mov dword [ebp + 0x4f29c0], eax
pop edi
mov dword [ebp + 0x4f29b8], 0
pop esi
pop ebp
pop ebx
add esp, 0x118
ret