Function at 0x4774d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2d4d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4c3008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00401530
movzx eax, byte [0x4c5e81]
test eax, eax
jne 0x477657
mov ecx, dword [ebp + 8]
call fcn.00401530
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x47752e
xor al, al
jmp 0x47776d
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402940
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401380
push eax
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x477565
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jbe 0x477580
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004012a0
mov al, byte [ebp - 0xd]
jmp 0x47776d
lea ecx, [ebp - 0x54]
call fcn.004740e0
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
jmp 0x4775a5
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x28]
jae 0x477611
lea ecx, [ebp - 0x18]
call fcn.00401380
mov ecx, dword [ebp - 0x14]
movsx edx, byte [eax + ecx]
test edx, edx
jne 0x47760f
lea ecx, [ebp - 0x18]
call fcn.00401380
add eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
call fcn.00474510
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x6c]
push edx
call fcn.00472ba0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.004012a0
jmp 0x47759c
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x28]
jne 0x477622
mov dword [ebp - 0x3c], 1
jmp 0x477629
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
mov byte [ebp - 0xe], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004012a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004012a0
mov al, byte [ebp - 0xe]
jmp 0x47776d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x477671
xor al, al
jmp 0x47776d
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004028f0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00401380
push eax
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4776a8
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
jbe 0x4776c3
mov byte [ebp - 0xf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004012a0
mov al, byte [ebp - 0xf]
jmp 0x47776d
lea ecx, [ebp - 0x60]
call fcn.00474320
mov byte [ebp - 4], 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0
jmp 0x4776e8
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x30]
jae 0x477731
lea ecx, [ebp - 0x20]
call fcn.00401380
mov ecx, dword [ebp - 0x1c]
movzx edx, word [eax + ecx*2]
test edx, edx
jne 0x47772f
lea ecx, [ebp - 0x20]
call fcn.00401380
mov ecx, dword [ebp - 0x38]
lea edx, [eax + ecx*2]
push edx
lea ecx, [ebp - 0x60]
call fcn.00474380
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401620
jmp 0x4776df
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x30]
jne 0x477742
mov dword [ebp - 0x40], 1
jmp 0x477749
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov byte [ebp - 0x10], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.004012a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004012a0
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4