Function at 0x4172e4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8aa3de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov eax, dword [0x9eba44]
mov edx, dword [0x9eba48]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
cmp eax, edx
je 0x417375
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41735a
movzx edx, byte [ecx - 1]
lea eax, [ecx - 1]
test edx, edx
jne 0x4176f2
push eax
call fcn.00888fb0
pop ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
add edx, 0x18
mov dword [ebp - 0x14], edx
cmp edx, ecx
jne 0x417326
mov eax, dword [ebp - 0x1c]
mov dword [0x9eba48], eax
xor edx, edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x1c], eax
add eax, 1
mov dword [ebp - 0x1c], eax
mov edx, 0
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xb0], edx
je 0x4173c5
test eax, eax
jne 0x4173af
xor eax, eax
jmp 0x4173b6
push eax
call fcn.00898760
pop ecx
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xac], eax
mov dword [ebp - 4], 1
push dword [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xb0]
mov esi, dword [ebp - 0x14]
mov al, byte [esi + ebx]
test al, al
je 0x417678
mov eax, esi
movsx edx, byte [ebx + eax]
push edx
call fcn.00898f5e
mov edx, esi
lea ecx, [ebp - 0xa8]
add esp, 4
mov byte [ebx + edx], al
call fcn.004144fc
mov dword [ebp - 4], 2
add esi, dword [ebp - 0xb0]
xor eax, eax
mov dword [ebp - 0x4c], eax
mov edi, esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x417441
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x417435
lea ecx, [ebp - 0x50]
push 1
mov ebx, eax
push ebx
call fcn.00404278
movzx edx, al
test edx, edx
je 0x417474
mov edi, dword [ebp - 0x4c]
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
mov byte [ebx + edx], 0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xa8]
lea eax, [ebp - 0x50]
push eax
call fcn.00414f4c
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4174ae
movzx edx, byte [ecx - 1]
lea eax, [ecx - 1]
test edx, edx
jne 0x417662
push eax
call fcn.00888fb0
pop ecx
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x417658
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x41762d
cmp eax, 4
je 0x417616
cmp eax, 5
je 0x4175ff
cmp eax, 1
je 0x41752c
cmp eax, 3
je 0x417537
cmp eax, 6
je 0x417537
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x4175e6
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push eax
push 0x9f3474
call fcn.004121c0
add esp, 8
mov eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x14]
movsx ebx, byte [eax + edx]
xor esi, esi
jmp 0x417549
push 0x9f3448
call fcn.004121c0
pop ecx
mov eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x14]
movsx ebx, byte [eax + edx]
mov esi, 1
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x98]
push 0xffffffffffffffff
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
push eax
push edx
call fcn.0040418c
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
push 1
mov ecx, 0x9eba40
push dword [0x9eba48]
call fcn.0041dcb0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x40]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 4], 5
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x4175c0
movzx edx, byte [ecx - 1]
lea eax, [ecx - 1]
test edx, edx
jne 0x4175f0
push eax
call fcn.00888fb0
pop ecx
add dword [ebp - 0x14], 4
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.0041db14
jmp 0x4173de
mov eax, 0x9eebb8
jmp 0x417506
cmp edx, 0xff
je 0x4175b9
dec dl
mov byte [ecx - 1], dl
jmp 0x4175c0
mov eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x14]
movsx ebx, byte [eax + edx]
mov esi, 2
jmp 0x417549
mov eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x14]
movsx ebx, byte [eax + edx]
mov esi, 0x10
jmp 0x417549
mov eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x14]
movsx ebx, byte [eax + edx]
cmp ebx, 0x41
je 0x41764e
cmp ebx, 0x42
je 0x41764e
mov esi, 8
jmp 0x417549
mov esi, 4
jmp 0x417549
mov eax, 0x9eebb8
jmp 0x4174c7
cmp edx, 0xff
je 0x4174a7
dec dl
mov byte [ecx - 1], dl
jmp 0x4174ae
mov eax, dword [0x9eba44]
test eax, eax
je 0x4176ee
mov ecx, dword [0x9eba48]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar ecx, 0x1f
sar edx, 2
sub edx, ecx
xor eax, eax
test edx, edx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 4], 6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x4176d4
push eax
call fcn.00888fb0
pop ecx
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
xor edx, edx
jmp 0x417698
cmp edx, 0xff
je 0x417353
dec dl
mov byte [ecx - 1], dl
jmp 0x41735a