Function at 0x416404
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4166a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x28], 0
mov eax, dword [ebp - 0xc]
add eax, 8
mov edx, 0x4166bc
call fcn.00404420
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x416489
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x44]
mov ecx, 0x4166d4
call fcn.004046e8
mov eax, dword [ebp - 0x44]
call fcn.0040b33c
test al, al
je 0x416489
mov byte [ebp - 0x1d], 1
jmp 0x41667b
mov dl, 1
mov eax, dword [0x406b54]
call fcn.00407d08
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dl, 1
call fcn.00414d54
xor eax, eax
push ebp
push 0x41663d
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41662c
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.00415ea8
cmp dword [ebp - 0x30], 0
je 0x416555
cmp dword [ebp - 0x34], 0
je 0x41653c
lea eax, [ebp - 0x48]
mov ecx, 0x4166d4
mov edx, dword [ebp - 0x34]
call fcn.004046e8
mov eax, dword [ebp - 0x48]
xor edx, edx
call fcn.00414818
lea eax, [ebp - 0x4c]
mov ecx, 0x4166d4
mov edx, dword [ebp - 0x34]
call fcn.004046e8
mov eax, dword [ebp - 0x4c]
call fcn.0040b33c
test al, al
je 0x4165f1
mov eax, dword [ebp - 0xc]
add eax, 4
mov edx, dword [ebp - 0x34]
call fcn.00404420
mov byte [ebp - 0x1d], 1
mov eax, dword [ebp - 0xc]
add eax, 8
call fcn.004043cc
jmp 0x4165f1
push ebp
mov eax, 0x7530
call fcn.00416244
pop ecx
test al, al
je 0x4165fb
jmp 0x4165f1
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
dec eax
test eax, eax
jl 0x4165db
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
call fcn.00407d6c
mov eax, dword [ebp - 0x2c]
call fcn.00414f88
test al, al
je 0x4165d3
mov eax, dword [ebp - 0x2c]
call fcn.0040489c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4165d3
lea eax, [ebp - 0x50]
mov ecx, 0x4166d4
mov edx, dword [ebp - 0x2c]
call fcn.004046e8
mov eax, dword [ebp - 0x50]
call fcn.0040b33c
test al, al
je 0x4165d3
mov eax, dword [ebp - 0xc]
add eax, 4
mov edx, dword [ebp - 0x2c]
call fcn.00404420
mov byte [ebp - 0x1d], 1
mov eax, dword [ebp - 0xc]
add eax, 8
call fcn.004043cc
jmp 0x4165db
inc dword [ebp - 0x24]
dec dword [ebp - 0x38]
jne 0x41656b
cmp byte [ebp - 0x1d], 0
jne 0x4165f1
push ebp
mov eax, 0x2710
call fcn.00416244
pop ecx
test al, al
je 0x4165fb
cmp byte [ebp - 0x1d], 0
je 0x4164c6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416633
cmp byte [ebp - 0x15], 0
je 0x41662b
mov eax, dword [ebp - 0xc]
cmp word [eax + 0x22], 0
je 0x41662b
push 0x4166ec
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [ebx + 0x24]
call dword [ebx + 0x20]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4166aa
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.004043f0
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.004043f0
ret