Function at 0x465b24
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x465b2d
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.00404a0c
mov eax, dword [ebp + 8]
call fcn.00404a0c
xor eax, eax
push ebp
push 0x466150
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00466580
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00466594
xor edx, edx
push ebp
push 0x466106
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4660a7
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
call fcn.0040454c
mov edx, dword [ebp + 8]
mov eax, 0x46616c
call fcn.00404b60
test eax, eax
jle 0x465bc7
mov al, byte [0x466170]
push eax
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, 0x46616c
mov eax, dword [ebp + 8]
call fcn.0040dd6c
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 4]
call fcn.00466470
test al, al
je 0x465c85
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00466308
cmp dword [ebp - 0x14], 0
je 0x465c01
lea eax, [ebp - 0x14]
mov edx, 0x46617c
call fcn.00404824
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x466188
mov eax, dword [ebp - 4]
call fcn.00465244
cmp dword [ebp - 0x14], 0
je 0x465c85
mov eax, dword [ebp - 0x14]
call fcn.00408d0c
test al, al
je 0x465c85
push dword [ebp - 0x14]
push 0x4661a8
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x465c4d
call fcn.0040374c
push dword [eax*4 + 0x46e000]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004048dc
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.0046524c
test al, al
je 0x465c85
mov byte [ebp - 0xd], 1
mov byte [ebp - 0x19], 1
cmp byte [ebp - 0x19], 0
jne 0x465d47
lea edx, [ebp - 0x14]
mov eax, 0x4661b4
call fcn.0040e584
cmp dword [ebp - 0x14], 0
je 0x465cae
mov eax, dword [ebp - 0x14]
call fcn.00408d0c
test al, al
jne 0x465cd5
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x4661cc
mov eax, dword [ebp - 4]
call fcn.00465244
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404034
jmp 0x46610d
push dword [ebp - 0x14]
push 0x4661a8
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x465cea
call fcn.0040374c
push dword [eax*4 + 0x46e000]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004048dc
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x46620c
mov eax, dword [ebp - 4]
call fcn.00465244
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.0046524c
test al, al
je 0x465d47
mov byte [ebp - 0xd], 1
mov byte [ebp - 0x19], 1
cmp byte [ebp - 0x19], 0
jne 0x465dd6
lea edx, [ebp - 0x14]
mov eax, 0x466228
call fcn.0040e584
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x466240
mov eax, dword [ebp - 4]
call fcn.00465244
cmp dword [ebp - 0x14], 0
je 0x465dd6
push dword [ebp - 0x14]
push 0x4661a8
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x465d9e
call fcn.0040374c
push dword [eax*4 + 0x46e000]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004048dc
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.0046524c
test al, al
je 0x465dd6
mov byte [ebp - 0xd], 1
mov byte [ebp - 0x19], 1
cmp byte [ebp - 0x19], 0
je 0x465dee
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404034
jmp 0x46610d
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.0040310c
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 0x46609d
push 0
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x466260
mov eax, dword [ebp - 4]
call fcn.00465244
mov al, byte [ebx]
add al, 0xbd
sub al, 0x18
jae 0x46603b
lea eax, [ebp - 0x130]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404a7c
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.00408398
mov eax, dword [ebp - 0x12c]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x13c]
mov edx, ebx
call fcn.00404754
mov eax, dword [ebp - 0x13c]
mov ecx, 1
mov edx, 1
call fcn.00404a7c
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00408398
mov edx, dword [ebp - 0x134]
pop eax
call fcn.00404968
jne 0x465f27
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x140]
mov edx, ebx
call fcn.00404754
mov eax, dword [ebp - 0x140]
call fcn.0040481c
add eax, 1
jno 0x465ef0
call fcn.00403754
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x465f03
call fcn.0040374c
mov esi, eax
lea eax, [ebp - 0x144]
mov edx, ebx
call fcn.00404754
mov eax, dword [ebp - 0x144]
call fcn.0040481c
add ebx, eax
add ebx, 1
jmp 0x466095
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, 0x46627c
mov eax, dword [ebp - 4]
call fcn.00465244
mov eax, edi
add eax, 0xfffffffe
sub eax, 2
jb 0x465f65
dec eax
sub eax, 2
jae 0x46603b
cmp byte [ebp - 0x19], 0
jne 0x46603b
mov eax, edi
add eax, 0xfffffffe
sub eax, 2
jb 0x465f83
dec eax
sub eax, 2
jae 0x46603b
push 0
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x466298
mov eax, dword [ebp - 4]
call fcn.00465244
mov dl, byte [ebx]
mov eax, dword [ebp - 4]
call fcn.0046635c
test al, al
je 0x466026
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.00404754
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0xc]
cmp edx, 4
jbe 0x465fdd
call fcn.0040374c
mov edx, dword [edx*4 + 0x46e000]
call fcn.00404824
mov edx, dword [ebp - 0x148]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046524c
test al, al
je 0x46603b
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14c]
call fcn.00408900
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.004045a0
mov byte [ebp - 0xd], 1
jmp 0x46609d
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x4662cc
mov eax, dword [ebp - 4]
call fcn.00465244
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x150]
mov edx, ebx
call fcn.00404754
mov eax, dword [ebp - 0x150]
call fcn.0040481c
add eax, 1
jno 0x466063
call fcn.00403754
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x466076
call fcn.0040374c
mov esi, eax
lea eax, [ebp - 0x154]
mov edx, ebx
call fcn.00404754
mov eax, dword [ebp - 0x154]
call fcn.0040481c
add ebx, eax
add ebx, 1
test esi, esi
ja 0x465e21
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4660f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46610d
mov eax, dword [ebp - 4]
call fcn.004665fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466157
lea eax, [ebp - 0x154]
mov edx, 0xb
call fcn.00404570
lea eax, [ebp - 0x20]
call fcn.0040454c
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404570
lea eax, [ebp - 8]
call fcn.0040454c
lea eax, [ebp + 8]
call fcn.0040454c
ret