Function at 0x46f144
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x46f14d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404a28
mov eax, dword [ebp + 8]
call fcn.00404a28
xor eax, eax
push ebp
push 0x46f770
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0046fba0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0046fbb4
xor edx, edx
push ebp
push 0x46f726
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x46f6c7
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
call fcn.00404568
mov edx, dword [ebp + 8]
mov eax, 0x46f78c
call fcn.00404b7c
test eax, eax
jle 0x46f1e7
mov al, byte [0x46f790]
push eax
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, 0x46f78c
mov eax, dword [ebp + 8]
call fcn.0040e100
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 4]
call fcn.0046fa90
test al, al
je 0x46f2a5
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0046f928
cmp dword [ebp - 0x14], 0
je 0x46f221
lea eax, [ebp - 0x14]
mov edx, 0x46f79c
call fcn.00404840
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x46f7a8
mov eax, dword [ebp - 4]
call fcn.0046e874
cmp dword [ebp - 0x14], 0
je 0x46f2a5
mov eax, dword [ebp - 0x14]
call fcn.00409024
test al, al
je 0x46f2a5
push dword [ebp - 0x14]
push 0x46f7c8
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x46f26d
call fcn.00403768
push dword [eax*4 + 0x475ffc]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004048f8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0046e87c
test al, al
je 0x46f2a5
mov byte [ebp - 0xd], 1
mov byte [ebp - 0x19], 1
cmp byte [ebp - 0x19], 0
jne 0x46f367
lea edx, [ebp - 0x14]
mov eax, 0x46f7d4
call fcn.0040e918
cmp dword [ebp - 0x14], 0
je 0x46f2ce
mov eax, dword [ebp - 0x14]
call fcn.00409024
test al, al
jne 0x46f2f5
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x46f7ec
mov eax, dword [ebp - 4]
call fcn.0046e874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404050
jmp 0x46f72d
push dword [ebp - 0x14]
push 0x46f7c8
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x46f30a
call fcn.00403768
push dword [eax*4 + 0x475ffc]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004048f8
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x46f82c
mov eax, dword [ebp - 4]
call fcn.0046e874
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0046e87c
test al, al
je 0x46f367
mov byte [ebp - 0xd], 1
mov byte [ebp - 0x19], 1
cmp byte [ebp - 0x19], 0
jne 0x46f3f6
lea edx, [ebp - 0x14]
mov eax, 0x46f848
call fcn.0040e918
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x46f860
mov eax, dword [ebp - 4]
call fcn.0046e874
cmp dword [ebp - 0x14], 0
je 0x46f3f6
push dword [ebp - 0x14]
push 0x46f7c8
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x46f3be
call fcn.00403768
push dword [eax*4 + 0x475ffc]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004048f8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0046e87c
test al, al
je 0x46f3f6
mov byte [ebp - 0xd], 1
mov byte [ebp - 0x19], 1
cmp byte [ebp - 0x19], 0
je 0x46f40e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404050
jmp 0x46f72d
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403128
lea eax, [ebp - 0x120]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetLogicalDriveStringsA
mov esi, eax
lea ebx, [ebp - 0x120]
test esi, esi
jbe 0x46f6bd
push 0
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x46f880
mov eax, dword [ebp - 4]
call fcn.0046e874
mov al, byte [ebx]
add al, 0xbd
sub al, 0x18
jae 0x46f65b
lea eax, [ebp - 0x130]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404a98
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.00408690
mov eax, dword [ebp - 0x12c]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x13c]
mov edx, ebx
call fcn.00404770
mov eax, dword [ebp - 0x13c]
mov ecx, 1
mov edx, 1
call fcn.00404a98
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00408690
mov edx, dword [ebp - 0x134]
pop eax
call fcn.00404984
jne 0x46f547
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x140]
mov edx, ebx
call fcn.00404770
mov eax, dword [ebp - 0x140]
call fcn.00404838
add eax, 1
jno 0x46f510
call fcn.00403770
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x46f523
call fcn.00403768
mov esi, eax
lea eax, [ebp - 0x144]
mov edx, ebx
call fcn.00404770
mov eax, dword [ebp - 0x144]
call fcn.00404838
add ebx, eax
add ebx, 1
jmp 0x46f6b5
push ebx
call sub.kernel32.dll_GetDriveTypeA
mov edi, eax
push 0
mov dword [ebp - 0x128], edi
mov byte [ebp - 0x124], 0
lea ecx, [ebp - 0x128]
mov edx, 0x46f89c
mov eax, dword [ebp - 4]
call fcn.0046e874
mov eax, edi
add eax, 0xfffffffe
sub eax, 2
jb 0x46f585
dec eax
sub eax, 2
jae 0x46f65b
cmp byte [ebp - 0x19], 0
jne 0x46f65b
mov eax, edi
add eax, 0xfffffffe
sub eax, 2
jb 0x46f5a3
dec eax
sub eax, 2
jae 0x46f65b
push 0
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x46f8b8
mov eax, dword [ebp - 4]
call fcn.0046e874
mov dl, byte [ebx]
mov eax, dword [ebp - 4]
call fcn.0046f97c
test al, al
je 0x46f646
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x148]
mov edx, ebx
call fcn.00404770
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0xc]
cmp edx, 4
jbe 0x46f5fd
call fcn.00403768
mov edx, dword [edx*4 + 0x475ffc]
call fcn.00404840
mov edx, dword [ebp - 0x148]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046e87c
test al, al
je 0x46f65b
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14c]
call fcn.00408bf8
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.004045bc
mov byte [ebp - 0xd], 1
jmp 0x46f6bd
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x46f8ec
mov eax, dword [ebp - 4]
call fcn.0046e874
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x150]
mov edx, ebx
call fcn.00404770
mov eax, dword [ebp - 0x150]
call fcn.00404838
add eax, 1
jno 0x46f683
call fcn.00403770
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x46f696
call fcn.00403768
mov esi, eax
lea eax, [ebp - 0x154]
mov edx, ebx
call fcn.00404770
mov eax, dword [ebp - 0x154]
call fcn.00404838
add ebx, eax
add ebx, 1
test esi, esi
ja 0x46f441
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46f710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f72d
mov eax, dword [ebp - 4]
call fcn.0046fc1c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f777
lea eax, [ebp - 0x154]
mov edx, 0xb
call fcn.0040458c
lea eax, [ebp - 0x20]
call fcn.00404568
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040458c
lea eax, [ebp - 8]
call fcn.00404568
lea eax, [ebp + 8]
call fcn.00404568
ret