Function at 0x46510c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x465115
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.00404e60
mov eax, dword [ebp + 8]
call fcn.00404e60
xor eax, eax
push ebp
push 0x465748
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00465b78
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00465b8c
xor edx, edx
push ebp
push 0x4656fe
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x46569f
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
call fcn.004049a0
mov edx, dword [ebp + 8]
mov eax, 0x465764
call fcn.00404fb4
test eax, eax
jle 0x4651af
mov al, byte [0x465768]
push eax
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, 0x465764
mov eax, dword [ebp + 8]
call fcn.0040e3e0
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00465a68
test al, al
je 0x465269
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00465900
cmp dword [ebp - 0x14], 0
je 0x4651e7
lea eax, [ebp - 0x14]
mov edx, 0x465774
call fcn.00404c78
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x465780
mov eax, dword [ebp - 4]
call fcn.00464824
cmp dword [ebp - 0x14], 0
je 0x465269
mov eax, dword [ebp - 0x14]
call fcn.00409268
test al, al
je 0x465269
push dword [ebp - 0x14]
push 0x4657a0
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x465233
call fcn.00403b60
push dword [eax*4 + 0x46bffc]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404d30
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.0046482c
test al, al
je 0x465269
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
jne 0x465327
lea edx, [ebp - 0x14]
mov eax, 0x4657ac
call fcn.0040ec74
cmp dword [ebp - 0x14], 0
je 0x465290
mov eax, dword [ebp - 0x14]
call fcn.00409268
test al, al
jne 0x4652b7
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x4657c4
mov eax, dword [ebp - 4]
call fcn.00464824
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404460
jmp 0x465705
push dword [ebp - 0x14]
push 0x4657a0
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x4652cc
call fcn.00403b60
push dword [eax*4 + 0x46bffc]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404d30
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x465804
mov eax, dword [ebp - 4]
call fcn.00464824
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.0046482c
test al, al
je 0x465327
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
jne 0x4653b2
lea edx, [ebp - 0x14]
mov eax, 0x465820
call fcn.0040ec74
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x465838
mov eax, dword [ebp - 4]
call fcn.00464824
cmp dword [ebp - 0x14], 0
je 0x4653b2
push dword [ebp - 0x14]
push 0x4657a0
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x46537c
call fcn.00403b60
push dword [eax*4 + 0x46bffc]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404d30
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.0046482c
test al, al
je 0x4653b2
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
je 0x4653c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404460
jmp 0x465705
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403520
lea eax, [ebp - 0x120]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetLogicalDriveStringsA
mov edi, eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x1c], eax
test edi, edi
jbe 0x465695
push 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x465858
mov eax, dword [ebp - 4]
call fcn.00464824
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
add al, 0xbd
sub al, 0x18
jae 0x46562d
lea eax, [ebp - 0x130]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404ed0
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.004088cc
mov eax, dword [ebp - 0x12c]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 0x1c]
call fcn.00404ba8
mov eax, dword [ebp - 0x13c]
mov ecx, 1
mov edx, 1
call fcn.00404ed0
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004088cc
mov edx, dword [ebp - 0x134]
pop eax
call fcn.00404dbc
jne 0x465511
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x140]
mov edx, dword [ebp - 0x1c]
call fcn.00404ba8
mov eax, dword [ebp - 0x140]
call fcn.00404c70
add eax, 1
jno 0x4654d5
call fcn.00403b68
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x4654e8
call fcn.00403b60
mov edi, eax
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 0x1c]
call fcn.00404ba8
mov eax, dword [ebp - 0x144]
call fcn.00404c70
add eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x46568d
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov esi, eax
push 0
mov dword [ebp - 0x128], esi
mov byte [ebp - 0x124], 0
lea ecx, [ebp - 0x128]
mov edx, 0x465874
mov eax, dword [ebp - 4]
call fcn.00464824
mov eax, esi
add eax, 0xfffffffe
sub eax, 2
jb 0x465552
dec eax
sub eax, 2
jae 0x46562d
test bl, bl
jne 0x46562d
mov eax, esi
add eax, 0xfffffffe
sub eax, 2
jb 0x46556e
dec eax
sub eax, 2
jae 0x46562d
push 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x465890
mov eax, dword [ebp - 4]
call fcn.00464824
mov eax, dword [ebp - 0x1c]
mov dl, byte [eax]
mov eax, dword [ebp - 4]
call fcn.00465954
test al, al
je 0x465618
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0x1c]
call fcn.00404ba8
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0xc]
cmp edx, 4
jbe 0x4655cf
call fcn.00403b60
mov edx, dword [edx*4 + 0x46bffc]
call fcn.00404c78
mov edx, dword [ebp - 0x148]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046482c
test al, al
je 0x46562d
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14c]
call fcn.00408e5c
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.004049f4
mov byte [ebp - 0xd], 1
jmp 0x465695
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x4658c4
mov eax, dword [ebp - 4]
call fcn.00464824
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x1c]
call fcn.00404ba8
mov eax, dword [ebp - 0x150]
call fcn.00404c70
add eax, 1
jno 0x465656
call fcn.00403b68
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x465669
call fcn.00403b60
mov edi, eax
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 0x1c]
call fcn.00404ba8
mov eax, dword [ebp - 0x154]
call fcn.00404c70
add eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
test edi, edi
ja 0x4653fe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4656e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465705
mov eax, dword [ebp - 4]
call fcn.00465bf4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46574f
lea eax, [ebp - 0x154]
mov edx, 0xb
call fcn.004049c4
lea eax, [ebp - 0x20]
call fcn.004049a0
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004049c4
lea eax, [ebp - 8]
call fcn.004049a0
lea eax, [ebp + 8]
call fcn.004049a0
ret