Function at 0x4153d9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468907
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x47c0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.0040e6c6
movzx eax, byte [0x47ef51]
test eax, eax
jne 0x415547
mov ecx, dword [ebp + 8]
call fcn.0040e6c6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x415437
xor al, al
jmp 0x415648
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.0041220c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040e357
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x415469
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jbe 0x415481
mov byte [ebp - 0xd], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040e2ca
mov al, byte [ebp - 0xd]
jmp 0x415648
lea ecx, [ebp - 0x54]
call fcn.0040f371
mov byte [ebp - 4], 1
and dword [ebp - 0x34], 0
and dword [ebp - 0x14], 0
jmp 0x41549e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x28]
jae 0x415507
lea ecx, [ebp - 0x18]
call fcn.0040e357
mov ecx, dword [ebp - 0x14]
movsx eax, byte [eax + ecx]
test eax, eax
jne 0x415505
lea ecx, [ebp - 0x18]
call fcn.0040e357
add eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040f40e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0041051f
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x48]
mov ecx, dword [ebp + 8]
call fcn.0040e61a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.0040e2ca
jmp 0x415497
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x28]
jne 0x415518
mov dword [ebp - 0x3c], 1
jmp 0x41551c
and 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.0040e2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040e2ca
mov al, byte [ebp - 0xe]
jmp 0x415648
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x415561
xor al, al
jmp 0x415648
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
call fcn.0041223b
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0040e357
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x415596
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
jbe 0x4155ae
mov byte [ebp - 0xf], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040e2ca
mov al, byte [ebp - 0xf]
jmp 0x415648
lea ecx, [ebp - 0x60]
call fcn.0040f8d6
mov byte [ebp - 4], 4
and dword [ebp - 0x38], 0
and dword [ebp - 0x1c], 0
jmp 0x4155cb
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x30]
jae 0x415612
lea ecx, [ebp - 0x20]
call fcn.0040e357
mov ecx, dword [ebp - 0x1c]
movzx eax, word [eax + ecx*2]
test eax, eax
jne 0x415610
lea ecx, [ebp - 0x20]
call fcn.0040e357
mov ecx, dword [ebp - 0x38]
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x60]
call fcn.0040fab4
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e61a
jmp 0x4155c4
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x30]
jne 0x415623
mov dword [ebp - 0x40], 1
jmp 0x415627
and 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.0040e2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040e2ca
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4