Function at 0x46f720
Capabilities:
Get disk information

Disassembly:
sub esp, 0x178
push ebx
push ebp
push esi
push edi
push 0x4d47dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov ebp, 0x4f29c8
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov eax, dword [ebp - 0x6c]
lea ebx, [ebp - 0x6c]
cmp eax, esi
je 0x46fb27
cmp dword [ebp - 0xc], esi
jne 0x46fb27
cmp dword [0x4ff048], esi
jne 0x46f76c
cmp dword [ebp - 0x10], esi
je 0x46fb27
push eax
call fcn.00433640
add esp, 4
cmp eax, esi
jne 0x46fa5d
cmp dword [ebp - 8], esi
jl 0x46f78b
cmp dword [ebp - 0x10], esi
je 0x46fb22
cmp dword [ebp - 0x10], 2
jne 0x46f798
mov dword [ebp - 4], 0xfffffffe
lea eax, [ebp - 0xf0]
push eax
push 0x63
call fcn.0046b7d0
push eax
call fcn.0046fb70
add esp, 0xc
push 0x7f02
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
lea eax, [ebp + 0x98]
push ebp
push eax
lea eax, [ebp + 0x94]
push eax
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx]
push eax
call fcn.00433cf0
add esp, 0x18
test eax, eax
jne 0x46f8e1
lea ecx, [ebp + 0xc]
lea edx, [ebp + 0x610]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x590]
push edx
lea ecx, [ebp + 0xa8]
lea ebx, [ebp - 0x6c]
push eax
lea edx, [ebp + 0xa4]
push ecx
mov ecx, dword [ebx]
lea eax, [ebp + 0xa0]
lea edi, [ebp + 0x9c]
push edx
push eax
push edi
push ecx
call fcn.00436fc0
add esp, 0x38
test eax, eax
jne 0x46f8e1
mov eax, dword [edi]
xor esi, esi
test eax, eax
mov dword [esp + 0x24], esi
jle 0x46f91b
lea edx, [esp + 0x34]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [ebx]
lea ecx, [esp + 0x24]
push eax
push ecx
push esi
push edx
call fcn.00438a70
add esp, 0x14
test eax, eax
jne 0x46f8e1
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea edx, [edi + ecx]
cmp edi, edx
jge 0x46f8ca
mov eax, dword [esp + 0x10]
lea ebx, [ebp - 0x6c]
add eax, edi
lea esi, [eax*4 + 0x4f2dcc]
mov eax, dword [ebx]
lea ecx, [esi - 0x318]
push ecx
push 0
push 0
push 0
lea edx, [esi - 0x18c]
push esi
push edx
push edi
push eax
call fcn.00438bc0
add esp, 0x20
test eax, eax
jne 0x46f8c6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
inc edi
add edx, ecx
add esi, 4
cmp edi, edx
jl 0x46f88f
mov esi, dword [esp + 0x24]
mov ecx, dword [ebp + 0x9c]
inc esi
cmp esi, ecx
mov dword [esp + 0x24], esi
jl 0x46f851
test eax, eax
je 0x46f91b
mov ecx, eax
and ecx, 0xf000000
cmp ecx, 0xc000000
jne 0x46f9d5
mov ecx, dword [esp + 0x18]
cmp ecx, 3
jge 0x46f9d5
mov edx, ecx
push 0xfa
inc edx
mov dword [esp + 0x1c], edx
call fcn.00445c60
add esp, 4
jmp 0x46f7ca
lea edi, [ebp - 0xf0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
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 + 0x8c]
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 ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x34]
and ecx, 3
lea ebx, [ebp + 0xac]
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp + 0xcd]
lea ecx, [esp + 0x30]
push esi
lea edi, [ebp + 0xe8]
push eax
push ecx
push edi
push 0x21
lea edx, [esp + 0xa0]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x46f9b5
mov byte [ebx], al
mov byte [esi], al
mov dword [edi], 0xffffffff
mov eax, dword [0x4ff0b4]
mov ecx, dword [esp + 0x14]
lea esi, [ebp + 0x10]
push eax
push ecx
push esi
call fcn.0046ed00
add esp, 0xc
mov dword [ebp - 8], 1
jmp 0x46fa0f
mov edx, dword [ebp - 0x6c]
push eax
push edx
lea esi, [ebp + 0x10]
call fcn.0046bbd0
add esp, 8
push eax
push 0x49f1a0
push 0xa4
call fcn.0046b4e0
add esp, 4
push eax
push str._s_s_s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov dword [ebp - 8], 2
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.0046fbe0
mov edx, dword [ebp + 0x690]
mov eax, dword [0x4f28b0]
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], 3
push ecx
push edx
push 0x102e
push eax
mov dword [esp + 0x5c], esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x4f26dc]
push 0
push 0x3e8
push 0x67
push ecx
jmp 0x46fb1c
cmp dword [ebp - 8], eax
jne 0x46fa6b
cmp dword [ebp - 0x10], esi
je 0x46fb22
cmp eax, 0x82040100
mov dword [ebp - 8], eax
jne 0x46fa7c
lea ebx, [ebp + 0x10]
push 0x65
jmp 0x46fab9
cmp eax, 0x823a0200
jne 0x46fab4
cmp dword [0x4ff048], esi
je 0x46fab4
push 0x20
lea ebx, [ebp + 0x10]
call fcn.0046b4e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x46fadb
lea ebx, [ebp + 0x10]
push 0x1e
call fcn.0046b4e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x60]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x690]
mov edx, dword [0x4f28b0]
push eax
push ecx
push 0x102e
push edx
mov dword [esp + 0x78], 3
mov dword [esp + 0x84], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x4f26dc]
push 0
push 0x3e8
push 0x67
push eax
call dword [sym.imp.USER32.dll_SetTimer]
xor esi, esi
mov dword [ebp - 0x10], esi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add ebp, 0x78c
inc edi
add edx, 0x1e3
cmp ebp, 0x4fee00
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
jl 0x46f744
push 0x4d47dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x178
ret