Function at 0x4628b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x4628b9
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.00405000
mov eax, dword [ebp + 8]
call fcn.00405000
xor eax, eax
push ebp
push 0x462eec
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0046331c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00463330
xor edx, edx
push ebp
push 0x462ea2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x462e43
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
call fcn.00404b40
mov edx, dword [ebp + 8]
mov eax, 0x462f08
call fcn.00405154
test eax, eax
jle 0x462953
mov al, byte [0x462f0c]
push eax
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, 0x462f08
mov eax, dword [ebp + 8]
call fcn.0040f2b4
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0046320c
test al, al
je 0x462a0d
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004630a4
cmp dword [ebp - 0x14], 0
je 0x46298b
lea eax, [ebp - 0x14]
mov edx, 0x462f18
call fcn.00404e18
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x462f24
mov eax, dword [ebp - 4]
call fcn.00461fd4
cmp dword [ebp - 0x14], 0
je 0x462a0d
mov eax, dword [ebp - 0x14]
call fcn.00409ac4
test al, al
je 0x462a0d
push dword [ebp - 0x14]
push 0x462f44
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x4629d7
call fcn.00403c64
push dword [eax*4 + 0x4a2f1c]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404ed0
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.00461fdc
test al, al
je 0x462a0d
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
jne 0x462acb
lea edx, [ebp - 0x14]
mov eax, 0x462f50
call fcn.0040fb48
cmp dword [ebp - 0x14], 0
je 0x462a34
mov eax, dword [ebp - 0x14]
call fcn.00409ac4
test al, al
jne 0x462a5b
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x462f68
mov eax, dword [ebp - 4]
call fcn.00461fd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.0040457c
jmp 0x462ea9
push dword [ebp - 0x14]
push 0x462f44
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x462a70
call fcn.00403c64
push dword [eax*4 + 0x4a2f1c]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404ed0
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x462fa8
mov eax, dword [ebp - 4]
call fcn.00461fd4
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.00461fdc
test al, al
je 0x462acb
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
jne 0x462b56
lea edx, [ebp - 0x14]
mov eax, 0x462fc4
call fcn.0040fb48
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x462fdc
mov eax, dword [ebp - 4]
call fcn.00461fd4
cmp dword [ebp - 0x14], 0
je 0x462b56
push dword [ebp - 0x14]
push 0x462f44
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x462b20
call fcn.00403c64
push dword [eax*4 + 0x4a2f1c]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404ed0
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.00461fdc
test al, al
je 0x462b56
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
je 0x462b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.0040457c
jmp 0x462ea9
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004035f4
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 0x462e39
push 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x462ffc
mov eax, dword [ebp - 4]
call fcn.00461fd4
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
add al, 0xbd
sub al, 0x18
jae 0x462dd1
lea eax, [ebp - 0x130]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00405070
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.00408fbc
mov eax, dword [ebp - 0x12c]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 0x1c]
call fcn.00404d48
mov eax, dword [ebp - 0x13c]
mov ecx, 1
mov edx, 1
call fcn.00405070
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00408fbc
mov edx, dword [ebp - 0x134]
pop eax
call fcn.00404f5c
jne 0x462cb5
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x140]
mov edx, dword [ebp - 0x1c]
call fcn.00404d48
mov eax, dword [ebp - 0x140]
call fcn.00404e10
add eax, 1
jno 0x462c79
call fcn.00403c6c
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x462c8c
call fcn.00403c64
mov edi, eax
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 0x1c]
call fcn.00404d48
mov eax, dword [ebp - 0x144]
call fcn.00404e10
add eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x462e31
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, 0x463018
mov eax, dword [ebp - 4]
call fcn.00461fd4
mov eax, esi
add eax, 0xfffffffe
sub eax, 2
jb 0x462cf6
dec eax
sub eax, 2
jae 0x462dd1
test bl, bl
jne 0x462dd1
mov eax, esi
add eax, 0xfffffffe
sub eax, 2
jb 0x462d12
dec eax
sub eax, 2
jae 0x462dd1
push 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x463034
mov eax, dword [ebp - 4]
call fcn.00461fd4
mov eax, dword [ebp - 0x1c]
mov dl, byte [eax]
mov eax, dword [ebp - 4]
call fcn.004630f8
test al, al
je 0x462dbc
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.00404d48
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0xc]
cmp edx, 4
jbe 0x462d73
call fcn.00403c64
mov edx, dword [edx*4 + 0x4a2f1c]
call fcn.00404e18
mov edx, dword [ebp - 0x148]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00461fdc
test al, al
je 0x462dd1
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14c]
call fcn.00409698
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00404b94
mov byte [ebp - 0xd], 1
jmp 0x462e39
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x463068
mov eax, dword [ebp - 4]
call fcn.00461fd4
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x1c]
call fcn.00404d48
mov eax, dword [ebp - 0x150]
call fcn.00404e10
add eax, 1
jno 0x462dfa
call fcn.00403c6c
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x462e0d
call fcn.00403c64
mov edi, eax
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 0x1c]
call fcn.00404d48
mov eax, dword [ebp - 0x154]
call fcn.00404e10
add eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
test edi, edi
ja 0x462ba2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x462e8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462ea9
mov eax, dword [ebp - 4]
call fcn.00463398
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462ef3
lea eax, [ebp - 0x154]
mov edx, 0xb
call fcn.00404b64
lea eax, [ebp - 0x20]
call fcn.00404b40
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404b64
lea eax, [ebp - 8]
call fcn.00404b40
lea eax, [ebp + 8]
call fcn.00404b40
ret